• Resolved wout77

    (@wout77)


    Hi, our webhost uses your plugin as part of their WordPress Optimization program. After they installed it, I found that changes I made to the CSS through the settings panel of my template (Impreza, maybe you know of it), they weren’t visible in the actual site. I myself suspected it was due to a caching issue. After some questioning, the webhost informed me that in that case, I had to first use the Purge action within your plugin and then clear the cache. While that worked for putting my changes through, we encountered another issue: on certain browser for certain users, the CSS wouldn’t load at all, showing just the ‘bare bones’ of html as it were… (mostly Chrome, but I haven’t been able to find a common ground. Some shoed no problems whatsoever)

    I read through the FAQ, but couldn’t find a similar issue. Is this something that you’ve encountered before? Is there a possibility that it’s not compatible with my template settings or should the FVM plugin be configured differently in these cases?

    Our webhost wasn’t able to provide me with an answer, claiming nothing is wrong so I’m trying to gather information where I can. If this is something you cannot answer, I understand, but I thought it was worth a try!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Raul P.

    (@alignak)

    Hello,

    on certain browser for certain users, the CSS wouldn’t load at all, showing just the ‘bare bones’ of html

    Do you have any way to reproduce this?
    Specifically, I need to know if it always happens for the same users, or if it only happens randomly for the same user.

    If it “always” happens, can you ask them to visit https://www.whatsmyua.info/ and post here their useragent string?

    If it happens randomly, can you open the google dev tools and check if there are any messages in the console log?

    Do you have the Defer for Pagespeed Insights option ticked?
    Do you have the Exclude JS files in the “ignore list” option ticked?
    What is your site url?

    Plugin works fine.
    Many problems are caused by the way scripts are loaded.
    Check if all the scripts are loaded by wp_register_script and styles by wp_register_style.
    Check the order in which scripts are loaded add_action wp_enqueue_scripts / wp_register_style priority and dependence.

    • This reply was modified 6 years, 3 months ago by betagoo.
    Thread Starter wout77

    (@wout77)

    Hi Raul, I’ll try to answer your questions. Earlier today I also contacted the helpdesk of our template to see if they knew something. He tried changing the color, clicked on FVM Purge and I straight away encountered the issue again. So as to your question if there’s a way to reproduce: it’s by clicking FVM Purge. It’s not random.

    “If it “always” happens, can you ask them to visit https://www.whatsmyua.info/ and post here their useragent string?”
    >> This was the string I got after checking https://www.whatsmyua.info/:
    “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:63.0) Gecko/20100101 Firefox/63.0”. Was this what you meant? There was more info on the page but I didn’t just want to copy paste anything. Let me know if you need that info, I saved it on a txt file.

    Domain name: https://www.teamgamez.nl/

    “Do you have the Defer for Pagespeed Insights option ticked?”
    “Do you have the Exclude JS files in the “ignore list” option ticked?”
    >> as far as I can tell not, but the webhost has asked me not to meddle with their settings. No options are selected in the settings tab at all, save for Admin bar purge and URL Options: “Use the dynamic “//” protocol”

    I hope any of this makes sense, I’m quite clueless as to what might go wrong.

    Plugin Author Raul P.

    (@alignak)

    Thanks for all the info…
    Ok, first update to the latest version of FVM.

    a) Does it happen to you too (when you click the button to purge the cache) or only to other people? Do you see any error when you purge the cache?

    b) On the settings page, select the “Preserve Cache Files” option and try again. Does it still happen when you purge the cache?

    What I think is happening is either one of two options:

    1) The writing permissions on the wp-content/uploads/fvm directory are too strict and the plugin may be failing to save the cache files sometimes… its a bit unlikely if it works “sometimes”, but if you have no writing permissions on created files, when you hit the button to purge the cache it could cause an error, due to lack of file permissions. Your host should be able to confirm if the files being generated on that directory, have writing permission (usually 755).

    2) Most probably, the server has some cache somewhere. Think of it this way… if the server has a page cache (and many hosting companies have it, even if just for a few minutes)… when you visit the frontend, the page will be cached with a reference to the currently generated FVM files.

    If you purge the cache on FVM, the files that have been generated by FVM will be gone… therefore, you need to purge the cache on the server, or some cache plugin (beware that depending on some setups, pressing the purge cache button looks like it worked, but it didn’t actually cleared it… w3 total cache sometimes does this).

    What happens then, is that when you see the site… the html (cached) still has references to the fvm files that you just deleted, thus resulting in broken layout (you cannot style what’s not there).

    For that reason, if you select the option to “Preserve Cache Files” those files won’t be deleted and they will be there, even if the page is still cached somewhere else.

    Purging the cache on FVM once that option is enabled, will work the same as usual. New files will be regenerated with another name, but the difference is that the old ones stay there.

    Try it and let me know, thanks!

    Thread Starter wout77

    (@wout77)

    First up, thank you so much for your feedback. This gives us something to go on, instead of the webhost simply saying nothing is wrong. Very much appreciated.
    As to your questions:
    a) it happens to others AND me, but not everybody. But of all devices, computers, people we checked each time, I’d say about 75%, but that’s an estimate based on calling random friends to see what they got in their screens. There’s no error when we purge.
    b) as I mentioned before, the webhost has specifically told me not to adjust any settings myself. But I will pass this option along to them the next time I speak to them so that they can try this. I will also show them the 2 possibilities you mentioned, maybe that can help them look in the right direction.

    Again, thanks so much. Now I can at least tell them something more specific instead of my hunches!

    Plugin Author Raul P.

    (@alignak)

    @wout77 if you continue to have problems, contact me via fastvelocity.com and I’ll take a look at your website myself. Else, I hope you have solved it ??

    Thread Starter wout77

    (@wout77)

    Hi, I haven’t heard back from the webhost. But thanks for the offer to take a look. I’ll wait to see when the webhost responds, don’t want to take up too much of your time, but your help is appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Possibly not compatible with my template (Impreza)?’ is closed to new replies.