WP working fine, then sudden error with classes.php?
-
Hi,
Just a strange kind of problem I’ve got here. My site (PostPixel.com.au) was working perfectly yesterday, and then this morning when I try to access any part of WP on it, I got the following error:
Warning: Invalid argument supplied for foreach() in /home/mugget/public_html/wp-includes/classes.php on line 1535
I tried to simply replace that file with one from my local hard drive, thinking that if anything had gone awry with the copy on the server, the one on my HD would be clean. But then I got a “Disk quota exceeded” warning, and it said that the file couldn’t be copied, even though the file size was the same on the server as the original. I tried my site again and got this message:
Parse error: parse error, unexpected $ in /home/mugget/public_html/wp-includes/classes.php on line 1637
Also when I tried to login to wp-admin (before I deleted the old classes.php and moved the new one there), I didn’t get that same error, but after I’d logged in, I was redirected to a page on a completely different site?!!?
Also, after the error with classes.php I recieved a couple of “Please Moderate” emails. But these were also strange… the first one had the subject prefix “[] Please moderate:”, when they usually say “[Post Pixel] Please moderate:”.
And in both of those emails the URL’s were cut short, IE they only had “/wp-admin/moderation.php” instead of the full URL: “https://www.postpixel.com.au/wp-admin/moderation.php”???
This seems really weird to me, is it possible I’ve been hacked or something? Anyway, I’m backing up my databases now… And thanks for any help in getting this mess sorted out.
(Sorry for the long post.)
- The topic ‘WP working fine, then sudden error with classes.php?’ is closed to new replies.