Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Just upgraded wordpress to 4.4 and new seeing this error:
Warning: array_map(): Argument #2 should be an array in /home/…/wp-includes/category-template.php on line 1158
The google tells me this is a common error this morning, and that it is a theme incompatibility (especially or only if woocommerce is installed?) I’m using Vantage, but many themes from many developers seem to be having the error.
Any advice?
Hi Rpf
It’s possible this is some sort of isssue in WordPress itself. You can try switching to a default WordPress theme like Twenty Fifteen to see if it fixes the issue. This will help diagnose if it’s Vantage related.
Had the same problem on one of my sites. As James Huff pointed on WordPress 4.4 Master List a few hours ago, a patch for this problem has been made:
https://core.trac.wordpress.org/attachment/ticket/34723/34723.patch
To fix, open your category-template.php and replace lines 1144 – 1158…
New code from the patch:
So is now line 1144 – 1162. This fix will be included in the future 4.4.1 I suppose
Thanks very much for the solution Ronald. I’ll also be sure to add post editing in the next update to our forum system :)
Thanks Ronald & Greg. I applied the patch and now see the error less often, but it’s not entirely gone. I used to see the same error repeated 5 times at the top of the page, and now it appears only once, on those infrequent occasions it shows up at all. I’m not too worried about it, maybe a future update will take care of it.