Support

Home Forums Event Espresso Premium Fatal Error on Transaction Detail Page

Fatal Error on Transaction Detail Page

Posted: December 1, 2016 at 5:37 pm

Viewing 8 reply threads


Meet Me In The Cloud

December 1, 2016 at 5:37 pm

We get this error on some of the transaction detail pages:

Fatal error: Call to a member function name() on boolean in /public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Ticket.class.php on line 1090

That line is this:

if ( ! $datetime instanceof \EE_Datetime ) {
throw new UnexpectedEntityException(
$datetime,
‘EE_Datetime’,
sprintf(
__( “The ticket (%s) is not associated with any valid datetimes.”, “event_espresso” ),
$datetime->name()
)
);
}

And the “Apply Refund” and “Apply Payment” buttons don’t work and don’t throw any errors. Any help!?


Tony

  • Support Staff

December 2, 2016 at 7:19 am

Hi there,

Was that transaction created by manually registering onto the event?

If so was that through the front-end or admin?

And the “Apply Refund” and “Apply Payment” buttons don’t work and don’t throw any errors

If there is a fatal error on the page those buttons will not work, so its likely related to the above.


Meet Me In The Cloud

December 2, 2016 at 1:13 pm

The transaction was created by walking through the entire front-end process as a normal website user. The specific example we’re using to troubleshoot has a 90% off coupon applied to it, if that means anything…


Tony

  • Support Staff

December 2, 2016 at 1:24 pm

Does the event and the datetime within that event that the ticket was for still exist on the site or has it been deleted?

Which payment method did you use?


Meet Me In The Cloud

December 2, 2016 at 3:22 pm

The event being registered for still exists. The datetime has been deleted! Payment method is Paypal Pro.


Tony

  • Support Staff

December 2, 2016 at 3:53 pm

The datetime has been deleted!

That’s were the error is coming from, there is no datetime for the transaction to pull in as it has been deleted. You should not be able to deleted those datetimes if any registrations are assigned to them.

I’ve reproduced this locally and created a ticket for our developers to investigate, we will post any updates in this thread.


Meet Me In The Cloud

December 2, 2016 at 5:23 pm

Thank you!


Tony

  • Support Staff

December 2, 2016 at 5:51 pm

You’re most welcome, however..

Just to be clear, even with the above fixed it will not actually ‘fix’ that registration as it has now been made on an datetime that no longer exists and should be deleted.

EE should not allow you to delete Datetimes with registrations assigned to them, currently it will prevent you from removing registrations with ‘Approved’ registration but it should also prevent you if the registrations are pending payment.

Currently if you do not delete datetimes within the event you should not have any further problems (in the future it is likely EE will just prevent you from deleting the datetimes with regs)


Josh

  • Support Staff

December 13, 2016 at 12:11 pm

Update: version 4.9.23.p is released this version will prevent deleting date times that have registrations.

Viewing 8 reply threads

The support post ‘Fatal Error on Transaction Detail Page’ 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