Support

Home Forums Event Espresso Premium Thank You page error

Thank You page error

Posted: September 10, 2014 at 2:26 am


Rian Botha

September 10, 2014 at 2:26 am

I get this error on the Thank You page when error reporting is switched on and if it is a “non-free” ticket which is taxable (I do not get the error for free tickets):

Fatal error: Call to a member function get() on a non-object in C:\xampp\htdocs\xxxxxxxx\wp-content\plugins\event-espresso\core\libraries\messages\EE_message_type.lib.php on line 599

I am using EE 4.3.1.p on WordPress 3.9.2 (and also 4.0) without the Site License Key entered, because the site is still in the development stage.

If error reporting is switched off, I just get a white screen for the thank you page, but it has the correct source code when you view it.

When you refresh the thank you page, you see the proper content!

Emails are not sent either.

Any help will be much appreciated!!!


Tony

  • Support Staff

September 10, 2014 at 2:37 am

Hi Rian,

Have you modified Event Espresso core at all? or hooked into any of the Messaging functions?

If you go to Event Espresso -> Messages. Do you see a list of active messages?


Rian Botha

September 10, 2014 at 2:47 am

Hi Tony

No, I have not modified EE core or any of the message functions.

I see the following active messages:
Registration Approved
Registration Pending Payment
Payment Received
Payment Reminder
Refund Issued
Payment Declined
Not Approved Registration

There are no Default or Custom Message Templates.


Tony

  • Support Staff

September 10, 2014 at 3:00 am

There are no Default or Custom Message Templates.

hmm, there should always be Default Templates. So you don’t see a list like this? – http://take.ms/nhvTc

If you do not, go to Messages -> Settings. Switch off the messages system, then switch it back on – http://take.ms/YaBQu

Do you then see a list of Default Message Templates?

If so Re-test your registration and see if the Thank you page now loads (it should)


Rian Botha

September 10, 2014 at 3:19 am

Hi Tony

Thank you, that did the trick (even with error reporting switched on)!!! I guess the reason for the error was that it looked for a message template the first time the Thank You page is accessed, but could not find any template.

You are the first person that has given me constructive help for the topic I raised on any forum anywhere on the internet in my 12 years of web development!!!

Regards from a sunny Cape Town in South Africa
Rian


Tony

  • Support Staff

September 10, 2014 at 3:31 am

I guess the reason for the error was that it looked for a message template the first time the Thank You page is accessed, but could not find any template.

That’s pretty much it yes.

The messages system hooks into the thank you page to determine which message type should be sent (and which message ‘Context‘) depending on a variety of factors. The Default Templates are used unless you have created your own custom ones (which is why they should always be there) so when it tried to send one of those and it wasn’t there it threw a fatal error.

You are the first person that has given me constructive help for the topic I raised on any forum anywhere on the internet in my 12 years of web development!!!

Thank you for the feedback, much appreciated 🙂

Just let us know if you have any further issues/questions or feedback for improvements.

The support post ‘Thank You page error’ 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