Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Site loads slow


Question

Posted · Report post

Hi,

so my site is slow and I read up in the forums and did the following:

- W3 Cache was already installed (Minify, Browser Cache, CloudFlare and CDN enabled)

- installed CloudFlare

- installed MaxCDN

the site was still slow.

So I added the following code to wp-config.


define( 'LESS_FILE_MODE', true );

That helped a lot but unfortunately made my site crash for some users so had to delete it again.

Now I increased php.ini to 256mB (BlueHost).

My site is still slow. What am I missing? And why made the above code make my site crash?

This is driving me nuts. Any suggestions are very welcome.

Thanks

Share this post


Link to post
Share on other sites

19 answers to this question

Posted · Report post

I added the LESS_FILE_MODE again. You can have a look now.

Screenshot is attached.

post-10444-0-08835300-1351244796_thumb.p

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, so I enabled W3 Cache with page cache, browser cache and minify and als activated CloudFlare again. Now my site loads in 2-3 sec again :)

this thread can be closed.

Thanks for all the help!

Share this post


Link to post
Share on other sites

Posted · Report post

and its working as expected

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

It was Maxcdn that did not like the LESS_FILE_MODE.

Now I activated W3 again and my site is finally loading a bit faster.

Will play with the different options and see what helps and what doesn't.

Thanks for the help so far!

Share this post


Link to post
Share on other sites

Posted · Report post

Crash how? Why are you using cloud flare and max cdn they are both cdn providers

Share this post


Link to post
Share on other sites

Posted · Report post

Hi, Simon's correct, CloudFlare and MaxCDN are the same thing, so you're duplicating things. That alone could cause problems in that your site is looking for components in two places and effectively loading them twice.

I know this is going to sound crazy, but the problem with the crash may have come from copying and pasting. Some computers will tack on hidden things when doing so. It's always best, I say, to paste it first to a text file, to ensure nothing is hidden (like a space, paragraph or other element). Then copy from the text file. That make's sure you have a clean copy and equally clean paste.

LESS_FILE_MODE can easily become LESS FILE MODE, which would be incorrect.

Share this post


Link to post
Share on other sites

Posted · Report post

I'm back working on the slow loading time of my site. I have W3 Cache and CloudFlare installed but my site takes up to 8 sec to load.

I also tried using the following code again but it keeps breaking my site (see for screenshot above).


define( 'LESS_FILE_MODE', true );

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

I am not sure what is going on, when I view your page source, it appears to have all the <div stripped from it.

Can you please disable all non-PageLines plugins and then view your page source again and see if the <div returns to your page source.

Share this post


Link to post
Share on other sites

Posted · Report post

The file mode is not working, we cannot help you until you disable w3 cache.

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, back to scratch.

I deactivated both CloudFlare and MaxCDN and reinserted the less file code in my wp-config.php file:


/**

* For developers: WordPress debugging mode.

*

* Change this to true to enable the display of notices during development.

* It is strongly recommended that plugin and theme developers use WP_DEBUG

* in their development environments.

*/

define('WP_DEBUG', false);

define( 'LESS_FILE_MODE', true );


/* That's all, stop editing! Happy blogging. */

define('ABSPATH', dirname(__FILE__).'/');

require_once(ABSPATH.'wp-settings.php');

?>

This is what happened:

http://awesomescreenshot.com/004j2c6c4

Here is my website link:

http://creativewebbiz.com

Share this post


Link to post
Share on other sites

Posted · Report post

Hi yemoonyah

Just to let you know... your site is broken now

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, I disabled all plugins, no <div

I kept W3 disabled so you can have a look but will activate again soon as now my site takes 15 sec to load.

Thanks.

Share this post


Link to post
Share on other sites

Posted · Report post

I see this with firefox and safari

Captura%2520de%2520pantalla%25202012-10-13%2520a%2520las%252017.23.02.jpg

Share this post


Link to post
Share on other sites

Posted · Report post

So can you add the LESS_FILE_MODE line again, and show me a screenshot of that section of the config

Share this post


Link to post
Share on other sites

Posted · Report post

Yes, I know. and I can't login anymore!

I tried resetting my password, clearing my cache, moving w3t cache to another folder (although that seemed to have restored my site).

Nothing works. I'm super frustrated...

but thanks for the heads up.

Share this post


Link to post
Share on other sites

Posted · Report post

Yemoonyah,

This may seem drastic, but it's the sure-fire way to fix it. Ask your host to implement a backup from several days ago.

If they do not have one, then restore your wp-config to where it was prior, then download and unzip the latest version of WP to your local machine.

Via FTP, upload the wp-admin and wp-includes folders, and all files in the root of the unzipped folder. Don't overwrite the wp-content folder. It will have no effect.

Then, go to wp-content/themes and locate the folder pagelines. Delete it. This will not remove anything you've customized *(unless you did it wrong).

Login to www.pagelines.com/launchpad and download the latest version of PageLines Framework. Unzip it locally to your desktop. Via FTP, upload the pagelines folder back to wp-content/themes.

Go to Dashboard > Appearance > Themes and activate the proper theme (a child if that's what you're using). You may need to go to Appearance > Menus and select the default menu on the left, top of the menu area and save.

Your site should be fully restored.

Share this post


Link to post
Share on other sites

Posted · Report post

Ha, I managed to log in. I did everything mentioned in this WP doc before taking drastic steps like described by One Smart Egg (thanks for the tips though!):

http://codex.wordpress.org/Login_Trouble

Nothing helped.

But then I decided to try it using Firefox and that worked! I can also do it by opening an incognito window in Chrome.

Maybe it's because I just re-uploaded my wp-login.php.

I did clear my browser cache and cookies but it still won't work in Chrome (non-incognito). But at least I can log in again :)

Share this post


Link to post
Share on other sites

Posted · Report post

Well, you're making progress. That's a good sign.

Share this post


Link to post
Share on other sites