• 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 https://www.theselfimprovementblog.com

    Any help would be appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter web30technology

    (@web30technology)

    fitured it out thanks to emirhan

    The solution is located here:

    https://www.ads-software.com/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. ??

    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.

    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?

    Hi web30technology,
    Thanks, it worked like a charm.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘2.5 Upgrade — widgets.php on line 60’ is closed to new replies.