Jump to content

Archived

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

thingCHARGER

Pageless File taking AGES to Serve - all other files are fine...

Recommended Posts

thingCHARGER+    0
thingCHARGER

Guys:

 

Close to finishing inital build of our site http://www.thingCHARGER.com  and started speed testing.

 

DMS is generating a file called:

http://www.thingcharger.com/?pageless=1_1378521056

 

And it is astonishingly slow to load and killing our site performance, please see:

http://www.webpagetest.org/result/130907_0Y_0aadff549a9c6a777818044a5863599f/ - you'll see test results of the same page loaded 5 times. Each time all other elements are fast, but the pageless URL takes forever.

 

Please help - urgently need to launch site.

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

Some hosts don't have the proper utilizes to run the LESS compiler. So your LESS file never gets cached (which is why you're seeing it slow).

 

This, shouldn't be like this:

http://www.thingcharger.com/?pageless=1_1378550523

 

That should be something like:

http://www.thingcharger.com/compiled_1378550523.css

 

 

What you need to do is bypass the posix check on the server, with a filter.

 

Add this to a functions.php in your child theme:

add_filter( 'render_css_posix_', '__return_true' );

  • Like 1

Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
thingCHARGER+    0
thingCHARGER

Thanks for the quick reply.

 

The good news is that I control the server so can get my tech to add a utility if required. 

 

Would you recommend adding the utility (if so what is it please?) or just do the bypass?

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

Ya all you have to do is add that filter above to your child themes functions.php. I have to do the same thing on my host.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
thingCHARGER+    0
thingCHARGER

Progress!

 

Pages now load faster - thank you Sir!  See:

http://www.webpagetest.org/result/130907_TR_b1f1baeb15d3f5ca1363d3fd610d5f28/

 

However, the file is still named http://www.thingcharger.com/?pageless=1_1378550523 no 'compiled' in the name nor .css, which means that neither W3 Total Cache nor SPEEDILICIOUS are recognizing it as a css file, so don't shard it off to the CDN

 

What is the utility I need to add to my server to have it all work properly please?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Can you enable PL Debug mode please (DMS Toolbar > Global Options > Advanced) and when enabled, reply here informing us please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

YOu have PHP Magic Quotes gpc : Yes (bad) this needs to be addressed.

 

Also, you have W3 Total Cache installed, all cache plugins aren't simply install, activate and it works. They're more complex than that and need to be configured correctly, to work with your server environment. If cache plugins are not configured correctly, then they can actually increase server load time or worse, break your site.

 

I would try removing W3 Total Cache until your server is configured correctly. I ran a Reverse IP check on your site and found that this is the only domain on that server. If your site is running slow on a server populated by your site alone, then the server is most certainly not configured correctly.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
thingCHARGER+    0
thingCHARGER

Thanks for the quick reply. I'm not a server admin or coder but am very familiar with the complexities of W3TC (and am actually a co-founder of SPEEDILICIOUS, a company which specialized is web performance). 

 

I don't know if you had a chance to look at the original waterfall I gave above, but you can see that overall performance is decent but with the one single issue of the pageless file.

 

I'll have the guys look at PHP Magic Quotes, in the meantime have disabled W3TC - but if you look at this waterfall you can see that doing so still has the incorrectly named pageless file at item #6 on the waterfall.

http://www.webpagetest.org/result/130908_KH_d57cab94d9979b81a1598f4a0b97f824/1/details/

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

I am by no means a server expert, Simon is our server super man, I will ask him to take a look at your issue when he next pops on (most likely Monday).


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
thingCHARGER+    0
thingCHARGER

Thanks for your help - especially on Sunday. I'm going to get my server guy to look at it as well. He's pretty good and I'm sure we'll have this sorted soon.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Excellent.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
thingCHARGER+    0
thingCHARGER

Earlier in this thread Nick said: "Some hosts don't have the proper utilizes to run the LESS compiler."

 

I am running a private server and can have it configured any way I want. Please can anyone tell me exactly what the server needs to run the LESS compiler?

Share this post


Link to post
Share on other sites
thingCHARGER+    0
thingCHARGER

Thanks Nick. We added

 

         add_filter( 'render_css_posix_', '__return_true' );

 

to the functions.php in our child theme immediately you first suggested it and exactly as you specified but that did not resolve the issue

 

Here's the latest performace test: http://www.webpagetest.org/result/130911_VY_47e824504f816a5e99930900c1f10307/5/details/ and if you hover over item #3 you can clearly see that the file is not compiled and named in the correct format.

 

Any other thoughts would be much appreciated.

Share this post


Link to post
Share on other sites
Simon    247
Simon

The css file is only written if the following are true...

 

1. The uploads folder is read/writable by PHP and PHP is able to create a 'pagelines' folder.

 

2. If the posix tools are not installed (default in PHP some hosts dont install though) then the framework will use the pageless= url format.

    The filter nick supplied, added to a child theme bypasses the posix check and tells the framework to write a file anyway, but ONLY if #1 is true.

 

You said its your own server, how is http/php setup? What users are they running under? Are the folders owned by these users?

Share this post


Link to post
Share on other sites
thingCHARGER+    0
thingCHARGER

Simon - thank you so much. I can't get my server wizard onto it until later today but we've often had issues with permissions so that could well be it. Thank you again.

Share this post


Link to post
Share on other sites
Andrew    201
Andrew

I'd agree, its almost always a file writing issue in this case. 

 

What's going on is the system writes a custom CSS file from all the LESS, if you're system can't write it, it auto generated the file using PHP (which is cached server-side, although not client side)

 

We use WordPress' wider API for this, so if you have a problem with PageLines, you likely have an issue with WordPress as well (and certain plugins, etc..)

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×