• Resolved roberto75

    (@roberto75)


    Hello,

    Adminimize plugin, after the 1.10.4 update, brings me the message:

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /web/htdocs/www.xxxxxxxxx.it/home/wp-content/plugins/adminimize/inc-setup/admin-bar-items.php on line 118

    in the home page (below) and in showcase page.

    Why?

    I have a Twenty Sixteen theme free update to last version in italian language.

    Thanks to all.

    https://wordpress.org/plugins/adminimize/

Viewing 15 replies - 1 through 15 (of 28 total)
  • Hi, same here

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /wp-content/plugins/adminimize/inc-setup/admin-bar-items.php on line 118

    I’m using Avada theme v. 4.0.2 and WordPress 4.5.2

    Cheers

    Hello,

    I had the same issue.

    I solved it with a new declaration of array type, for “$disabled_admin_bar_option_” variable, in “adminimize\inc-setup\admin-bar-items.php”.

    Like this:

    // Merge multidimensional array in to one, flat.
    $disabled_admin_bar_option_ = array(); // new declaration of type
    $disabled_admin_bar_option_ = array_reduce( $disabled_admin_bar_option_, ‘array_merge’, array() );

    Best Regards

    It works for me! Thank you wendigo73.

    Thread Starter roberto75

    (@roberto75)

    It works for me too! Thank you very much Wendigo73!

    Plugin Author Frank Bueltge

    (@bueltge)

    You can now also test the new dev version from github, the topic should fixed.
    https://github.com/bueltge/Adminimize/archive/master.zip

    Thanks for feedback, if you have tested!
    Best.

    What is the timeline for this fix being released in an official update?

    Plugin Author Frank Bueltge

    (@bueltge)

    I think on the end of this week. Currently I work also on a fix for the multiple roles support, that’s not easy and I wait for tests from users before the official update.

    Plugin Author Frank Bueltge

    (@bueltge)

    The new version is online, include this fix for the php warning.

    friend, the error is still there (after updating to 1.10.5)

    the changelog in the install folder enumerates the fix, but the code apparently does not reflect it. commenting out the original 118 line and pasting the lines above in this thread has fixed the issue indeed.

    please verify your upload πŸ™‚

    thank you

    Plugin Author Frank Bueltge

    (@bueltge)

    If you check the file, the change is include
    $disabled_admin_bar_option_ = (array) array_reduce( $disabled_admin_bar_option_, 'array_merge', array() );

    Also inside the SVN – http://plugins.svn.wordpress.org/adminimize/tags/1.10.5/inc-setup/admin-bar-items.php

    Can you verify your install. When you have this error message, can you describe this, that I can retrace it.
    Thanks.

    well it is indeed. but when i updated the plugin in one installation, the error persisted. i installed anew in a nother instance, and the error was gone. so yes, it is fixed πŸ™‚ (weird though)
    thank you

    Hi,
    I also have updated to 1.10.5 and am still getting the error. I have also deleted the plugin and re-installed and still not fixed.

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/sites/h/howaboutholidays.com/public_html/wp-content/plugins/adminimize/inc-setup/admin-bar-items.php on line 118

    Plugin Author Frank Bueltge

    (@bueltge)

    Do you have the error after a new install, re-installation?

    I had also checked this in a fresh install. Now error message. At first, the admin bar items are empty, no items. After view of another back end page and front end page, I have all items without a error in my settings.

    Maybe you can describe, how you get to this error. Thx.

    Hello Frank. Here is the David of SΓ£o Paulo – Brazil. I installed today 07.11.2016 the Adminimize in WordPress 4.5.3 and appeared pt_BR’s message:

    Warning: array_merge () [function.array-merge]: Argument # 1 is not an array in/home/storage/5/15/5d/cefatef1/public_html/site/wp-content/plugins/adminimize/inc-setup/admin-bar-items.php on line 118

    Already changed the 118 line with its information and continues the error. The line is currently using these commands:

    // Multidimensional array merge in to one, flat.
    $ Disabled_admin_bar_option_ = (array) array_reduce ($ disabled_admin_bar_option_, ‘array_merge’, array ());

    Help me please.

    Correcting the command line:

    $disabled_admin_bar_option_ = (array) array_reduce ($ disabled_admin_bar_option_, ‘array_merge’, array ());

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘Error Array in adminimize 1.10.4’ is closed to new replies.