Make WordPress Core

Opened 7 years ago

Closed 5 years ago

#39243 closed defect (bug) (invalid)

fatal error by upgrading to WordPress 4.7 from 4.6

Reported by: websitenum1's profile websitenum1 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: Taxonomy Keywords: close
Focuses: Cc:


fatal error by upgrading to WordPress 4.7
thanks in advance

Fatal error: Uncaught Error: Class 'WP_Taxonomy' not found in /home/_/public_html/wp-includes/taxonomy.php:384 Stack trace: #0 /home/_/public_html/wp-includes/taxonomy.php(72): register_taxonomy('category', 'post', Array) #1 /home/_/public_html/wp-settings.php(264): create_initial_taxonomies() #2 /home/_/public_html/wp-config.php(101): require_once('/home/_...') #3 /home/_/public_html/wp-load.php(39): require_once('/home/_...') #4 /home/_/public_html/wp-blog-header.php(13): require_once('/home/_...') #5 /home/_/public_html/index.php(17): require('/home/u56211230...') #6 {main} thrown in /home/_/public_html/wp-includes/taxonomy.php on line 384

Change History (5)

#1 @programmin
7 years ago

This is preceded by a 'session.php is <strong>deprecated</strong> since version 4.7.0 with no alternative available.'

Then it gets that fatal WP_Taxonomy not found.

If you search for this you'll see that a bunch of random websites are getting these two error messages in that order:

#2 @SergeyBiryukov
7 years ago

  • Component changed from General to Taxonomy

#3 @dd32
7 years ago

  • Keywords close added

This appears to be caused by either
a) A bad update - wp-includes/taxonomy.php / wp-includes/version.php updated but wp-settings.php didn't
b) A bad plugin - which includes wp-includes/session.php & wp-includes/taxonomy.php but not their dependencies before WordPress is fully loaded.

It's much more likely that these have been caused by failed updates IMHO, rather than a plugin, seems like an odd thing for a plugin to do - I can't rule it out though.
This would be a very common failure in the event that wp-settings.php didn't get updated, or the wp-includes/class-wp-taxonomy.php file didn't get created, as it's the first real piece of code which runs which has dependancies upon new files.

Unfortunately update issues are going to happen occasionally, and I don't see anything we can do here.

@websitenum1 Were you able to do any debugging of your site to determine the cause of your problems? I note that it's currently running WordPress 4.7.1

#4 @programmin
7 years ago

Actually I can confirm that renaming each plugin in wp-content/plugins (disabling them), and re-installing Wordpress by overwriting all but wp-content, doesn't seem to immediately fix it. Site seems fine now though.

Last edited 7 years ago by programmin (previous) (diff)

#5 @boonebgorges
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

It appears that this was due to an incomplete update rather than a bug in WordPress. As such, I think we can close.

Note: See TracTickets for help on using tickets.