Support

Home Forums Event Espresso Premium Upgrade error: Fatal error: Uncaught Error: Class 'EE_Register_CPTs' not found

Upgrade error: Fatal error: Uncaught Error: Class 'EE_Register_CPTs' not found

Posted: November 26, 2017 at 3:21 pm


Jonathan Haglund

November 26, 2017 at 3:21 pm

I upgraded to the latest version today and now get the following error on all front end pages, not just event-espresso related ones.

Fatal error: Uncaught Error: Class ‘EE_Register_CPTs’ not found in /home/wp_vmuxsn/swacypaa.org/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php:86 Stack trace: #0 /home/wp_vmuxsn/swacypaa.org/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php(73): EE_CPT_Strategy->__construct() #1 /home/wp_vmuxsn/swacypaa.org/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(1107): EE_CPT_Strategy::instance() #2 /home/wp_vmuxsn/swacypaa.org/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(828): EE_Registry->_create_object(‘EE_CPT_Strategy’, Array, ‘core’, false) #3 /home/wp_vmuxsn/swacypaa.org/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(346): EE_Registry->_load(Array, ‘EE_’, ‘EE_CPT_Strategy’, ‘core’, Array, false, true, false) #4 /home/wp_vmuxsn/swacypaa.org/wp-content/plugins/event-espresso-core-reg/core/EE_Request_Handler.core.php(220): EE_Registry->load_core(‘CPT_Strategy’) #5 /home/wp_vmuxsn/swacypaa.org/wp-content in /home/wp_vmuxsn/swacypaa.org/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 86

I have re-uploaded the “caffeinated”, “core”, and “modules” directories from a downloaded copy of event espresso. Those are the only directories I could find that referenced this class. I’m at a loss.


Tony

  • Support Staff

November 27, 2017 at 3:56 am

Hi there,

Did you originally update using FTP?

The error posted usually means there are files missing from Event Espresso, we recommend using the Plugin uploader to update.

Start by either renaming the event-espresso-core-reg to something else (anything will do, event-espresso-core-reg-temp) or removing it completely, then go to Dashboard -> Plugins -> Add new -> Upload plugin.

Download the latest version of EE4 from your account page.

On the upload plugin page, select the ZIP file you just downloaded from your account, upload that plugin, and then activate.

Do you get the same error?


Jonathan Haglund

November 27, 2017 at 10:42 pm

I did the update with the built-in mechanism, no FTP. Will replacing the whole directory affect my database (existing and past events and registrations)?


Tony

  • Support Staff

November 28, 2017 at 1:57 am

No, none of your events, settings etc will be affected.

When you delete a plugin, WordPress incorrectly states that data will be lost but it’s up to the plugin if that actually happens. Event Espresso does not remove any data when de-activating or deleting the plugin.

If unsure you can create a backup of the database before doing the above, heres a plugin I use for DB backups:

https://en-gb.wordpress.org/plugins/backupwordpress/


Jonathan Haglund

November 30, 2017 at 11:23 pm

I downloaded 4.9.53.p, deleted the plugin folder, and uploaded the new version. The error is the same.


Tony

  • Support Staff

December 1, 2017 at 1:45 am

Ok, in that case you’ll need to confirm if it’s a theme or plugin conflict.

You can do that by running through the troubleshooting steps here:

https://eventespresso.com/wiki/troubleshooting-checklist/

The support post ‘Upgrade error: Fatal error: Uncaught Error: Class 'EE_Register_CPTs' not found’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 1 year, 8 months ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!