Home Forums Event Espresso Premium Getting Internal Server Error 500 when querying promotions

Getting Internal Server Error 500 when querying promotions

Posted: August 7, 2018 at 9:38 pm


August 7, 2018 at 9:38 pm

When I try to get a list of promotions like this:


I returns an internal 500 error from the server. Is that the correct end point or is there something wrong on the server?


  • Support Staff

August 8, 2018 at 4:48 am

Hi there,

Error 500 would normally mean a fatal error is being thrown.

Do you have access to the servers error logs? If so do you see any errors from EE there?


August 8, 2018 at 1:57 pm

Here is what’s in the log:

[08-Aug-2018 20:00:18 UTC] PHP Fatal error: Uncaught Error: Call to a member function getTimezone() on null in /home/gncares2017/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/rest_api/controllers/model/Read.php:716
Stack trace:
#0 /home/gncares2017/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/rest_api/controllers/model/Read.php(602): EventEspresso\core\libraries\rest_api\controllers\model\Read->createBareEntityFromWpdbResults(Object(EEM_Promotion), Array)
#1 /home/gncares2017/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/rest_api/controllers/model/Read.php(378): EventEspresso\core\libraries\rest_api\controllers\model\Read->createEntityFromWpdbResult(Object(EEM_Promotion), Array, Object(WP_REST_Request))
#2 /home/gncares2017/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/rest_api/controllers/model/Read.php(91): EventEspresso\core\libraries\rest_api\controllers\model\Read->getEntitiesFromModel(Object(EEM_Promotion), Object(WP_REST_Request))
#3 /home/gncares201 in /home/gncares2017/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/rest_api/controllers/model/Read.php on line 716


  • Support Staff

August 9, 2018 at 3:20 am

Hmm, ok, I’ve been able to reproduce this and create a ticket for our developers to investigate further.

I’ll update this thread with any feedback given.


August 9, 2018 at 4:50 pm


The support post ‘Getting Internal Server Error 500 when querying promotions’ 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  gncares 7 months, 2 weeks ago ago

Topic Tags


This topic is:
Do NOT follow this link or you will be banned from the site!