• when we switch users using the user switching plugin, we get the following warning. it doesn’t seem to cause any major errors or site crashes and we can visit the pages we built via elementor but we would like to find out what the below warning means and why this gets triggered. this did not come up with our previous version 2.9.14

    Stack trace
    E_WARNING: Invalid argument supplied for foreach()

    in Elementor\Core\App\App::fix_submenu called at /home/user/public_html/wp-includes/class-wp-hook.php (287)
    in WP_Hook::apply_filters called at /home/user/public_html/wp-includes/plugin.php (206)
    in apply_filters called at /home/user/public_html/wp-admin/includes/menu.php (245)
    in add_menu_classes called at /home/user/public_html/wp-admin/includes/menu.php (353)
    in require_once called at /home/user/public_html/wp-admin/menu.php (326)
    in require called at /home/user/public_html/wp-admin/admin.php (153)
    in require_once called at /home/user/public_html/wp-admin/index.php (10)

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    With which role are you accessing the WP dashboard?

    Thread Starter carlcs

    (@carlcs)

    hi @gabhelper

    i’m accessing the wp dashboard via the administrator role. using the plugin, i switch to a non administrator role

    I am also experiencing this error on Elementor v3.0.5 , but without using any particular plugin. Simply, whenever one of our WordPress ‘Contributor’ users natively logs-in to our (multisite) site which utilizes Elementor, this error displays:

    Warning: Invalid argument supplied for foreach() in /home/carmenab/public_html/wp-content/plugins/elementor/core/app/app.php on line 53

    Warning: Cannot modify header information – headers already sent by (output started at /home/carmenab/public_html/wp-content/plugins/elementor/core/app/app.php:53) in /home/carmenab/public_html/wp-includes/functions.php on line 6270

    I suspect this is a bug for any lower-level user role. App.php line 53 is the function fix_submenu( $menu ) { }, which contains a self-described ‘Hack’ for when is_network_admin() is not true.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘reported warning when using user switching plugin’ is closed to new replies.