• Resolved JRW-910

    (@jrw-910)


    The plugin seems to work well, but I am getting the following errors:

    Notice Undefined index: woo_sidebar 1
    wp-content/plugins/content-aware-sidebars/admin/admin_bar.php:155
    Plugin: content-aware-sidebars

    Notice Trying to access array offset on value of type null 2
    wp-content/plugins/content-aware-sidebars/admin/admin_bar.php:155
    Plugin: content-aware-sidebars

    Notice Undefined index: learndash_sidebar 1
    wp-content/plugins/content-aware-sidebars/admin/admin_bar.php:155
    Plugin: content-aware-sidebars

    Version 3.15.1
    Not using Learndash or Woocommerce

    Any ideas?

    -JRW

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m also experiencing the same PHP errors following the most recent update.

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you both for reporting this.

    What themes are you using, and are you using any other sidebar generator plugin?

    If possible, can you try updating the file in question (wp-content/plugins/content-aware-sidebars/admin/admin_bar.php, line 155), by replacing

    
                $args[] = [
                    'id'    => $index,
                    'title' => $wp_registered_sidebars[$index]['name'] . ($has_widgets ? '' : ' ('.__('Hidden').')'),
                ];
    

    with

    
                $sidebar_name = isset($wp_registered_sidebars[$index]['name'])
                    ? $wp_registered_sidebars[$index]['name']
                    : $index;
                $args[] = [
                    'id'    => $index,
                    'title' => $sidebar_name . ($has_widgets ? '' : ' ('.__('Hidden').')'),
                ];
    

    No problem Joachim.

    I’m using a custom Genesis child theme and no other sidebar generator plugins.

    For some reason, simply reverting back to the previous version of Content Aware Sidebars and then re-updating fixed this issue for me. I hope that helps.

    Thread Starter JRW-910

    (@jrw-910)

    @intoxstudio

    That did the trick. No errors now. I am using the BuddyBoss theme.

    Thanks for the help,

    -JRW

    Plugin Author Joachim Jensen

    (@intoxstudio)

    This has been resolved in version 3.15.2. Thank you all again for reporting this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Working but with PHP Errors’ is closed to new replies.