Last Update broke my site
-
hello
I have updated the plugin to the latest version, but the “phpErrorFatal” error still appears.the php version of the hosting is 8.0.25
Until the plugin update yesterday, the site has worked perfectly.
please can you solve it?i send you new “log error”
[Thu Dec 01 22:31:39.059301 2022] [proxy_fcgi:error] [pid 28607:tid 139999375001344] [client 2.154.224.59:60879] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function apache_response_headers() in /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/bangbang.es/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/bangbang.es/public_html/wp-settings.php(95): include('...')\n#4 /home/bangbang.es/public_html/wp-config.php(103): require_once('...')\n#5 /home/bangbang.es/public_html/wp-load.php(50): require_once('...')\n#6 /home/bangbang.es/public_html/wp-admin/admin.php(34): require_once('...')\n#7 /home/bangbang.es/public_html/wp-admin/plugins.php(10): requir...', referer: https://www.bangbang.es/wp-admin/plugins.php [Thu Dec 01 22:31:39.238979 2022] [proxy_fcgi:error] [pid 28607:tid 139999375001344] [client 2.154.224.59:60879] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function apache_response_headers() in /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/bangbang.es/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/bangbang.es/public_html/wp-settings.php(95): include('...')\n#4 /home/bangbang.es/public_html/wp-config.php(103): require_once('...')\n#5 /home/bangbang.es/public_html/wp-load.php(50): require_once('...')\n#6 /home/bangbang.es/public_html/wp-blog-header.php(13): require_once('...')\n#7 /home/bangbang.es/public_html/index.php(17): require('...')\n#8...', referer: https://www.bangbang.es/wp-admin/plugins.php [Thu Dec 01 22:31:43.964373 2022] [proxy_fcgi:error] [pid 28607:tid 139999526070016] [client 2.154.224.59:60879] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function apache_response_headers() in /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/bangbang.es/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/bangbang.es/public_html/wp-settings.php(95): include('...')\n#4 /home/bangbang.es/public_html/wp-config.php(103): require_once('...')\n#5 /home/bangbang.es/public_html/wp-load.php(50): require_once('...')\n#6 /home/bangbang.es/public_html/wp-admin/admin.php(34): require_once('...')\n#7 /home/bangbang.es/public_html/wp-admin/index.php(10): require_...'
Thank you for your reply.
As you can read in my previous post:
SiteGround Optimizer 7.2.8
PHP 8.1.3
FPM served by Apache
nginx proxyThe issue is that the apache_response_headers() (a PHP function) does not exist on my system and disabling themes or other plugins won’t solve that.
It would be better if you checked if the function exists
if (function_exists(‘apache_response_headers’)) {
//loop here
}We have released a new version for environmens where this method is not supported.
You can update the plugin and verify the results on your end.
Thank you again for the reports!
Best Regards,
Elenahello
thanksnow yes, with the new version, the problem has been solved.
Hi. I am getting:
Cannot modify header information – headers already sent in /public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php on line 142
Just updated to
Running Linux, LiteSpeed PHP version 7.4.33
Hello @katmacau,
We have not received similar reports after the latest plugin update to version 7.2.9 and the mentioned error does not seem to be related to the issue originally reported in this thread.
Please follow the forum guidelines and start your own separate topic so we can take a closer look at the issue you are experiencing.
Best regards,
Dimo
- The topic ‘Last Update broke my site’ is closed to new replies.