• Hi folks,

    I have been trying to install WordPress manually on a unmanaged VPS and my hosting can offer me no assistance, I have tried this about 5 times and each time I receive this warning “Fatal error: Cannot redeclare class Walker_Page in /home/wwwmoney/public_html/blog/wp-includes/post-template.php on line 974” when I get to step 2 of the installation.

    I have deleted everything and started fresh with a new WordPress download each time but still receive the same error page, my wp-config.php and database details are correct as I can install and am able to enter the blog title, username and password etc so I am at a total loss as to what the problem may be or how to fix it. My knowledge of PHP is very limited and don’t know how to fix this. I have also went through my Web Hosting Management (WHM) and done some updates to see if this would correct the problem but to no avail.

    Here is my blog URL:- http://blog.moneymakerfundamentals.com

    If anyone could offer any assistance I would greatly appreciate it, thank you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator t-p

    (@t-p)

    Fatal error in the output generally indicates either: (1) your theme doesn’t like your version of WordPress (2) you have a plugin that doesn’t like your version of WordPress (3) or you have an incomplete install/upgrade.

    Threrfore, have you tried:

    -deactivating ALL plugins temporarily to see if this resolves the problem. If this works, re-activate them individually (one-by-one) to find the problematic plugin(s). If you can’t get into your admin dashboard, try deactivating via FTP or SFTP or whatever file management application your host provides. If applicible, also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old.
    – To rule out any theme-specific issue, try switching to the unedited default theme for a moment using the WP dashboard. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides.
    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed or some plugins stick around in cached files. So by renaming the folder, you break them and force them inactive).
    – If the above troubleshooting steps do not resolve the issue, try manually re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. Read the Manual Update directions first!

    Thread Starter MWJBMMF

    (@mwjbmmf)

    Hi Tara,
    thanks for your reply, I have tried all your suggestions above but I am still receiving the same error, I have been able to install WordPress and can login to the admin panel which is misconfigured, it shows mostly text, if I click on anything on that page it takes me to the same error.

    Just to reiterate what I have said in my original message is that every time I have reinstalled it has been a new fresh install and the only plugins and themes are the ones included in the WordPress download, do you have any other suggestions that might resolve this issue?

    Many thanks, Michael.

    Moderator t-p

    (@t-p)

    Is this a local istall?

    If not, have you contacted your hosting provider?

    Thread Starter MWJBMMF

    (@mwjbmmf)

    You mean localhost? Yes, I am on unmanaged VPS and they tell me to come here every time I ask for assistance?

    Moderator t-p

    (@t-p)

    – Check the error logs on your server for a more specific error message. If you need help locating them, ask your hosting provider to help you with that.

    Thread Starter MWJBMMF

    (@mwjbmmf)

    Yes I have checked the error log and it just has a list saying the following over and over again –
    PHP Fatal error: Cannot redeclare class Walker_Page in /home/wwwmoney/public_html/blog/wp-includes/post-template.php on line 974

    my hosting refuse to offer me assistance because I am on unmanaged VPS

    Moderator t-p

    (@t-p)

    Fatal error: Cannot redeclare class Walker_Page

    THAT does not sound like a standard WP class. If you have any theme other than the WP default theme, remove it from your server and that will force your site to use twentytwelve.

    Thread Starter MWJBMMF

    (@mwjbmmf)

    I have not installed any themes as I can not get past this error, the only themes included are Twenty Eleven and Twenty Twelve, I have disable Twenty Eleven there to see if that would force twenty Twelve but I still receive the same error. What is the Walker Page and what is it supposed to do?

    Moderator t-p

    (@t-p)

    What is the Walker Page

    As I said in my previous post, that does not sound like a standard WP class.

    what is it supposed to do?

    I have no idea

    Thread Starter MWJBMMF

    (@mwjbmmf)

    I am at a total loss too Tara, here is some of the code from the wp-includes/post-template.php on line 974 –

    * @package WordPress
    * @since 2.1.0
    * @uses Walker
    */
    class Walker_Page extends Walker {
    /**
    * @see Walker::$tree_type
    * @since 2.1.0
    * @var string
    */
    var $tree_type = ‘page’;

    WordPress are presenting this error to me, I think we are at a loss here, I will try to install again tomorrow as it is getting late here with me, can you have a look at your post-template.php on line 974 to see if it exists in your files please?

    Moderator t-p

    (@t-p)

    yes, I see it.

    But I have no idea what it is supposed to do.

    Perhaps someone who knows chimes in.

    Thread Starter MWJBMMF

    (@mwjbmmf)

    Yeah I’m totally lost, I would like to thank you very much for your time Tara, greatly appreciated, it’s late here now and I need my bed, I will check in again tomorrow to see if anyone else has any insight, thanks again, chat soon,
    Michael.

    Hi, I’ve the same issue after the WordPress administrator tried to upgrade the installation last friday (19/07/2013). I’m quite noob with WordPress and could use an extra brain 🙂

    I’ve been googling some time and there is more people with this problem, but seems that there is not a easy step-by-step solution.

    Edit: I tried what you’ve been talking in the thread, fruitless 🙁

    Hello,

    You are experiencing this issue most likely due to opCode caching.

    Check to see if you have eAccelerator or APC installed/enabled. Grep for the class in all php files within your site code.. is it only declared once? If yes, then most likely is due to caching. KnownHost LLC was able to resolve this issue for our customer. Consider a better host with better support. These issues are elementary.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Fatal error: Cannot redeclare class Walker_Page’ is closed to new replies.