News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Site (especially posting) loading extremely slow

Started by Jade Elizabeth, September 10, 2014, 08:44:16 AM

Previous topic - Next topic

Jade Elizabeth

I think I may have broken something, something perhaps related to Javascript but I am not sure how. I am hoping someone will either know or maybe help point me in the right direction. I can provide a test account, or you can just sign up immediately and have a go (just post in the crazy corner please)

Issues/Symptoms:
1. Quick edit does not apply changes on saving.
2. Replying to a topic, marking it read, and loading any page at all can take over a minute (posting over 2)
3. I have to log into admin every 2 or 3 page loads and it's absolutely awful. Tried renaming cookie and clearing.
4. Every now and then I get an internal server error when it gives up trying to load a page.


Load time examples (from right now):
Page created in 2.496 seconds with 18 queries. <Marking a topic read
Page created in 5.242 seconds with 35 queries. <Replying
Page created in 4.083 seconds with 50 queries. <Loading a topic
Page created in 15.19 seconds with 57 queries. <Loading a topic.


Mods:
1.   Simple Audio Video Embedder   2.6
2.   Tapatalk SMF 2.0 Plugin   4.1.0
3.   Member Color Link   3.1
4.   Auto Merge Double Post   1.5
5.   Pretty URLs   1.1.2
6.   Mentions   1.1.1
7.   New Topic Button   1.0
8.   ENotify   2.0.2
9.   TopicStarter Mod   1.7
10.   Karma Description Mod   2.7.1
11.   Users Online Today   2.1
12.   Social Login   3.1
13.   httpBL   2.5.1
14.   Stop Spammer   2.3.9


Theme: Reseller (no changes yet that I can recall)


Error Log: Completely empty on forum :( Server error log says:
[Tue Sep 09 01:11:11.336691 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=recentAttachments" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336645 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=recentEvents" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336595 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=todaysCalendar" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336552 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=todaysEvents" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336509 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=todaysHolidays" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336465 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=todaysBirthdays" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336419 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=logout" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336318 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=login" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336273 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=quickSearch" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336227 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=menubar" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336181 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=boardNews" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336126 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=news" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336079 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=welcome" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.336035 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=logOnline" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335988 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=whosOnline" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335938 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=boardStats" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335897 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=randomMember" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335841 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=latestMember" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335799 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=showPoll;ssi_topic=1" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335757 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=topPoster" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335715 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=topPoll" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335676 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=topTopicsReplies" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335639 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=topTopicsViews" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335601 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=topBoards" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335564 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=recentPoll" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335525 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=recentPosts" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Tue Sep 09 01:11:11.335442 2014] [include:error] [pid 16395:tid 139780490741504] [client 180.76.6.152:46202] unable to include potential exec "./SSI.php?ssi_function=recentTopics" in parsed file /forums/ssi_examples.shtml, content type not text/*
[Mon Aug 18 19:03:11.942742 2014] [autoindex:error] [pid 20772:tid 140049018418944] [client 204.101.161.159:35759] AH01276: Cannot serve directory /06besnardm/wp-content/uploads/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive, referer: bing.com
[Tue Aug 12 16:35:13.095439 2014] [cgi:error] [pid 4921:tid 140049035204352] [client 183.60.243.189:33716] script not found or unable to stat: /cgi-bin, referer: http://www.baidu.com
[Tue Aug 12 16:35:12.263281 2014] [cgi:error] [pid 4919:tid 140049060382464] [client 183.60.243.189:33699] script not found or unable to stat: /cgi-bin, referer: http://www.baidu.com
[Tue Aug 12 16:35:04.760560 2014] [autoindex:error] [pid 4912:tid 140049077167872] [client 183.60.243.189:33560] AH01276: Cannot serve directory /data/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive, referer: http://www.baidu.com



Linky: Awesome Crazy
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Shambles

I just tried a few ducks and dives, clicks and clacks, and it all went smoothly for me.

Have you tried turning off hostname lookups (ACP > Config > Server Settings > General) to see if that makes a difference?

kat

A hunchette...

Including executables is no longer allowed by the default Apache configuration. IncludesNOEXEC is now the default and SSI includes are now disabled by default.

Open your .htaccess file and try adding this:

Options +Includes +ExecCGI
AddHandler cgi-script .cgi .pl


or, perhaps, this:

Options +Includes
AddHandler server-parsed .shtml

Jade Elizabeth

#3
Not sure which to add so I added the second one...then the first one. Not sure anything has changed? Should I merge them or put them both in?

Quote from: Shambles on September 10, 2014, 09:10:25 AM
I just tried a few ducks and dives, clicks and clacks, and it all went smoothly for me.

Have you tried turning off hostname lookups (ACP > Config > Server Settings > General) to see if that makes a difference?

Maybe it's only for logged in people :(.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.


Jade Elizabeth

While we're waiting to see if they have worked do you know what's going on with anything else? :)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

kat

Not a clue. What made you think it was summat to do with javascript?

In the error log, there're loads of entries for "Top" stuff. What could that all be about?

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

kat

Oh, right.

Well, I guess the big question has to be "What did you ****** up change, just before this started happening?

Jade Elizabeth

Honestly I only noticed after installing everything! :(

Hoping someone has some JS type thing that can pick up on errors, like a console dev thing that can help me because mine isn't working like I thought it would.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

kat

I still think it's those includes...

Two other things to try, with .htaccess...

Options +Includes +ExecCGI

Just that, exactly is it appears.

OR

Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml


You might need to get Apache restarted.

Seems that most people are saying that people should stop using SSI, as PHP can do everything that SSI can. Dunno how true that is. Maybe SMF should be looking at that, for the future, too.

Dragooon

Someone might be DDoSing you via SSI, try removing it if you're not relying on it.

Jade Elizabeth

Unfortunately I am relying on it for my main site.

I havent seen an error for SSI since the 9th on AC, and I posted on the 11th. I am seeing them for Creative Burrow though. I didn't change anything on AC from the 9th onwards so not sure why it's affecting one site and not the other on the same server? SMF's SSI SHTML isn't working either.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Arantor

Of course it's not working, because SHTML is old-school and generally not needed (and most servers aren't configured to serve it any more)...

QuoteHoping someone has some JS type thing that can pick up on errors, like a console dev thing that can help me because mine isn't working like I thought it would.

Every current browser has a sane dev console that will report JS errors if there are any. Even IE can do this correctly these days and even get the correct line that's throwing an error.

Jade Elizabeth

Well I guess mine wasn't working before because now it's saying "Uncaught TypeError: Cannot read property 'innerHTML' of null script.js?fin20:484"
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Arantor

Yes, that would be problematic. Most browsers will also give the backtrace as to what exactly is calling getInnerHTML() as well...

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: