• Resolved imaginativo

    (@imaginativo)


    Since the last update we have the following critical error for the roles except the administrator role

    Se ha producido un error del tipo E_ERROR en la línea 472 del archivo /public_html/wp-content/plugins/hummingbird-performance/admin/class-admin.php. Mensaje de error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /home/public_html/wp-content/plugins/hummingbird-performance/admin/class-admin.php:472
    Stack trace:
    #0 /home/public_html/wp-content/plugins/hummingbird-performance/admin/class-admin.php(472): array_filter(NULL, Object(Closure))
    #1 /home/public_html/wp-includes/class-wp-hook.php(324): Hummingbird\Admin\Admin->wphb_style_upgrade_pro_upsell(”)
    #2 /home/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #3 /home//public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /home/public_html/wp-admin/admin-header.php(163): do_action(‘admin_head’)
    #5 /home/public_html/wp-admin/index.php(137): require_once(‘/home/…’)
    #6 {main}
    ? thrown

    • This topic was modified 6 months, 3 weeks ago by imaginativo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @imaginativo

    I hope you’re well today!

    Our developers managed to isolate unexpected bug in the plugin that’s causing it. The fix is on a way and should be released soon (as an emergency release). I don’t have exact release date but it’s expected very soon (nearest update should solve this).

    Until then, there’s a patch that you can add to the site as a Must-Use plugin and it should fix it.

    The patch code is:

    <?php
    
    add_action('plugins_loaded', function () {
    
    	if (!is_admin()) {
    		return;
    	}
    
    	global $wp_filter;
    
    	$function_name = 'wphb_style_upgrade_pro_upsell';
    
    	foreach ($wp_filter['admin_head']->callbacks as $priority => $callbacks) {
    		foreach ($callbacks as $callback) {
    			if (is_array($callback['function']) && $callback['function'][1] === $function_name) {
    				remove_action('admin_head', $callback['function'], $priority);
    			}
    		}
    	}
    }, 99999);

    To apply it to the site:

    – create an empty file with a .php extension (e.g. “hummingbird-nonadmin-error-patch.php”) in the “/wp-content/mu-plugins” folder of your site’s WordPress install

    – copy and paste above code into that file

    – save the file

    You may need to clear server-side cache (if there is any) but other than this, it should fix that right away.

    Kind regards
    Adam

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @imaginativo,

    Since we haven’t heard from you recently, I’ll go ahead and mark this thread as resolved. Should you have any further questions or need additional assistance, feel free to reach out to us at any time!

    Kind Regards,
    Nebu John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Se ha producido un error del tipo E_ERROR en la línea 472 del archivo…’ is closed to new replies.