Title: Errors in backend
Last modified: November 10, 2022

---

# Errors in backend

 *  Resolved [hhgk](https://wordpress.org/support/users/hhgk/)
 * (@hhgk)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/errors-in-backend-3/)
 * 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](https://wordpress.org/support/users/hhgk/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-in-backend-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/errors-in-backend-3/#post-16190775)
 * 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.

 * ![](https://ps.w.org/lazy-blocks/assets/icon-256x256.png?rev=2584676)
 * [Custom Block Builder - Lazy Blocks](https://wordpress.org/plugins/lazy-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-blocks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/errors-in-backend-3/#post-16190775)
 * Status: resolved