WordPress.org

Ready to get started?Download WordPress

Forums

Menubar Color Changer
[resolved] Array error for user with editor role? (6 posts)

  1. ArjanT
    Member
    Posted 1 year ago #

    Hi Ole-Kenneth, I have added a user with editor role but when he logs in, we see error messages, although posting etc is possible, but the dashboard looks messed up. Later I tried with author role, but same problem. I think it refers to the buttons restricted to administrators, since they do not show up, and instead show error messages (like plugin,etc).

    To be sure it is this plugin that is causing this behaviour I deactivated it, but with same result; then I deinstalled it and after that the errors disappeared, clean dashboard again. Reinstalled plugin and messed up dashboard. Hopefully you can help. Thanks in advance!

    Arjan

    Error message:

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/windroos/public_html/wp-content/plugins/menubar-color-changer/menubar-color-changer.php on line 111

    Warning: Invalid argument supplied for foreach() in /home/windroos/public_html/wp-admin/includes/plugin.php on line 1409

    Warning: Invalid argument supplied for foreach() in /home/windroos/public_html/wp-admin/includes/plugin.

    and a few more lines

    http://wordpress.org/extend/plugins/menubar-color-changer/

  2. Ole-Kenneth
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, if you update the plugin now I have muted the error. Thanks for the heads up! :-)

    The error only occurred when the plugin tried to create the link to customizer.

  3. ArjanT
    Member
    Posted 1 year ago #

    Hi Ole-Kenneth, thank you for your quick reply. Of course I tested it rightaway, but still having problems. The first error has gone, but ir now starts with previously the second one:
    Warning: Invalid argument supplied for foreach() in /home/windroos/public_html/wp-admin/includes/plugin.php on line 1409

    I can mail you a screenshot if you wish...

    I first did an update to 1.0.2, however no succes, I deinstalled and reinstalled completely, however also without result. Also created a new user, no result. Also tested with IE and Chrome, no difference.

    Sorry could not give you better new. Thanks for your help!

  4. ArjanT
    Member
    Posted 1 year ago #

    Hi Ole-Kenneth,
    Did you have a chance to look at this issue? Thx, Arjan.

  5. Ole-Kenneth
    Member
    Plugin Author

    Posted 1 year ago #

    Hi. Sorry for late response.

    It seems like you have turned debug on. But thats okay. The newest version fixes the problem.

  6. ArjanT
    Member
    Posted 1 year ago #

    Hi Ole-Kenneth,
    Yep! Great, the plugin was updated and now we do not see error messages anymore, thanks a lot for your help! Rgds, Arjan.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic