Some users of my site are getting the following error message when a monthly archive list is supposed to be displayed. Any ideas what might be causing it? It seems to happen on the larger blogs rather than the smaller ones.
Warning: Cannot use a scalar value as an array in /var/www/virtualservers/filmjournal.net/htdocs/wp-includes/wp-db.php on line 244
Just to add to this - if I remove the Archives code from the theme then it shifts down into the next section - the 'Blogroll'. If the archives are there then the Blogroll is fine.
Seems like a very odd bug to me!
First check to see if it does that in all themes.
Been through and it does just seem to be one theme (I feel dirty) but not for all blogs using that theme. I'll just disable that one for now.
Any ideas what could be causing it to happen?
OK - I've done a bit more testing and here are my results!
1. The Scalar error only appears in the 'I feel dirty' theme. However sometimes it appears in the blogroll as well as the archive. This is seemingly random
2. The default theme isn't displaying correctly either. It completes the main content but the sidebar isn't dispaying. This is only on certain blogs - the same showing the problem above.
2) Need a sample please so we can look at the outputed code. :)
2) http://filmjournal.net/czech/
I can't leave it like that for long though as it's a member's blog!
Here's my blog with the same theme working fine:
http://filmjournal.net/colinp/
This is totally a stab in the dark, but by chance is the borked-theme user copy/pasting entries in?
The theme fiels are shared, so if the theme is in error, and only some users (or one) has a problem) it's *got* to be something the user is doing.
(Comeing from someone who has had to explain to the same user three times that the reason X theme - a different one each time - doesn't work for her is because she doesn't close tags.)
That was my first thought - but then looking at the source, the sidebar code hasn't appeared at all and it's died before the post closing div.
Whoa. And it only happens on the main index page. Individual entries are fine.
There's a bunch of unclosed divs in the main blog, but they seem to be fine elsewhere. Odd, very odd.
It's not even finishing that last post. It stops before the last div of the post body.
I see a mention of it over on wp-trac (There's links along the bottom to follow the thread) but that's WP 2.1 code.
I do see this mention of what appears to be an issue with PHP. Don't know which version you are running.
A fair amount of others but they pretain to broken widgets and plugins.
Yeah - I had a dig around wp-trac but couldn't find anything that matched.
I'm running 4.3.3 I think (maybe 4.3.2 with all of the security updates but I don't have access from home to check at the moment). I'm not keen on upgrading PHP though as there are other sites on the server that have taken ages to tweak to decent performance :(
I've been checking the other blogs and have not seen it elsewhere - I was assuming it was wider spread than it is. I might get the user to go over their entries in detail to see if there are any broken bits in there.