collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 366
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Lag loading the portal?  (Read 9706 times)

0 Members and 2 Guests are viewing this topic.

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Lag loading the portal?
« on: April 13, 2009, 04:37:30 PM »
SMF 1.8
SP 2.2

Since I installed the SP 2.2 there is a 7 secons lag before the portal loads. The same in Opera, IE, or GoogleChrome.
Exactly 7 seconds, then the page apears (almost) instantly, like just then I clicked the link.

When I access the forum page, or other pages, it loads normal.
Just when accessing the portal the lag is present.
 Eatherway I acess it through favorites/bookmark links, or through a inner forum link, or using the first page button, or a external link (google)  the lag is there.

What could be the cause?

I thought that one of the blocks is causing this and I tryed to deactivate them, one at the time, every time loading the portal in another tab window. No difference.

I'm confused, maybe it's not a SP problem at all, but I don't now what could be.
Could be a server problem, or...wtf? :|

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Lag loading the portal?
« Reply #1 on: April 14, 2009, 04:40:04 AM »
A link to your forum please.
And slowly, you come to realize... It's all as it should be...

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #2 on: April 14, 2009, 05:09:50 AM »
Sorry, I thought I added the adress to my profile. I did it now.
The forum is:
www.arthalia.ro

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Lag loading the portal?
« Reply #3 on: April 14, 2009, 05:14:40 AM »
Would you provide me an admin account via pm and add this to your Settings.php file, just for a few minutes until I check it.

Code: [Select]
$show_db_debug = true;
And slowly, you come to realize... It's all as it should be...

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #4 on: April 14, 2009, 06:06:30 AM »
Thank you for helping.

PM sent.

The debug shows that error:

8: Undefined index: portal_url
File: /home/arthalia/public_html/Sources/SPortal1-1.php
Line: 347

That line 347 is:

Code: [Select]
$context['page_index'] = constructPageIndex($context['portal_url'] . '?sa=articles', $context['start'], $totalArticles, $modSettings['articleperpage']);




Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #5 on: April 14, 2009, 08:46:06 AM »
subs.php atached

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Lag loading the portal?
« Reply #6 on: April 14, 2009, 08:52:48 AM »
It is related to Show Local Url Titles mod. I'll ask LHVWB to check this topic. You're lucky that the author of the mod is here. :P
And slowly, you come to realize... It's all as it should be...

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #7 on: April 14, 2009, 09:00:35 AM »
Lucky indeed. :)
And also lucky to have so a great SP team working on issues.
Especialy you sinan.
Thanks.

I guess I can change the debug in my settings.php. If needed more, say so.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Lag loading the portal?
« Reply #8 on: April 14, 2009, 09:02:50 AM »
Thanks for the feedback. This is the best part of providing support. :D

And yeah, you can remove the debug option from Settings.php file. Also don't forget to kill the temporary admin account.

----

For LHVWB: The query in question is on line 3798 and takes about 8 seconds to process.
And slowly, you come to realize... It's all as it should be...

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Lag loading the portal?
« Reply #9 on: April 14, 2009, 08:02:24 PM »
Try the attached file, I have just added "Limit 1" to the db query that Sinan pointed me to, that may resolve the issue.

If that doesn't work then can you please try removing the "Publi-Shop" and "Piata muncii " blocks, one by one? To see if removing them tempoarily resolves the issue, for now that should stop it from happening. Although you could manually change the links in those BBC blocks to 'title' to show them again without causing this issue.

The db query on line 3798, relates to finding the board name with the id, so that the Board title can be shown. Not sure why it would be running for so long, even when you have 70+ boards. I couldn't replicate it with more than 100 boards.

Could you also try posting a link like this "http://www.arthalia.ro/index.php/board,82.0.html" in a forum post? If it takes several seconds to view that post then the issue definetely isn't SP related.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Lag loading the portal?
« Reply #10 on: April 15, 2009, 01:52:59 AM »
I've analyzed that query in debug mode and it took ~8.5 seconds. That's why I said the issue is related to that.
And slowly, you come to realize... It's all as it should be...

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #11 on: April 15, 2009, 04:32:37 AM »
One thing I did not tryed, till yesterday when I gave  [SiNaN]  the admin acount to look over the querry, was to deactivate the articles from the articles config. I did that and without the articles the portal loads normal.

Sorry LHVWB for not briging that up sooner. I forgot. Stupid of me  not to give you all the info.

Still I uploaded that subs.php and tryed to deactivate those blocks and no change.



Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #12 on: April 16, 2009, 08:22:22 AM »
LHVWB
What do you say?
 Should I remove the mod " Show local url title..." till you have the time to find a solution?
 Maybe your time is limited and you don't have time to look into it now.
Or should I wait?

My forum members start to send me messages asking about the lag. Someone said that a few times he thought the forum is not loading at all and he clicked another link before the page loaded.
And for visitors its also anoyng.

For removing the mod, since it does not have a uninstall option, I guess I should delete all the lines related to    
Code: [Select]
// Function to Turn a url into a title, if possible.till I get to
Code: [Select]
// Generate a random seed and ensure it's stored in settings.
...from subs.php. And that's it. Right?

I have to decide to keep or remove the very useful mod, or to keep the lag, or to remove the articles. :|




Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Lag loading the portal?
« Reply #13 on: April 16, 2009, 08:36:22 AM »
Sorry, I haven't had much time for SP stuff lately.

Is the problem resolved if you temporarily remove the articles?
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #14 on: April 16, 2009, 08:51:07 AM »
Yes when I remove (disable) the articles the lag is not there anymore.

You don't have to be sorry. I can't be that selfish to  ask you to spend your time solving that problem. I'm shure you have a lot of other things to do. :)

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Lag loading the portal?
« Reply #15 on: April 16, 2009, 10:43:34 AM »
Sorry, I haven't had much time for SP stuff lately.

Is the problem resolved if you temporarily remove the articles?

It does, because that is the only function which parses text.
And slowly, you come to realize... It's all as it should be...

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #16 on: April 20, 2009, 03:37:57 PM »
bump
 :)

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #17 on: April 26, 2009, 03:01:31 AM »
Looks that there is no one with this problem but me. :nervous-happy:

Is there no one with both "Show local url title" mod and SP installed?

And, if there is someone with both installed, and... no problems like this topic, than something different must be going on. :|




Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #18 on: April 27, 2009, 04:33:14 AM »
Finaly I think I got it working. I do not now exactly how, but ...no lag anymore. :)

What I did:

I thougt I have no other option than remove the Show local url mod, so I wanted to uninstall it.
Since I did not have a uninstall option I simply delete it.

Then I tryed to manualy remove the mod from the subs.php file using the parse function and instructions from the SMF Mod's page.

Those instructions are  aplicable for SMF 1.1.5 , but I thought I can use it on my subs.php. too.

I deleted the lines related to..."//   Function to Turn a url into a title, if possible.",  then I saw that the other code lines are different since I have the SMF 1.1.8.  It got over my head to do the modifications , and I gived up.
I copy/pasted the lines I removed before, to the end of Subs.php and uploaded the file.

Now everything looks ok. No lag loading the portal page with the article activated. And the Show local url tile mod works also ok.

 Why now it works, I don't have a clue. :nervous-happy:
But If you want to check it, I attach the current subs.php maybe it is useful to somebody. :)

Thanks for the feedback.

« Last Edit: April 27, 2009, 04:38:24 AM by Geri »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Lag loading the portal?
« Reply #19 on: April 27, 2009, 04:41:37 AM »
Hmm, sorry I haven't responded to this topic in a while, I have been fairly busy with schoolwork.

I had a quick look at those files, the 'get_ShowUrlTitle' functions appear to be exactly the same. No idea why your issue is resolved or why it was even happening in the first place. :S

I'll have a better look into this issue when I finally get around to updating that mod.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #20 on: April 27, 2009, 04:46:37 AM »
No problem.  :)

I'm happy it works now.  :D

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Lag loading the portal?
« Reply #21 on: April 27, 2009, 06:00:41 AM »


Something different must be going on:

Like I said I saw that everithing loads ok.

 Then I tryed logging out and navigating the forum as a guest.
 
There was a iven longer lag than before (around 12 secs). And this time for every page I was going to.

I logged in again, everithing was loading ok.

I disabled the articles ...logged out. No lag anymore.

( I now.... the lag was there for every page, not just the portal where the articles are, but I stilll tryed that.)

Logged in again ...enabled the articles, logged out.

Surprise....no lag anymore.

I'm speachless.

Maybe it is still some server issue...or... I don't now.


Now I have to go to work so I cannot be here to give some further info if someone is curios why this happends, and tryes to figure it out.
Hopefuly it will stay like now...with no lag.  :)







Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Lag loading the portal?
« Reply #22 on: May 04, 2009, 01:45:19 AM »
I am very curious as to why this is happening, if its a server issue then its quite an odd one. Any information that you could give me for when I eventually get around to fixing up that mod would be most welcome.

Marking this as solved for now, feel free to post again if you have any more issues.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.