Title: Error message
Last modified: August 21, 2016

---

# Error message

 *  Resolved [beda69](https://wordpress.org/support/users/beda69/)
 * (@beda69)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/)
 * Hi
    i am getting following error message on top of my admin panel since i made
   some changes in the “hide/show” options of WP all in one admin panel plugin. 
   I already uninstalled and reinstalled and changed all options, the error message
   doesn’t disappear… here the error message i get: (i cleaned out the name of my
   wp-table and repaved with “xxx” Warning: reset() expects parameter 1 to be array,
   null given in /home/”xxxxx”/public_html/wp-content/plugins/wp-all-in-one-admin-
   bar/public/includes/class-wordpress-all-in-one-adminbar-customizer.php on line
   308
 * Warning: reset() expects parameter 1 to be array, null given in /home/”xxxx”/
   public_html/wp-content/plugins/wp-all-in-one-admin-bar/public/includes/class-
   wordpress-all-in-one-adminbar-customizer.php on line 309
 * Warning: Variable passed to each() is not an array or object in /home/”xxxx”/
   public_html/wp-content/plugins/wp-all-in-one-admin-bar/public/includes/class-
   wordpress-all-in-one-adminbar-customizer.php on line 311
 * do you have an idea whats wrong/what to do?
    as told above, i already uninstalled/
   deleted/reinstalled and changed settings…. nothing changes… i guess its not a
   plugin incompatibility as i did not install any new plugins and before it was
   working just fine…. thanks, beda
 * [https://wordpress.org/plugins/wp-all-in-one-admin-bar/](https://wordpress.org/plugins/wp-all-in-one-admin-bar/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [codebunny](https://wordpress.org/support/users/codebunny/)
 * (@codebunny)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079793)
 * I guess you enabled debug mode. This warning message is not related to show/hide
   thing.
    But try this:
 * **(1) Option one**
    - Open wp-all-in-one-admin-bar/uninstall.php.
    - Uncomment “delete_option(‘wpaioab_settings’);” lines.
    - Uninstall and Re-install the plugin
 * **(2) Option two**
    I’m considering only the error message on line 308. You can
   repeat it for other places.
    - Open the file class-wordpress-all-in-one-adminbar-customizer.php
    - Line 308: reset($current_menu_item_labels);
    - Replace the line 308 by following code
    - if(isset($current_menu_item_labels)){reset($current_menu_item_labels);}
 * **(3) Option three**
    - Open wp-all-in-one-admin-bar/wp-all-in-one-admin-bar.php
    - go to line 21: $wpaioab_options = get_option(‘wpaioab_settings’);
    - Add these two lines right above the line 21.
       $wpaioab_options = null; update_option(‘
      wpaioab_settings’, $wpaioab_options);
    - Refresh the admin page once
    - This time it will give an error message. Don’t worry about it.
    - Now remove two lines that you added “$wpaioab_options = null; update_option(‘
      wpaioab_settings’, $wpaioab_options);”
 *  Thread Starter [beda69](https://wordpress.org/support/users/beda69/)
 * (@beda69)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079892)
 * thank you, first option worked fine.
    can i ask what you mean with : “I guess
   you enabled debug mode. This warning message is not related to show/hide thing.
   But try this:”
 * does it mean tose error messages only show up in my admin interface with certain“
   debug settings” enabled?
    does it mean it is not a serious “error”? would everything
   work fine if i wouldn’t reinstall etc? thank you for the great plugin…. by the
   way: is there any chance to remove the menu icons on the left side of admin panel
   bar, when drop down menu of “my sites” is open, on left side of the sites-name
   there is a WP-icon, would love to remove/chage that, but wasn’t able to do so….
   for the rest very great plugin… thank you
 *  Thread Starter [beda69](https://wordpress.org/support/users/beda69/)
 * (@beda69)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079894)
 * hi
    just to let you know: this action is causing the error message: Add New Custom
   Menu Root in section “custom menu”. after adding a new custom menu i get the 
   error messages posted above.
 * so, then i tried option 1,2 and 3.
    option 1 all ok, but once i want to set personal
   menus, i get the error messages again.
 * option 2 does work, but after changing the third line (311)
    i get following 
   error and site crashes completely:
 * “Parse error: syntax error, unexpected T_PRIVATE in /home/”xxxx”/public_html/
   wp-content/plugins/wp-all-in-one-admin-bar/public/includes/class-wordpress-all-
   in-one-adminbar-customizer.php on line 335”
 * option 3 doesn’t help at all, site crashes.
 * thank you.
    beda
 *  Plugin Author [codebunny](https://wordpress.org/support/users/codebunny/)
 * (@codebunny)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079895)
 * Thanks for your information. I’ll double check the custom menu section in single/
   multisite both and update the plugin soon.
 * I thought you enabled the debug mode for testing purpose. According to your first
   post:
 * **Warning**: `reset() expects parameter 1 to be array, null given in /home/"xxxx"/
   public_html/wp-content/plugins/wp-all-in-one-admin-bar/public/includes/class-
   wordpress-all-in-one-adminbar-customizer.php on line 309`
 * It is a warning not a fatal error. Even it is a warning message, logically it
   should not be happened. Anyway, grateful if you can paste the debug log here 
   [http://pastebin.com/](http://pastebin.com/) and send me the link. It may help
   me to find the problem.
 * If option one worked fine, I think it is enough,do not go to other options. Reinstall
   the plugin
 * **is there any chance to remove the menu icons on the left side of admin panel
   bar**
 * Did you try this ?
    [http://wordpress.org/plugins/hide-admin-icons/](http://wordpress.org/plugins/hide-admin-icons/)
 *  Thread Starter [beda69](https://wordpress.org/support/users/beda69/)
 * (@beda69)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079898)
 * hi.
    i unfortunately lost patience and reset the entire WP installation. will
   try again, step by step… luckily i did not have any content until now…. thank
   you for support… beda
 *  Plugin Author [codebunny](https://wordpress.org/support/users/codebunny/)
 * (@codebunny)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079924)
 * I fixed the issue. Please, download version 1.1
 *  Thread Starter [beda69](https://wordpress.org/support/users/beda69/)
 * (@beda69)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079926)
 * hi
    you are awesome and one of the feww plugin authors that care s about support.
   i appreciate this and thats why i will ask you something hoers that is not 100%
   related to your plugin but since it is a admin-customize plugin maybe you can
   help me out of this.
 * i want to change the wp-admin URL into something glide …/dashboard (example).
 * to explain:
    a user logs in to his MU account (buddy press) and builds a own 
   site,
 * then he moves to the “edit site” area, and he will see a URL like [http://www.mysite.com/user/wp-admin](http://www.mysite.com/user/wp-admin)
   
   i want this URL to be [http://www.mysite.com/user/dashboard](http://www.mysite.com/user/dashboard)!!!!!!
 * do you know how to do this?
 * thank you for awesome suppert of your plugin, great work!!!!!
 * beda
 *  Plugin Author [codebunny](https://wordpress.org/support/users/codebunny/)
 * (@codebunny)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079929)
 * Did you try these ?
 * [http://wordpress.org/plugins/hc-custom-wp-admin-url/](http://wordpress.org/plugins/hc-custom-wp-admin-url/)
   
   [http://wordpress.org/plugins/lockdown-wp-admin/](http://wordpress.org/plugins/lockdown-wp-admin/)
 *  Thread Starter [beda69](https://wordpress.org/support/users/beda69/)
 * (@beda69)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079930)
 * yes, they didn’t what i need, unfortunately…
    i have meanwhile found a “workaround”…
   a co-work of 3 different plugins, -“Erident Custom Login and Dashboard” (for 
   custom login design) -“goodbye-wp-admin”, with additional php-coding for renaming
   the wp-admin slug -IThemes Security for renaming the wp-login slug -“theme my
   login” for force users and visitors to either login or register.
 * unfortunately this mix brakes the “dashboard” link when clicking on it from user-
   inetrface, but when entering site-edit mode from buddypressmenu its working.
 * will try around a bit more,
    thank you for grate help. beda

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Error message’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-all-in-one-admin-bar_b8bcc3.svg)
 * [WordPress All In One Admin Bar](https://wordpress.org/plugins/wp-all-in-one-admin-bar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-in-one-admin-bar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-in-one-admin-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-in-one-admin-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-in-one-admin-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-in-one-admin-bar/reviews/)

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)

 * 9 replies
 * 2 participants
 * Last reply from: [beda69](https://wordpress.org/support/users/beda69/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/error-message-331/#post-5079930)
 * Status: resolved