This message

This message started popping up every time I try updating a page.

Warning: Invalid argument supplied for foreach() in /srv/users/serverpilot/apps/tyreautoparts/public/wp-content/plugins/wp-hummingbird/core/modules/class-module-page-caching.php on line 1018

Warning: Invalid argument supplied for foreach() in /srv/users/serverpilot/apps/tyreautoparts/public/wp-content/plugins/wp-hummingbird/core/modules/class-module-page-caching.php on line 1018

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/tyreautoparts/public/wp-content/plugins/wp-hummingbird/core/modules/class-module-page-caching.php:1018) in /srv/users/serverpilot/apps/tyreautoparts/public/wp-admin/post.php on line 198

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/tyreautoparts/public/wp-content/plugins/wp-hummingbird/core/modules/class-module-page-caching.php:1018) in /srv/users/serverpilot/apps/tyreautoparts/public/wp-includes/pluggable.php on line 1216

  • Anton Vanyukov
    • Developer

    Hi Talal,

    This issue will be fixed in the upcoming release. If you want to manually fix it, you can edit the file wp-hummingbird/core/modules/class-module-page-caching.php and before this part (line 1018):

    foreach ( $metas as $meta ) {

    add this:

    if ( ! $metas ) {
    	continue;
    }

    Best regards,
    Anton

  • Gary
    • WPMU DEV Initiate

    I was just about to raise the same issue. I got around it by enclosing in .

    if(is_array($metas)){ ... }

    so much the same thing.

    Good to know that it will be resolved in the next update so I don't have to add workarounds every time there is an update.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.