Support

Home Forums Event Espresso Premium Cannot redeclare class EE_Payment_Reminder_message_type

Cannot redeclare class EE_Payment_Reminder_message_type

Posted: September 12, 2014 at 8:03 am


Bruno Zago

September 12, 2014 at 8:03 am

Hello there !

Please, I need some help. I just did the 4.4.0 update, running in WP 4 and all the sudden when I choose to pay with invoice im getting this error:

Fatal error: Cannot redeclare class EE_Payment_Reminder_message_type in /home/MYDOMAIN/www/wp-content/plugins/event-espresso-core-reg/caffeinated/core/libraries/messages/message_type/payment_reminder/EE_Payment_Reminder_message_type.class.php on line 133

Thanks


Tony

  • Support Staff

September 12, 2014 at 8:25 am

Hi Bruno,

Can you go to Event Espresso -> Messages.

Do you see a list of Default Templates?

You should see a list such as this http://take.ms/dnvGP


Bruno Zago

September 12, 2014 at 8:47 am

Hello Tony !

Nope, it shows to me the same error line

Fatal error: Cannot redeclare class EE_Payment_Reminder_message_type in /home/MYDOMAIN/www/wp-content/plugins/event-espresso-core-reg/caffeinated/core/libraries/messages/message_type/payment_reminder/EE_Payment_Reminder_message_type.class.php on line 133

It was working before ๐Ÿ™

Anny Ideas ?


Tony

  • Support Staff

September 12, 2014 at 9:11 am

So far we’ve not been able to reproduce this, so we’ll need to narrow this down some.

Do you have multiple verions of Event Espresso 4 installed (with only one active)?

Have you added any custom code, hooking into Event Espresso to give some extra functionality?

How did you update to 4.4 through the auto updates or manually via FTP?


Bruno Zago

September 12, 2014 at 9:42 am

Sorry not being more specific.

There is only one EE 4 installed, and no custom code, only some modified templates like content-post to minor customization. This files are in my theme folder, and even when no present the problem persist.

I have updated it manually, via FTP, overwritten the old content with the new – I did that because was not sure about losing all my configurations and events already setup.

Any ideas ? I will explore some more too, but i’m not an expert.
Hope you guys can help me. Thanks in advance


Tony

  • Support Staff

September 12, 2014 at 9:52 am

Hi Bruno,

The issue here is due to updating via FTP.

4.4.0 changes the structure of the the messages system files. When you update via FTP you need to delete the original plugin and then upload the new version. The reason for this is if a file declares a class in /example/test.php… and then in a new version is moved to /example/message/test.php the original file will not be replaced, so then the same class is declared in both of those files, does that make sense?

So to fix this, first create a full site backup (all Files and the Database) then, de-activate and delete EE4 and install the latest version either using the built in plugin uploader, or again via FTP (now that the other version has been removed)

You can download the latest version of the plugins/add-ons from your account page here:

https://eventespresso.com/users/artbold/

You will not lose any of your events in doing this, they are stored within the databasem however, if you have modified core files these will need to be applied (which is why it’s a good idea to do a full backup first)


Bruno Zago

September 12, 2014 at 10:16 am

As you said, now it is working. Happy times are coming. Thanks for your time


Tony

  • Support Staff

September 12, 2014 at 10:20 am

Great ๐Ÿ™‚

I would now recommend assigning your license key to your install. We can provide support for the site linked to the key and will also allow ‘one-click’ updates to working on your site. Meaning you can update the plugin in the same way you would any other.

The support post ‘Cannot redeclare class EE_Payment_Reminder_message_type’ 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.

Event Espresso