• Hi,

    I just had a look at my WordPress blog today and noticed the following warning messages;

    PHP Warning: array_map() [function.array-map]: Argument #2 should be an array in D:\virtualservers\maximise\theinstituteofwellbeing.com\wwwroot\blog\wp-includes\post-template.php on line 676 PHP Warning: implode() [function.implode]: Invalid arguments passed in D:\virtualservers\maximise\theinstituteofwellbeing.com\wwwroot\blog\wp-includes\post-template.php on line 677

    What do I do to resolve this.
    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zeechyke

    (@zeechyke)

    Hi,

    I just had a look at my WordPress blog today and noticed the following warning messages;

    PHP Warning: array_map() [function.array-map]: Argument #2 should be an array in D:\…\wp-includes\post-template.php on line 676 PHP Warning: implode() [function.implode]: Invalid arguments passed in D:\…\wp-includes\post-template.php on line 677

    What do I do to resolve this.
    Regards

    I was having the same problem after upgrading from 2.7 to 2.8.4 on pages where I was calling the_meta() in my template to get post meta.
    After sorting through the wordpress code and trying some debugging, I found that it was only meta where there was no key (or name, in the post editor) associated with a meta value. When I added a name for the meta value and updated the post, it worked. So I would suggest to add a name for the post meta values on pages where you are experiencing the problem (and use Update Page, rather than the update for the post meta itself).
    Granted, it also displays the meta key next to the meta. I have had to do some custom modifications to the the_meta function and made a custom plugin to hide the post keys (and colons).
    Hope that helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ARRAY MAP AND IMPLODE ERROR WARNINGS’ is closed to new replies.