Down Time – Cannot Redeclare StickyClass Error

Not sure what happened there, went to check my stats tonight and my entire site was down. Logged into StatCounter and AdSense and both are reporting very small amounts of traffic for the last two days and a slightly reduced amount for 3 days leading up to that. None of that makes sense, the site should have been up or down, but yet it seems to have worked intermittently. In any case, this is the error I was getting for both the main site and even the admin login:

cannot redeclare sticky_class() (previously declared in /home/user/wordpress/wp-includes/post-template.php

The file in question was wp-includes\deprecated.php, which is not a file I would ever edit in my WordPress installation. I also had not edited the post-template.php file at any point. The only thing I had done recently was some house cleaning on other parts of the FTP and I did update my plugins, themes and WordPress installation about 2 weeks ago. Still, it had worked afterwards, I know I tested it. And based on when my traffic dropped this happened on it’s own about a week after I did all that.

So I am at a loss as to how I ended up in this situation, but here’s how I managed to get back online:

  1. Got the latest WordPress zip file
  2. Extracted the files
  3. Deleted the old wp-includes and wp-admin directories on my server
  4. Uploaded the new wp-includes and wp-admin directories
  5. Uploaded the new wp-content folder to my existing wp-content folder, overwriting existing files
  6. Uploaded all files from the root directory of the WordPress install into my root directory on the site

Of course, I did not know these steps off hand and had to consult with the WordPress Codex. You’ll notice I did not deactivate my plug-ins, I honestly wasn’t sure how I was supposed to complete that step without having access to my admin panel. But in the end the process worked and my site is now back online.


Tags: , ,

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Leave a Reply