• Resolved nregard

    (@nregard)


    Hi, when the plugin is active the homepage breaks.

    The rest of the pages are fine.

    I turned off all caching for the homepage and other pages, cleared the cache, updated the homepage and it still breaks.

    When I try to preview the homepage via the page edit -> preview it gives me these errors:

    `Warning: in_array() expects parameter 2 to be array, null given in /home/customer/www/staging2.michaell231.sg-host.com/public_html/wp-content/plugins/hummingbird-performance/core/modules/class-page-cache.php on line 1482
    Warning: in_array() expects parameter 2 to be array, null given in /home/customer/www/staging2.michaell231.sg-host.com/public_html/wp-content/plugins/hummingbird-performance/core/modules/class-page-cache.php on line 1482
    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/staging2.michaell231.sg-host.com/public_html/wp-content/plugins/hummingbird-performance/core/modules/class-page-cache.php:1482) in /home/customer/www/staging2.michaell231.sg-host.com/public_html/wp-content/themes/Divi/includes/builder/functions.php on line 4136`

    I disabled the plugin and the homepage goes back to normal. What setting can I change to make the homepage work normal?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @nregard

    I hope you are doing good today.

    Could you disable the Asset Optimization in Hummingbird in the first place and see if that helps? Please let us know does that helps.

    Kind Regards,
    Kris

    Thread Starter nregard

    (@nregard)

    I am, I hope you are as well, thank you!

    It seems like that fixed it!

    If I wanted to have image optimization is that possible without breaking the homepage?

    • This reply was modified 3 years ago by nregard.
    Thread Starter nregard

    (@nregard)

    The homepage actually just broke again and the image optimization is still off.

    Hello @nregard !

    I hope you’re doing great today!

    It looks like you have debug display enabled on your site, which is causing some (harmless) debugging messages to be displayed.

    To fix this, please remove any entries such as those below from your site’s wp-config.php file:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', true );
    

    You can replace them with the following ones:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @error_reporting(0);
    @ini_set('display_errors', 0);
    

    Warm regards,
    Pawel

    Thread Starter nregard

    (@nregard)

    Hi there,

    Thanks for that.

    Unfortunately, that’s not the issue.

    I did not have any debug code active, but I went and placed your code in my config and my site is still having the issues. It’s now not only breaking the home page but the post pages too.

    Do you know what setting in hummingbird is doing this?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @nregard

    This:

    Warning: in_array() expects parameter 2 to be array, null given in /home/customer/www/staging2.michaell231.sg-host.com/public_html/wp-content/plugins/hummingbird-performance/core/modules/class-page-cache.php on line 1482

    is a warning only, shouldn’t cause issues on front end, if the warning keep showing you can double check your server settings and make sure the display error is off.

    If you use cPanel it is usually in cPanel > php ini editor.

    However, I do agree warnings should be returned at all.

    Could you please go to Hummingbird > Settings > Data and do a Factory reset in the plugin to check if it makes any difference?

    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @nregard ,

    We haven’t heard from you for several days now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Homepage broken’ is closed to new replies.