Frank got.
Put the following command line:
$ disabled admin_bar_option_ = array ();
The message disappeared … is correct that?
The “fixed” version got the error message to me as well.
I removed the one line change Frank made and put in the two line version of it from wendigo73, and the error message is gone.
(adminimize/inc-setup/admin-bar-items.php)
It worked for me what made bacce.
In the file:
adminimize/inc-setup/admin-bar-items.php
On line 118: Replace this:
$disabled_admin_bar_option_ = (array) array_reduce( $disabled_admin_bar_option_, ‘array_merge’, array() );
So:
$disabled_admin_bar_option_ = array(); // new declaration of type
$disabled_admin_bar_option_ = array_reduce( $disabled_admin_bar_option_, ‘array_merge’, array() );
Still getting these issues despite deleting and downloading new version and following some of the suggestions above:-
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
The topic should closed with version 1.10.6.
I managed to solve the problem by replacing the line above. Thank you Frank: D
I am afraid I am still getting the same error after the 1.10.6 update
It appears everywhere in the admin except the Adminimize settings page itself
I will check this again, thx for the hint.
I confirm, I have this warning message on a fresh installation today 🙁
Hi there,
I’m using Adminimize last udpdate : 1.10.6
Since I update to WP 4.6.1–fr_FR the problem has change a little bit…
First warning message :
array_merge() [function.array-merge]: Argument #1 is not an array in […]/wp-content/plugins/adminimize/inc-setup/admin-bar-items.php on line 122
So I make the usual replacement :
$disabled_admin_bar_option_ = array(); // new declaration of type
$disabled_admin_bar_option_ = array_reduce( $disabled_admin_bar_option_, ‘array_merge’, array() );
Then appears a new warning message :
array_reduce() [function.array-reduce]: The second argument, ‘‘array_merge’’, should be a valid callback in […]/wp-content/plugins/adminimize/inc-setup/admin-bar-items.php on line 126
So, nothing seems fixed even with the last version of Adminimize plugin
A new warning message appears since WP 4.6.1–fr_FR update.
Thanks Frank Bueltge for the useful plugin but when will this bug be fixed ? 😉
-
This reply was modified 8 years, 6 months ago by
Jérémy.
-
This reply was modified 8 years, 6 months ago by
Jérémy.
This is not resolved in new version. Been this way for months now. WordPress 4.6.1 is not compatible with this plugin.
Ran into this error as well. Something to note, I only notice this error while running PHP version: 5.2.17. If I up the server PHP version to 5.3+ then the error goes away. Could be the cause of some of the problems others are seeing. Unfortunately for me I’m stuck running the old version of PHP on the server for now.
I also have this same error:
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 122
Wordpress 4.6.1
Adminimize 1.10.6
Godaddy, PHP 5.3
-
This reply was modified 8 years, 4 months ago by
justaleaf.