• Resolved dangerousmezzo

    (@dangerousmezzo)


    One of my users just alerted me to the fact that my website now displays this error message:

    Fatal error: Cannot redeclare get_page() (previously declared in /home/content/o/p/e/operaworkshop/html/index.php:10) in /home/content/o/p/e/operaworkshop/html/wp-includes/post.php on line 2874

    The site was working just fine a few days ago and I don’t think I’ve added anything or changed anything on my end. I run a lot of WP sites via godaddy, and generally I can figure out most of the problems I run into, but this one has me stumped.

    I’ve searched for relevant threads here and elsewhere, and can’t find anything addressing this error on post.php.

    If anyone has a second to spare to help me, I’d be very grateful 🙂

    Nina

Viewing 4 replies - 1 through 4 (of 4 total)
  • The error message claims that you have 2 definitions of get_page(): the main one (in wp-includes/post.php, line 2874) and another one in the top level index.php (line 10). It’s the one in the index.php file that is highly suspicious. Not counting comments, that file only has 2 lines of code in it: a define() and a require().

    If you didn’t change anything, then someone else did. Maybe GoDaddy did something (although I doubt it) or someone may have hacked you.

    Thread Starter dangerousmezzo

    (@dangerousmezzo)

    Thanks so much for the reply. Should I delete the suspicious definition of get_page() from index.php?

    Thread Starter dangerousmezzo

    (@dangerousmezzo)

    Ah. I’ve just looked at my index.php and it’s FULL of spam links. I think I’ve been hacked. I’m going to go find a clean copy of index.php and replace the file.

    Thread Starter dangerousmezzo

    (@dangerousmezzo)

    Thanks again for your reply, hedronist — I replaced index.php and all is well 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error: cannot redeclare get_page() in /wp-includes/post.php’ is closed to new replies.