this error is completely inconsistent and apears randomly.
The nice thing about computers is that that is almost never true. Hard to trace, yes. Random, pretty much never. 🙂
That error is in a theme update function, and a pretty simple one. I’d guess that probably one of your plugins is breaking it. You haven’t deleted all your themes have you? Or anything odd like that? the get_themes() function sets $themes, which is the “invalid argument” in your error. get_themes() will return false in some circumstances.
252 * The theme is broken, if it doesn’t have a parent theme and is missing either
253 * style.css and, or index.php. If the theme has a parent theme then it is
254 * broken, if it is missing style.css; index.php is optional. The broken theme
255 * list is saved in the {@link $wp_broken_themes} global, which is displayed on
256 * the theme list in the administration panels.
Any of that help?
thank you so much for your reply. sadly im very new to all of this so i’m still a bit lost. im better at design than coding and my knowledge on css and html is basic if not a bit outdated and my knowledge of php is quite questionable. im learning as i go along.
i did experience issues with one plugin that was being blocked by the theme and asked the developer to sort it out. since then it seams to have worked but now the new error has arrived. i am not sure how to go about resolving the problem.
i also might have deleted all the themes at a stage as i got a bug on my system that corrupted some files so i deleted and reinstalled everything.
if you could possibly help me resolve this i would be very grateful
Start by uploading or re-uploading at least one clean theme. Use one of the ones included in the WordPress download, like Twenty-Eleven. And disable all of your plugins for the time being.