Support

Home Forums Event Espresso Premium Fatal Error Message in JSON API Test

Fatal Error Message in JSON API Test

Posted: February 25, 2014 at 11:13 pm


Meng

February 25, 2014 at 11:13 pm

Event Espresso version: 3.1.36.4.P

WordPress version: WP 3.8.1

Installed plugins:
Akismet by Automattic version 2.5.9,
Event Espresso – Calendar by Event Espresso version 2.2.2.p,
Event Espresso – Custom Template Display by Event Espresso version 1.0,
Event Espresso – Social Coupons by Seth Shoultes version 1.5.4.p,
Event Espresso – MailChimp Integration by version 1.2,
Event Espresso – Members Addon by Event Espresso version 1.9.8.p,
Event Espresso – Multi Event Registration by Seth Shoultes version 1.0.5.p,
Event Espresso – Permissions by Event Espresso version 1.5.5.p,
Event Espresso – Recurring Events by Event Espresso version 1.1.8.p,
Event Espresso – Social Media by Event Espresso version 1.1.7.p,
Event Espresso – Ticketing by Event Espresso version 2.1.p,
Event Espresso by Event Espresso version 3.1.36.4.P,
Flickr Photostream by Miro Mannino version 2.3.2,
Jetpack by WordPress.com by Automattic version 2.8,
Send From by Ben Buddle version 1.3,
WooDojo by WooThemes version 1.5.4,
WooSidebars – Sidebar Manager to WooSidebars Converter by WooThemes version 1.1.1,
WooSidebars by WooThemes version 1.3.1,
WooThemes Helper by WooThemes version 1.2.3,
Countdown Widget by Matt Say version 2.5.4,
WordPress Importer by wordpressdotorg version 0.6.1,
WP Image Size Limit by Sean Butze version 1.0.4,
WP-reCAPTCHA by Jorge Peña version 3.2

New installation? Yes (some plugins).

Registration page: http://float2nature.com/event-registration/

Message:

Hi, Team!

I have just upgraded my license from personal to business license that comes along with cool additional plugins such as JSON API that allows authorized users to use mobile apps as an onsite attendee management tool. I followed the instruction on the online documentation. After several attempts, somehow I managed to login on my iphone (Event Espresso HD app) and this message popped out:

“No Events. The operation couldn’t be completed. (Cocoa error 3840.)”

And then I made a test on my PC to make sure whether the JSON API is working properly on my website as it’s described on https://eventespresso.com/wiki/api-addon/ and this error message appeared:

“Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20 bytes) in /home/floatpro/public_html/float2nature.com/wordpress/wp-includes/shortcodes.php on line 213”

Here’s the link: http://float2nature.com/espresso-api/v1/events/public.pretty_json

Please, help!


Lorenzo Orlando Caum

  • Support Staff

February 26, 2014 at 12:03 am

Hi Meng,

Your WordPress site is having some memory issues. Could you try raising the memory that is available to PHP?

This change is made through your wp-config.php file (the middle of the file is a safe location to add one of the macros):

http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP


Lorenzo


Meng

February 26, 2014 at 12:34 am

Hi Lorenzo!

Thanks for your respond. I have already set the WP memory limit to 128 MB, it’s exactly the very limit for my server’s PHP configuration. Here’s what’s written on my system status that can be accessed via my dashboard:

Server Environment
PHP Version: 5.3.27
Server Software: Apache
WP Max Upload Size: 8 MB
Server upload_max_filesize: 8 MB
Server post_max_size: 8 MB
WP Memory Limit: 128 MB
WP Debug Mode: No
Espresso Logging: Log directory is writable.
PHP Sessions
Session save path: /tmp is writable.
Session name: PHPSESSID


Lorenzo Orlando Caum

  • Support Staff

February 26, 2014 at 2:34 am

Hi Meng, that amount of memory should definitely be fine. I wonder if one of the other plugins is using a higher amount of memory than normal.

Do you see the same issue if you temporarily deactivate all plugins and then reactivate them?


Lorenzo


Meng

February 26, 2014 at 2:44 am

Yes, I have tried to deactivate & reactivate other plugins also. I’ve read about the trick in sone other topics. It just didn’t seem to work. That’s why I decide to submit my own topic.


Dean

February 26, 2014 at 3:16 am

Hi Meng,

Setting the memory ion wp-config.php will only work if the server allows it. You could a large amount of memory in there but if the server only allows 16mb, then that’s all you will get.

As such I would refer to your server logs and to your host to find out exactly what memory allocation you have and to see if there is something causing a memory leak.


Meng

February 26, 2014 at 4:49 am

Hi Dean,

As I have mentioned earlier, I have set the WP memory to the maximum limit allowed by my server (128 MB). Here are some screenshots as shown in the server’s control panel:


Meng

February 26, 2014 at 5:13 am

Another screenshot from my server’s control panel:


Tony

  • Support Staff

February 26, 2014 at 5:27 am

Hi Meng,

You will need to host the images somehwere and post the link here, or you can email them to support@eventespresso.com with a reference to this thread within the email 🙂


Meng

February 26, 2014 at 5:34 am

Hi Tony!

I did. I used the “img” button to send the images. Here’s the links:

PHP Configuration:
https://www.dropbox.com/s/x99x3hxrpyrph3e/Float2Nature_PHPConfig.jpg

Server Status:
https://www.dropbox.com/s/6h7k4ri208w2dc1/Float2Nature_ServerStatus.jpg

WPSettings:
https://www.dropbox.com/s/i40cyzg0q4n915s/Float2Nature_WPSettings.jpg


Tony

  • Support Staff

February 26, 2014 at 6:02 am

Hi Meng,

Although the first 2 images show the memory limit for the Server/PHP as 128MB, the error message your are receiving shows a limit of 64MB (67108864 bytes).

As Dean mentioned I would contact your host regarding this issue as although you have set the Memory limit to 128M your host can (and often do) override this even though the settings within cPanel (or alternative) display the correct values you set.


Meng

February 26, 2014 at 6:26 am

Hi Tony!

I see. Thanks again for your respond. You can contact my host via this email address: info@andalan.net. Many thanks in advance. 🙂


Josh

  • Support Staff

February 26, 2014 at 6:42 am

Hi Meng,

You will need to contact your host because you are their customer. If they have any questions about how to allow more memory it’s time to find a new host.


Meng

February 26, 2014 at 8:22 pm

Hi guys!

My host has just set the WP Memory limit to 128 MB. The error message now reads:

“Fatal error: Out of memory (allocated 103284736) (tried to allocate 61 bytes) in /home/floatpro/public_html/float2nature.com/wordpress/wp-includes/shortcodes.php on line 184”


Dean

February 27, 2014 at 1:56 am

Hi Meng,

“My host has just set the WP Memory limit to 128 MB” but did they give your server access to that amount of memory?

If you host has allowed your server resource allocation to have 128mb, and it is still causing the error, then there is a problem with another plugin or the theme where the memory is “leaking” causing it to be filled up unnecessarily.

We know this is not an Event Espresso issue based on the fact we use it daily with much less memory resources (32-64mb) on a variety of servers. Plus we would be inundated with customer requests, as most shared servers have very limited memory allocation.

As such you will need to trouble shoot your site to find the offending plugin or theme that is causing this.

Try deactivating everything barring Event Espresso and using a default theme such as Twentytwelve and wee if the issue persists.


Meng

March 9, 2014 at 7:10 pm

Hi guys!

I moved my website to a new host about a week ago. By using Event Espresso Requirements Check, I can see that my previous problem with PHP memory limit now no longer exists. But when I tried to test the JSON API with the link http://float2nature.com/espresso-api/v1/events/public.pretty_json the screen just went white/blank. I’ve also tried to fetch my past events with the iPhone app (Event Espresso HD) and it said “No Events, 500-internal server error.” I’ve tried to activate and deactivate my plugins, change my current theme to the default theme. It didn’t help a bit. This is so frustrating!


Lorenzo Orlando Caum

  • Support Staff

March 9, 2014 at 8:02 pm

Hi Meng,

Server errors are usually recorded in a site error_log. For some hosts, this can be found in the WordPress root (same location as the wp-config.php file). It may also be available through a hosting panel/cpanel.

Could you check the site error_log to see if there is specific information available on the internal server error?


Lorenzo


Meng

March 9, 2014 at 8:19 pm

Hi Lorenzo,

I see this at the bottom line in my site’s error_log: “[10-Mar-2014 09:00:38 Asia/Jakarta] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /home/redacted/wordpress/wp-includes/shortcodes.php on line 214”. This is so confusing because the event espresso requirements check says “You have successfully allocated 136.75MB of memory”.


Lorenzo Orlando Caum

  • Support Staff

March 9, 2014 at 8:28 pm

Hello Meng,

Could you please create a temporary WordPress admin login and a temporary SFTP or FTP login so I can take a closer look at this issue?

Please share that temporary login through the secure link below:

https://eventespresso.com/send-login-details/

To prevent delays in troubleshooting, be sure to double check your information on the form before submitting. The submit button for the form appears after you have answered “Yes” to the last question.

Thank you.


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

March 10, 2014 at 9:16 am

Hi there Meng,

I wanted to let you know that I’ve received your temporary login. Let’s continue working privately there to resolve this issue.

Cheers


Lorenzo

The support post ‘Fatal Error Message in JSON API Test’ 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