ronin Creativos on "Error Array in adminimize 1.10.4"

ساخت وبلاگ

roberto75
Member
Posted 3 weeks ago #

Hello,

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

Waing: 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/

Hi, same here

Waing: 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

wendigo73
Member
Posted 3 weeks ago #

Hello,

I had the same issue.

I solved it with a new declaration of array type, for "$disabled_admin_bar_option_" variable, in "adminimizeinc-setupadmin-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.

roberto75
Member
Posted 3 weeks ago #

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

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.

becky.absolute
Member
Posted 1 day ago #

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

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.

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

ronin Creativos
Member
Posted 8 minutes ago #

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. Idea out the original 118 line and pasting the lines above in this thread has fixed the issue indeed.

please verify your upload :)

thank you

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 269 تاريخ : چهارشنبه 9 تير 1395 ساعت: 1:37