Support

Home Forums Event Espresso Premium Can't install plugin "Fatal error: Switch statements may only contain one defaul

Can't install plugin "Fatal error: Switch statements may only contain one defaul

Posted: December 18, 2015 at 4:09 am


Photo Tour Brugge

December 18, 2015 at 4:09 am

Hi,

I’m resetting my website after a bot attack, since my WP template was discontinued I’ve taken another one on and trying to get EE3 to install.

When I try to activate the plugin, I get the follwoing message

Any thoughts appreciated! 🙂


Photo Tour Brugge

December 18, 2015 at 4:10 am

The error message:

Fatal error: Switch statements may only contain one default clause in /wp-content/plugins/event-espresso/includes/shortcodes.php on line 919

  • This reply was modified 3 years, 11 months ago by  Tony. Reason: Removed server path


Tony

  • Support Staff

December 18, 2015 at 4:41 am

Hi there,

Did you download the latest version of Event Espresso from your account page?

Do you have FTP access to the server?


Photo Tour Brugge

December 18, 2015 at 4:52 am

Hi Tony, grabbed a fresh version this morning. I do have FTP access, files are in place but plugin won’t activate.


Tony

  • Support Staff

December 18, 2015 at 4:59 am

Download this file – http://take.ms/cLgLh

Within /wp-content/plugins/event-espresso/includes/ you’ll find a shortcodes.php file.

Replace the current file with the one from the download above and active EE, does it then work?


Photo Tour Brugge

December 18, 2015 at 5:06 am

Thant did it Tony, many thanks for the speedy fix!!! 🙂


Tony

  • Support Staff

December 18, 2015 at 5:18 am

You’re most welcome 🙂

We generally advise against modifying core files like the above, however the fix applied to that file will be included within the next version of EE3 so in that case it should be fine.

Please let us know if you have any further problems.

The support post ‘Can't install plugin "Fatal error: Switch statements may only contain one defaul’ 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 3 years, 11 months ago ago

Topic Tags

Notifications

This topic is: not 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.