• Resolved tbsworks

    (@tbsworks)


    I also posted in your github…
    wordpress 5.3.2 – fresh multisite install – 2020 wp theme
    php 7.3
    3 plugins active – elementor – elementor pro – dashboard welcome

    switching themes locks the page up.

    I noticed the issue when another plugin wasn’t able to update properly using some sort of ajax for it’s update method.

    Debug shows:
    Notice: Undefined offset: 0 in /home/somewebsite/public_html/wp-content/plugins/dashboard-welcome-for-elementor/classes/class-dwe-admin.php on line 317

    Warning: Cannot modify header information – headers already sent by (output started at /home/somewebsite/public_html/wp-content/plugins/dashboard-welcome-for-elementor/classes/class-dwe-admin.php:317) in /home/somewebsite/public_html/wp-includes/functions.php on line 6029

    Warning: Cannot modify header information – headers already sent by (output started at /home/somewebsite/public_html/wp-content/plugins/dashboard-welcome-for-elementor/classes/class-dwe-admin.php:317) in /home/somewebsite/public_html/wp-admin/includes/misc.php on line 1252

    Warning: Cannot modify header information – headers already sent by (output started at /home/somewebsite/public_html/wp-content/plugins/dashboard-welcome-for-elementor/classes/class-dwe-admin.php:317) in /home/somewebsite/public_html/wp-admin/admin-header.php on line 9

Viewing 1 replies (of 1 total)
  • Thread Starter tbsworks

    (@tbsworks)

    OK that was not the issue —
    To be specific – the issue I was tracking down was WPMU DEV’s White Labeling Branda plugin would not retain the menu tweaks on subsites. (if overriding the global setting)

    Anyway it was this piece of code in the class-dwe-admin.php

    		if ( is_multisite() ) {
    			$hide_settings = get_blog_option( 1, 'dwe_hide_from_subsites' );
    			
    			if ( $hide_settings && get_current_blog_id() != 1 ) {
    				return;
    			}
    		}

    Not sure why but commenting out that bit made both plugins work in harmony, everything works fantastic – your plugin is very nice. I fought for hours on this one, because adding forms to the admin dashboard is not easy, but your plugin makes it a breeze.
    I will manage menu visibility with Branda.

    P.S.
    I would’ve edited the title, but it appears I can not. So I will mark as solved.

    Cheers

Viewing 1 replies (of 1 total)
  • The topic ‘Notice: Undefined offset: 0 – Bug’ is closed to new replies.