Php Errors + Static File Headers + Mobile View Not functioning
-
I noticed today that the Browser static file caching headers is disabled, even though it was previously enabled. The error on the page is: “The .htaccess file already contains browser static caching settings, but browser caching is not functioning as expected. This indicates that your webserver does not support .htaccess browser caching rules. To further investigate this, you must contact your web hosting provider.” I then clicked the enabled button again and seems to work but after a mins it shows the same error and it is disabled again.
So I had a look at the server logs and saw Multiple server errors in server log throughout the day:
invalid URI path (/wp-content/cache/wpo-minify/1737024527/assets/%url%)
[ERROR] : WP_CACHE constant is not present in wp-config.php
[ERROR] : Could not turn off the WP_CACHE constant in wp-config.php
PHP Warning: file_put_contents(/home/website name/public_html/wp-config.php): Failed to open stream: Permission denied in /home/website name/public_html/wp-content/plugins/wp-optimize/cache/class-wpo-page-cache.php on line 938
thrown in /home/website name/public_html/wp-includes/widgets/class-wp-widget-block.php on line 17Steps implemented to try and resolve the above issues:
Did a plugin conflict test. It did not help.
Cleared cache and minified cache. Exported the settings and then wiped wp-optimze settings. This did not help so I re-imported the settings.
Checked wp-config and .htaccess file. Regenerated .htaccess file, to see if that resolves the issue, it did not.
Changed file permissions to see if that resolves the issue, but not helping.
Worst of all, when I had a look at the website on my mobile, I saw that the mobile view of the website has stopped displaying content and mobile menu and search stopped working as well. Content can only be viewed in mobile view if you navigate to another page and then go back to the homepage. This must have been going on since the last plugin update, because when I now rolled back WP-Optimize plugin to the previous version, mobile view is functioning properly again. However the Browser static file caching headers are still disabled with the same error mentioned in this post, even though I did enable it after I rolled back the plugin.
The topic ‘Php Errors + Static File Headers + Mobile View Not functioning’ is closed to new replies.