• Resolved sannalindstroem

    (@sannalindstroem)


    Hi,

    does anyone know what this means?:

    Warning: array_merge(): Argument #2 is not an array in /*****/ppom.class.php on line 171

    Sanna

Viewing 2 replies - 1 through 2 (of 2 total)
  • That part of the code retrieves the fields associated with a meta group id. From a PHP standpoint it means that the second variable placed into the array_merge function isn’t an array so the merge fails.

    From a PPOM programming standpoint it means that the $fields variable wasn’t populated with the_meta from the PPOM_TABLE_META table in your WP database.

    You might be using an invalid character in your meta field options or your meta group ID that is breaking the JSON format of the fields pulled from the database.

    I can tell you aren’t on the latest version because the array_merge in question is now located on line 169 in version 17.3. Try updating to the latest version of PPOM. I think this issue may have been corrected in the latest version.

    Hi @sannalindstroem,

    Yes please make sure you have PPOM fields populated correctly and also you are on latest version.

    Thanks @brozra 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: array_merge()’ is closed to new replies.