• Plugin used: Hide SEO Bloat https://www.ads-software.com/plugins/so-clean-up-wp-seo/

    PHP Fatal error:  Uncaught Error: Closure object cannot have properties in /home/*/public_html/wp-includes/class-wp-list-util.php:115
    Stack trace:
    #0 /home/*/public_html/wp-includes/functions.php(4564): WP_List_Util->filter(Array, 'AND')
    #1 /home/*/public_html/wp-content/plugins/so-clean-up-wp-seo/includes/remove-class.php(28): wp_list_filter(Array, Array)
    #2 /home/*/public_html/wp-content/plugins/so-clean-up-wp-seo/includes/class-so-clean-up-wp-seo.php(246): remove_class_hook('admin_notices', 'WPSEO_Admin_Ini...', 'permalink_setti...')

    When using Twenty Twenty theme, or any other theme, there is no error.

    • This topic was modified 4 years, 3 months ago by Knut Sparhell.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author creativethemeshq

    (@creativethemeshq)

    @knutsp This looks like Hide SEO Bloat is not taking into consideration the fact that one can use inline anynymous functions to add actions, like this (they’re trying to treat the inline function as an array, thus the error):

    add_action('admin_notices', function () {});

    This construction should be properly supported since this is a normal construction valid since PHP 5.4.

    Also, our admin notices don’t really get in your way — you just hide them once and they’ll never appear again.

    Will try to contact the developer of Hide SEO Bloat, hopefully we can land a fix for this situation there.

    cc. @senlin

    Theme Author creativethemeshq

    (@creativethemeshq)

    Update: a fix is incoming from the plugin’s side: https://github.com/senlin/so-clean-up-wp-seo/issues/88

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error with WP 5.5 and spcific plugin’ is closed to new replies.