Support

Home Forums Event Espresso Premium HTTP ERROR 500 (2)

HTTP ERROR 500 (2)

Posted: January 6, 2017 at 1:38 am

Viewing 7 reply threads


SubZeroie

January 6, 2017 at 1:38 am

Morning,

I have just started having an issue with HTTP Error 500
If I select an event – add tickets and then proceed to registration I get the HTTP Error 500 message

This is happening at
https://www.greenhillsarchery.com/courses/book-a-saturday-beginners-course/
and
https://www.greenhillsarchery.com/courses/book-wednesday-beginners-course/
regardless of what course is selected so this is not event specific.

Can anyone offer any advice on what may have happened – it was working fine.

I have read other comments where it was another plugin causing issues, but i have turned them all off to test, it appears fine at first, but then the next day its back again.

Can you please shed any light on this for me as i have hit a brick wall my self.

Thanks
Rob Sweetman


Tony

  • Support Staff

January 6, 2017 at 2:13 am

Hi Rob,

Error 500 usually means a fatal error is being thrown on the request.

Do you have access to the servers error logs? (usually an error.log file or similar within the root directory of the site) If so take a look within that to see if you can see any errors from Event Espresso.

Another option is to enable WP_DEBUG on the site so that the full error message is display rather than just error 500, you can do that by setting define('WP_DEBUG', TRUE); in your wp-config.php file then repeating the above steps.

Or, use this snippet: https://gist.github.com/Pebblo/8787f5530ea777c84aaf62f075e55b32

That tells WP to not show the errors, but log them within a debug.log file on the server, once we have the error being thrown we can investigate this further.


SubZeroie

January 6, 2017 at 2:40 am

Hi Tony,

I have looked into the error logs on the server. I cant see any errors showing for event espresso, but i did find the below:

[06-Jan-2017 09:29:31 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4722537 bytes) in /home/greenhil/public_html/wp-includes/wp-db.php on line 1173

Only a few days ago i have to update the version on PHP on my server from 5.4 to 5.6 because Stripe would not work.

Could this be causing my problems?

Thanks, Rob


Tony

  • Support Staff

January 6, 2017 at 2:49 am

Updating PHP should not cause the above.

Your site is running out of memory, it currently has 128MB available but apparently needs more. Try adding:

define( 'WP_MEMORY_LIMIT', '256M' );

To your wp-config.php file, it’s a little high but depends on your plugins and traffic so you may well just need a little more memory.


SubZeroie

January 6, 2017 at 3:12 am

Thanks Tony,

I have added that to the wp_config.php file now.

I have also noticed the below in the error log as well for today:

[06-Jan-2017 10:04:03 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data’ to ‘-1’ in php.ini and use the php://input stream instead. in Unknown on line 0
[06-Jan-2017 10:06:29 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2013709 bytes) in /home/greenhil/public_html/wp-includes/functions.php on line 435

Any idea what could be causing this?

Thanks, Rob


Tony

  • Support Staff

January 6, 2017 at 3:19 am

[06-Jan-2017 10:04:03 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data’ to ‘-1’ in php.ini and use the php://input stream instead. in Unknown on line 0

Hmm I did a quick search on this and it seems to be an issue with PHP 5.6, for example take a look here:

https://github.com/piwik/piwik/issues/6465

The ‘fix’ is to find always_populate_raw_post_data within your servers php.ini file and set it to -1.

[06-Jan-2017 10:06:29 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2013709 bytes) in /home/greenhil/public_html/wp-includes/functions.php on line 435

Same issue with memory, you’ll find that if your site is running out of memory that error will pop up in all kinds of places. If it consistently happens on a specific function then it could be that function has an issue (or again another symptom as the function may just require more memory than you have available, it depends).


SubZeroie

January 6, 2017 at 3:46 am

Thank you for all your help Tony.

I have emailed my service provider as i have no access to the php.ini file with my access.

I have submitted a ticket with them to try resolve and correct this issue as per your last comments.

Thank you again for your help Tony, i very much appreciate the quick responses.


Tony

  • Support Staff

January 6, 2017 at 3:59 am

My pleasure 🙂

Something else that may help is to update to PHP7, you may (likely) notice a big difference in speed if you update but again it depends if all of your plugins support it.

Viewing 7 reply threads

The support post ‘HTTP ERROR 500 (2)’ 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