Support

Home Forums Event Espresso Premium Fatal Error: require_once(): Cannot redeclare class venues_admin_pa

Fatal Error: require_once(): Cannot redeclare class venues_admin_pa

Posted: April 25, 2016 at 12:56 am


OEPB

April 25, 2016 at 12:56 am

When in Dashboard,and click on Events link (…../wp-admin/admin.php?page=espresso_events) I get the following error:

Fatal error: require_once(): Cannot redeclare class venues_admin_page in /home/content/p3pnexwpnas06_data02/39/3254739/html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php on line 390

Everything else is working e.g. Can see registrations, venues, etc. Just can’t click on Events. Not sure when it stopped working as I haven’t clicked on that link for a little while (used every other link, just not events).

Help!
Cheers,
Peter

WordPress Version:
4.5
PHP Version:
5.4.42
MySQL Version:
5.5.43
Event Espresso Version:
4.8.40.p
WordPress Address (URL):
http://oepb.org.au
Site address (URL):
http://oepb.org.au


Tony

  • Support Staff

April 25, 2016 at 2:41 am

Hi Peter,

Is there any more to that error or is that all of it? It will usually show were the class was initially declared.

When you last updated Event Espresso did you do so through the Plugin manager or via FTP and replacing the existing files?

Have you customized EE at all?


OEPB

April 25, 2016 at 2:58 am

Tony, that’s all that it gives. I only upgrade via the Plugin Manager.
Customising is not via the plugin…and it is just superficial CSS look and feel…none of that impacts the backend (just hides certain tickets from displaying).

I just attempted to purchase a ticket online and got this error message:
Fatal error: Cannot redeclare class EE_SPCO_Reg_Step_Payment_Options in /home/content/p3pnexwpnas06_data02/39/3254739/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 1984


Lorenzo Orlando Caum

  • Support Staff

April 25, 2016 at 5:11 am

Hi Peter,

I did not recognize that error so I ran some searches and the most support posts mentioned this could happen if you manually upgraded by overwriting some old files and folders.

Could you try a re-install through your WP dashboard? Begin by backing up your WordPress:

https://eventespresso.com/wiki/how-to-back-up-your-site/

Next, download the latest version of your Event Espresso software from your account:

https://eventespresso.com/users/oepb#ee4-downloads

Now login to your WordPress admin and go to Plugins. Locate Event Espresso in the list of plugins and deactivate it and remove it.

Then from the Plugins screen in the WordPress admin click on Add New –> Upload. Then browse to the zip file that you downloaded from your account. Select it and begin the upload process.

You can activate Event Espresso after it has finished. Do let us know if this clears the registration issue.


Lorenzo


OEPB

April 25, 2016 at 6:26 am

<h1>Lorenzo! You are a GEM, my friend.

FIXED!</h1>


Tony

  • Support Staff

April 25, 2016 at 7:12 am

I’m glad that worked.

It would appear however Event Espresso was updated previously id did not update correctly.

You should have no further problems no you have updated manually.

The support post ‘Fatal Error: require_once(): Cannot redeclare class venues_admin_pa’ 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