Support

Home Forums Event Espresso Premium Can't inherit abstract function EEI_Event::name

Can't inherit abstract function EEI_Event::name

Posted: November 1, 2016 at 7:39 am

Viewing 23 reply threads


jokadesign

November 1, 2016 at 7:39 am

Hi, I have just updated my WP to 4.6.1. I am now getting the following error when visiting any EE pages: Fatal error: Can’t inherit abstract function EEI_Event::name() (previously declared abstract in EEI_Line_Item_Object) in /var/www/vhosts/sassystirrers.com/httpdocs/wordpress/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Event.class.php on line 12

I have tried deactivating all other plugins without finding any clashes. However, when I deactivate EE the error disappears, and the event details are displayed. Can you advise what I need to do as the site is currently unable to display events or take bookings. So this is urgent. Many thanks.

website: http://sassystirrers.com/
Theme: Carry Hill
Affected page e.g.:http://sassystirrers.com/5-12-year-olds/


Josh

  • Support Staff

November 1, 2016 at 7:53 am

It sounds like you’ll need to contact your host and ask them to update the version of PHP that’s on your site. This would be the case if your server has PHP 5.3.8 or lower.

https://bugs.php.net/bug.php?id=43200


jokadesign

November 1, 2016 at 10:08 am

Thanks Josh, I think that’s sorted it.


jokadesign

November 4, 2016 at 9:07 am

Hi Josh

I thought things were ok but I have just received the following from my client:

Hello Joe

There is still something very wrong with Espresso (no change there!).

I have been trying to put a booking on for 3rd December event but it keeps telling me;

Nothing in your Event Queue

You need to select at least one event before you can proceed with the registration process.

It did this when I had entered all the information in for 9 people on a booking under 3rd December, arrrg.

Also we have had more instances of Espresso saying people haven’t paid via paypal when they have.


Josh

  • Support Staff

November 4, 2016 at 9:31 am

Hey Joe you need to disable the W3 Total Cache plugin’s object cache feature. That’s what’s causing that Nothing in your event queue error.


jokadesign

November 4, 2016 at 10:47 am

Thanks!


jokadesign

November 5, 2016 at 12:12 pm

Hi Josh

Another issue seems to have come up…

Hello Joe

Pleased to see the website is up and working again.

I have another problem which I wondered if you could run past Espresso?

A lot of customers contact us and I have to enter their bookings into the system without completing the transaction ie just to book them in and they pay by bank transfer.

When I then go back into register someone else the previous booking is still in the events basket.  If I delete it then it deletes the previous booking in the basket from the system.

Help please


Josh

  • Support Staff

November 7, 2016 at 7:00 am

Hi Joe,

They need to click on the button that says “Finalize Registration” before moving on to register someone else. If they fail to finalize the first registration, the system will not create a new registration.


jokadesign

November 8, 2016 at 1:12 pm

Thanks Josh for your advice, which I passed on. Here’s the response from the client…
I go through to the payment screen (after finalise) each time and then when I go to put the next person in, the old booking is still in the basket.

If I delete the old booking, it also deletes it from espresso even though I’ve approved it.

If I reboot the machine it clears it but I’m doing loads of manual inputting at the moment so it’s a real pain!


Josh

  • Support Staff

November 8, 2016 at 1:32 pm

Are they manually inputting the registrations on the front end or from the back end of the website. Along with that, are they hitting the back button to add more registrations? It’s not clear how they’re getting from here:

I go through to the payment screen (after finalise) each time

to here:

and then when I go to put the next person in, the old booking is still in the basket.

That “when I got to put the next person in” part is crucial. Because if they’re hitting a back button to go to put the next person in, that will cause the prior registration to be overwritten.


jokadesign

November 8, 2016 at 4:18 pm

Josh
This – response to your questions…

I’m going from the front end as a customer would.

To do the next registration I start again ie I go into all events/5-12 year olds then click on the class I want to book.   I don’t do the back button as the website can’t handle it.


jokadesign

November 8, 2016 at 4:32 pm

Nb it is not a question of overwriting, it is a question of the previous transaction (booking) still being in the basket.


Tony

  • Support Staff

November 9, 2016 at 6:34 am

Nb it is not a question of overwriting, it is a question of the previous transaction (booking) still being in the basket.

The issue is with overwriting the registration as the previous registrations session is still ‘open’ meaning the ‘new’ registration as actually just changing the details of the ‘first’ registration (which is actually all the same registration).

Your site is using the EE4 Multi Event Registration add-on and PayPal Standard as the payment method which means when they click to ‘Finalize’ the registration and are directed to PayPal the session does not close until the user returns.

So the admin is registering onto the event and selecting PayPal, then navigating to the event (not using the back button) but the session for the first registration is still open.

In short its happening because the admin is using a payment method that’s expecting a response and leaves the session open, this is expected behavior for regular users but not the admin as your then attempting to create another registration whilst the previous one is still open.

So first, do you need the EE4 Multi Event Registration add-on? (The ‘event cart’ features)

Disabling that add-on will fix this, but only because the session will be automatically cleared before any new ticket selection submit to checkout.

Another option is to add the admin registrations through the admin where EE handles the session in a way that is expected for the admin.

You can do this by going to Event Espresso -> Events -> {Hover over the event name} -> Registrations.

At the top you will see an ‘Add new registration’ button, use that to add registrations to the event.


Tony

  • Support Staff

November 9, 2016 at 7:34 am

Actually there is another option, you could add an offline payment that only the admin can use when adding the registrations on the front end. I’m assuming you don’t have Invoice as an option as you don’t want your users selecting that payment method?

Offline payment methods finalize the registration and close the session so if the admin selects that they can add another registration straight away.

He is an example of how you can add an ‘Invoice’ payment method as an option only for admins:

https://gist.github.com/Pebblo/f952f806aec55df5f8a1

That’s wrapped as a plugin or you can add the function a your themes functions.php file if preferred.

It will do something like this – http://take.ms/oJ2Pp


jokadesign

November 15, 2016 at 4:59 am

Thanks Josh. Unfortunately we are still getting errors

Hello Joe

This is the error message I get when I try to register via admin.

Thanks

Kirsty


jokadesign

November 15, 2016 at 5:09 am

Thanks Josh. Unfortunately we are still getting errors

Hello Joe

This is the error message I get when I try to register via admin.

Thanks

Kirsty

https://drive.google.com/file/d/0B65pXpQ-sP8NaUZDLWpJd1g5UW8/view?usp=drivesdk


Tony

  • Support Staff

November 15, 2016 at 6:19 am

That’s unrelated to the above but you need to update to the latest version of EE to fix.

You are currently using 4.9.18, the above was fixed in version 4.9.21


Josh

  • Support Staff

November 15, 2016 at 6:20 am

Hi Joe,

It will help if you can update to the current version of EE4.


jokadesign

November 18, 2016 at 8:31 am

Hi Josh. I have updated to the current version as you suggested. Now, there is no list on the events registration page. The shortcode is still there, but not working(?). See http://sassystirrers.com/event-registration/
Can you advise urgently please? Thanks.


Josh

  • Support Staff

November 18, 2016 at 8:50 am

Can you double-check your shortcodes? It’s working over on this other page:

http://sassystirrers.com/all-events/


jokadesign

November 18, 2016 at 8:59 am

Thanks Josh. I have done that, as you suggested and it now works. Thank you!
However, I thought the correct shortcode for the event-registration page was supposed to be [ESPRESSO_CHECKOUT]. Has this changed, or was I imagining it?


Josh

  • Support Staff

November 18, 2016 at 9:08 am

The page where you actually register for an event should indeed have the [ESPRESSO_CHECKOUT] short code on it. You may have imagined that there should be an event list on that page, but that’s not correct. The page with the [ESPRESSO_CHECKOUT] short code should never show a list of events. So you probably need to change that page back to allow registrations to work.


jokadesign

November 18, 2016 at 9:18 am

Ah, so the page /event-registration is purely functional and should not be used for anything else. Is that correct?


Josh

  • Support Staff

November 18, 2016 at 11:00 am

That’s correct.

Viewing 23 reply threads

The support post ‘Can't inherit abstract function EEI_Event::name’ 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