• hi there,

    i am trying to use the theme Cutline 3-Column Right 1.1 by Chris Pearson on my fresh version 2.3.1 install.

    However i get the following error message at the top of the screen when i activate it:

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/vhosts/mysite.com/httpdocs/wp-includes/widgets.php on line 53

    Any idea how to resolve this?

    Thanks!!
    ssling

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ssling

    (@ssling)

    boy-o-boy, there are a lot of posts on this forum! i found a post from someone with the same problem that got buried and never answered. please don’t let that happen to me! 😉

    anyone know how to fix this? or at least what caused it?

    Thread Starter ssling

    (@ssling)

    well, google to the rescue, finally. i figured it out myself, so as a service to all those that may follow, here is how you fix the problem.

    on line 53, you have to add “(array)” as follows in that line:

    $sidebar = array_merge($defaults, (array)$args);

    fwiw, i used the theme above, but also the plugin viper’s video quick tags, which seems to have been affected, and may have caused the problem. i dunno… anyhow hope this helps you, future person.

    ssling.

    Line 53 of widgets.php in my system is a brace, and array-merge does not appear as a string in that file? Where did you make this edit?

    Thanks.

    from the future – thank you. same theme, same extension, same problem, and it just popped up overnight with no apparent cause. this fixed it. thanks for posting the solution.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘error message when change theme’ is closed to new replies.