WordPress.org

Ready to get started?Download WordPress

Forums

Argument #2 is not an array (6 posts)

  1. greencode
    Member
    Posted 3 years ago #

    I'm attempting to activate a new theme called Foliogrid but whenever I do so I get the following appear at the top of each page:

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mysite/public_html/wp-includes/widgets.php on line 777

    I've attempted to install on two different websites running on different servers and the same occurs on both.

    Any ideas or help would be greatly appreciated.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Looks like there's an issue in the theme. Have you tried contacting the developer?

  3. johnosmond
    Member
    Posted 3 years ago #

    You need to complete your constructor function with an id_base and a name.

    So if your running php 5.3 (or <) then:
    function __construct() {
    parent::__construct($id_base = 'xyz_', $name = 'My Simple Widget');
    }

    or if you are not using php 5.3 or < then use the name of your class.

  4. Digital Raindrops
    Member
    Posted 3 years ago #

    As you have paid for the theme, have you tried asking the vendor?

    If it is a php issue they might have one that works with a prior version, or a refund.

    David

  5. greencode
    Member
    Posted 3 years ago #

    Thanks for your help with this but my original question was posted over 7 months ago so I decided against using this theme.

  6. Digital Raindrops
    Member
    Posted 3 years ago #

    Grrr!
    Did not see that, it was re-activated by johnosmond, this happens when people are searching and add a reply to an historic post.

    We cannot edit our replies after a time limit, would be good if posts were locked after a month, save us wasting time answering posts that are historic!

    David :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags