Support » Plugin: SiteGround Optimizer » receiving error message after purging cache or updating a plugin

  • Resolved Matt

    (@visibledeals)


    Hi,

    I receive the below message on my backend. There are two things that seem to trigger this message.

    1. is by clicking on “purge SG Cache” via the admin bar in the backend.
    2. Another way to trigger the below message is to update any one of the plugins installed on the website that has a new update available.

    Warning: Invalid argument supplied for foreach() in /home/customer/www/v*****s.com/public_html/wp-includes/class-wp-list-util.php on line 165

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/v*****s.com/public_html/wp-includes/class-wp-list-util.php:165) in /home/customer/www/v*****s.com/public_html/wp-includes/functions.php on line 6821

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Georgi Ganchev

    (@georgiganchev)

    Hello @visibledeals,

    We have tested the reported issue and we can confirm that it is not related in any way to the SG Optimizer plugin.

    Indeed you can see an error when the Purge Cache option is triggered but as stated in the error itself, this comes from the following PHP error:

    PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/visibledeals.com/public_html/wp-includes/class-wp-list-util.php on line 165

    Due to the aforementioned argument incompatibility, the headers sent towards the functions.php cannot be modified hence the error you receive.

    You may check this with your developer. In addition please be informed that changing the PHP version from PHP7.4 to PHP7.3 does not trigger the error anymore.

    Best regards,
    Georgi Ganchev

    Thread Starter Matt

    (@visibledeals)

    Hi Georgi,

    I just changed the php to 7.3 in my staging site and updated a few plugins but the error still comes up. so changing the php version did not help.

    Plugin Support Georgi Ganchev

    (@georgiganchev)

    @visibledeals,

    I was unable to replicate the error when PHP7.3 was applied. In any way, the issue is not related to or caused by the SG Optimizer plugin.

    We advise you to revise this with a professional developer.

    Best regards,
    Georgi Ganchev

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.