My Page Breaks When I Inline CSS
-
I hope this is a support ticket system for this plugin. I am using WP Rocket and Autoptimize Plugin with CriticalCSS. Whenever I activated the Inline CSS function so that I can get to my CriticalCSS plugin, my site breaks. Just a white screen. Backend works fine. Am I doing something wrong?
The page I need help with: [log in to see the link]
-
You’re referring to “inline & defer CSS”, right? Are all CSS/ JS optimization options in WP Rocket off at that point?
Yes. Even with the WP-Rocket deactivated. It still does this. I am lost.
when “inline & defer CSS” is active, is the page HTML source empty as well, or is the page source present but is it rendered blank?
No page source is there. It is empty. Backend works though. The page doesn’t have any selectable text. Pure white.
I just checked developer tools. No HTML, CSS or javascript code present on the page. The URL does show the site and it’s encrypted.
OK, can you check the PHP errorlog for relevant errors in that case?
I will check now.
Still looking. I did get this server error messages.
2020-09-19 20:34:57.197545 [INFO] [159313] [198.245.62.53:35200#APVH_furrynoodles.com:443] File not found [/home/furrynoo/public_html/406.shtml]
2020-09-19 12:32:36.902376 [INFO] [202228] [157.245.72.129:49782-2#APVH_furrynoodles.com:443] File not found [/home/furrynoo/public_html/406.shtml]
2020-09-19 12:32:36.752934 [INFO] [202228] [157.245.72.129:49782-1#APVH_furrynoodles.com:443] File not found [/home/furrynoo/public_html/406.shtml]My provider wasn’t logging php error logging. It wasn’t enabled. They told me that there was no index file. When I turned off Autoptimize, they said it was working just fine and everything was there.
OK, so the “file not found” entries (might) indicate a HTTP 406 error, but that doesn’t really make sense in this context.
Re. php errorlogging; with that enabled and when you activate “inline & defer CSS”, what PHP errors are logged in that case (because “there was no index file” is a tad too … vague really)?
20-Sep-2020 09:51:34 UTC] PHP Notice: Trying to access array offset on value of type bool in /home/furrynoo/public_html/wp-content/plugins/ronneby-core/inc/vc_custom/dfd_vc_background/front_templates/image.php on line 51
[20-Sep-2020 09:51:34 UTC] PHP Notice: Trying to access array offset on value of type bool in /home/furrynoo/public_html/wp-content/plugins/ronneby-core/inc/vc_custom/dfd_vc_background/front_templates/image.php on line 51
That is the only error I see in the logs.
You can also check the debug.log file in the wp-content folder.
Why is the site down?
04:52
We can disable that plugin ronneby-core and check it out.
I disabled the plugin.
Now it is generating another errors.
[20-Sep-2020 09:53:02 UTC] PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /home/furrynoo/public_html/wp-content/themes/dfd-ronneby/inc/helpers.php on line 476
[20-Sep-2020 09:53:02 UTC] PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /home/furrynoo/public_html/wp-content/themes/dfd-ronneby/inc/helpers.php on line 474
[20-Sep-2020 09:53:02 UTC] PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /home/furrynoo/public_html/wp-content/themes/dfd-ronneby/inc/helpers.php on line 476
[20-Sep-2020 09:53:02 UTC] PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /home/furrynoo/public_html/wp-content/themes/dfd-ronneby/inc/helpers.php on line 474
[20-Sep-2020 09:53:02 UTC] PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /home/furrynoo/public_html/wp-content/themes/dfd-ronneby/inc/helpers.php on line 476What is going on?
* can you (temporarily) switch themes to see if this is theme related (it seems the plugin you disabled & the theme are related, both “ronneby”)?
* when activating “inline & defer CSS”, did you fill anything in in the “above the field CSS” field? if so, can you delete that and try “inline & defer” without it?
* to be clear; things do work when “inline & defer CSS” is off, right? what happens when you activate “inline all CSS”?Ok. I have switched themes, and the problem goes away. So it’s definitely theme related. But it’s so strange because I just used this on the exact same theme, on the exact same demo just a few days ago, and never ran into this problem.
I did not fill anything else in the CSS field. I do have a CriticalCSS subscription that is active. I did inline and defer, nothing changed.
And yes, when inline and defer CSS is off, everything is just fine.
and when you have “inline & defer CSS” enabled but “critical CSS” disabled (by removing the API key in the critical CSS tab)?
The topic ‘My Page Breaks When I Inline CSS’ is closed to new replies.