• Resolved hhgk

    (@hhgk)


    Hi,

    on my multisite in the backend only editors with the new version 3.0 of Lazy Block get the following errors:

    Invalid argument supplied for foreach() in /homepages/38/d875874084/htdocs/friendsineurope.com/live/wp-content/plugins/lazy-blocks/classes/class-admin.php on line 93
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/38/d875874084/htdocs/friendsineurope.com/live/wp-content/plugins/lazy-blocks/classes/class-admin.php:93) in /homepages/38/d875874084/htdocs/friendsineurope.com/live/wp-admin/includes/misc.php on line 1416
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/38/d875874084/htdocs/friendsineurope.com/live/wp-content/plugins/lazy-blocks/classes/class-admin.php:93) in /homepages/38/d875874084/htdocs/friendsineurope.com/live/wp-includes/functions.php on line 6865
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/38/d875874084/htdocs/friendsineurope.com/live/wp-content/plugins/lazy-blocks/classes/class-admin.php:93) in /homepages/38/d875874084/htdocs/friendsineurope.com/live/wp-admin/admin-header.php on line 9

    Can you please have a look at this problem. Right now I have changed the code of the “class-admin.php” to check whether $plugin_submenu variable is an array:

    if (is_array($plugin_submenu)) {
                foreach ( $plugin_submenu as $key => $submenu_item ) {
                    if ( 'lazy_blocks_go_pro' === $submenu_item[2] ) {
                        $plugin_submenu[ $key ][2] = lazyblocks()->get_plugin_site_url();
                    }
                }
            }

    Thanks.

    Regards,
    Holger

    • This topic was modified 3 years, 6 months ago by hhgk.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author nK

    (@nko)

    Hey Holger.

    Thank you for reporting to me. This error will be fixed in the plugin update today.

    Regards, nK.

Viewing 1 replies (of 1 total)

The topic ‘Errors in backend’ is closed to new replies.