Support

Home Forums Event Espresso Premium Checkout problem after update to 4.8.2

Checkout problem after update to 4.8.2

Posted: August 18, 2015 at 3:58 am


Darragh

August 18, 2015 at 3:58 am

Good morning.

Today I update to 4.8.2p in order to start using the promotions plugin.

I get the following error at the checkout after updating. I have since reverted to 4.7.10 which works but I don’t have promotions of course.

Fatal error: Cannot redeclare class EE_SPCO_Reg_Step_Payment_Options in /home/username/public_html/wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/reg_steps/payment_options/EE_SPCO_Reg_Step_Payment_Options.class.php on line 1956

Some help would be great please.

Thanks


Tony

  • Support Staff

August 18, 2015 at 4:19 am

Hi Darragh,

How did you update to 4.8.2.P, manually via FTP or via the plugin manager?


Darragh

August 18, 2015 at 4:37 am

Manually via FTP


Tony

  • Support Staff

August 18, 2015 at 5:03 am

I’m guessing you just did copy and replace over the previous version?

When updating plugins you can’t simply copy and replace the files over the old versions, if files are renamed, moved, split into multiple sections you’ll find that some files will not be replaced.

For example if we have a file called functionA-B.php, then we split that into 2 separate files functionsA.php and functionsB.php and you do copy and replace. functionA-B.php remains but the new files containing the same code (or similar) are copied over and this error happens. functionA declares classA within the file, but so does functionsA-B.

Make sense?

So, the error you are reporting above is due to a class being defined twice which is a very common issue when doing the above.

You’ll need to delete the plugin before uploading the latest version, you can do this via FTP (not recommended as it takes much longer) or through the Plugin manager within WordPress, then upload the new version in its place, or use the one-click updates.


Darragh

August 18, 2015 at 6:01 am

Hi Tony,

Yes, that sounds like the issue. Do you know when the one-click updates will show this update as it is not currently displayed.

Thanks


Tony

  • Support Staff

August 18, 2015 at 6:08 am

Its different for each site.

If you go to Event Espresso -> General Settings.

Make no changes and save the settings, it will force a check for updates.


Darragh

August 18, 2015 at 9:31 am

All sorted now.

Thanks for your help.


Tony

  • Support Staff

August 18, 2015 at 9:37 am

You’re most welcome 🙂 I’m glad your up and running.

I’ll mark this thread resolved, feel free to open up another with any further issues.

The support post ‘Checkout problem after update to 4.8.2’ 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 4 years, 3 months ago ago

Topic Tags

Tagged: 

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.