Forums

2.5 Upgrade -- widgets.php on line 60 (7 posts)

  1. 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!

  2. 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);

  3. jonimueller
    Member
    Posted 3 years ago #

    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. :)

  4. 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!

  5. wazimm
    Member
    Posted 3 years ago #

    thanks very much for your help.

  6. 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?

  7. Anonymous
    Unregistered
    Posted 3 years ago #

    Hi web30technology,
    Thanks, it worked like a charm.

Topic Closed

This topic has been closed to new replies.

About this Topic