web30technology
Member
Posted 3 years ago #
arrgh -- upgraded to 2.5 from 2.3.1 -- and not here to beyatch about it -- haven't had any problems on any others. I've deleted all the old plugins, still stuck.
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/improve/public_html/wp-includes/widgets.php on line 60
site is http://www.theselfimprovementblog.com
Any help would be appreciated!
web30technology
Member
Posted 3 years ago #
fitured it out thanks to emirhan
The solution is located here:
http://wordpress.org/support/topic/148108
I put the one line of code in the widgets.php file on the line number that was the problem (for me it was line 60 - the old code was
$sidebar = array_merge($defaults, $args);
The proper code should be:
$sidebar = array_merge($defaults, (array)$args);
Thanks for posting the link to the solution! Lots don't. And make sure you come back and mark the thread resolved to help others in the same boat. :)
thekytikat
Member
Posted 3 years ago #
Thank You!!! I could not have figured this out for the life of me. Thank you for posting the solution!
thanks very much for your help.
Leafgreen
Member
Posted 3 years ago #
Excellent. This fixed it. But here's my question: What caused this problem in the first place? Was it a post by an author? Is there some log that I can view that will show me what caused the error?
Anonymous
Unregistered
Posted 3 years ago #
Hi web30technology,
Thanks, it worked like a charm.