Support

Home Forums Event Espresso Premium Event Espresso HD APP: 'Server response is zero-length; no data'

Event Espresso HD APP: 'Server response is zero-length; no data'

Posted: November 29, 2013 at 7:26 am


Brian Gravel

November 29, 2013 at 7:26 am

Hi,

I need to get the Event Espresso HD app to work for my client, but each time I try to log in I get the error: ‘Sorry, can’t log in. Server response is zero-length; no data.’

I’ve seen forum responses on this issue that mention using the WP HTTPS plugin in place of a different security plugin, but I am not using any security plugin so I do not think that applies to me. I do have an SSL certificate on the site.

I’ve also tried the testing recommended in the documentation to see if the api is working correctly, and while the given link (http://mariancourt.edu/testdrive/espresso-api/v1/events/public.pretty_json) returns a 404, I’ve found http://www.mariancourt.edu/espresso-api/v1/events/public.json works (although doesn’t format correctly).

Any help you can offer on this would be greatly appreciated. Thank you!

WordPress version: 3.7.1
Event Espresso version: 3.1.35.2.P
Event Espresso JSON API version: 2.0.4.p


Tony

  • Support Staff

November 29, 2013 at 8:23 am

Hi Brian,

The ‘testdrive/’ within the above URL is actually a part of eventespresso’s ‘testdrive’ site to demo functionality.

The URL you need to use is

http://www.mariancourt.edu/espresso-api/v1/events/public.pretty_json

Which gives a white screen. You could try enabling WP_DEBUG so we can see if its throwing any errors.

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


Josh

  • Support Staff

November 29, 2013 at 8:39 am

Hi Brian,

It turns out that the WP HTTPS plugin is the plugin that will cause issues when the Event Espresso API plugin is installed. What you can try is disabling all the plugins on the site except for Event Espresso and its API plugin to help narrow down the issue.


Brian Gravel

November 29, 2013 at 2:36 pm

I appreciate the feedback! I tried disabling the plugins and found the issue was with NextGen Gallery. Is there anything you know of that can be done so that I can keep NextGen and also have the HD app work? Or will I need switch to a new gallery plugin?


Josh

  • Support Staff

December 2, 2013 at 2:41 pm

Hi Brian,

I sent a ticket over to the developer of the API so he can look into this. For the time being you could use the native WordPress gallery functionality, or another plugin.


Josh

  • Support Staff

December 3, 2013 at 8:20 am

Update: It turns out that NextGen gallery kicks in some output buffering for cases where an API request doesn’t match one of its gallery API requests. This breaks the Espresso JSON API. The developer of the JSON API came up with a work around in a custom function that can be added to your theme’s custom functions.php file or into a custom functionality plugin.


Brian Gravel

December 3, 2013 at 12:50 pm

Thank you very much, I really appreciate the support. However, I’ve added the code into my functions.php file and I am still getting the same error. I added the code from line 5 down, not including the opening php tag as directed. I would really love to keep NextGen active.

Thanks!


Josh

  • Support Staff

December 3, 2013 at 1:36 pm

You might try adding it into a custom functionality plugin. The code is working as expected for me when I add it to my custom functionality plugin. Alternatively, you could try moving the code closer to the top of the functions.php file of your theme so it loads before the other code. In order for this to work, it needs to load before NextGen code loads up.


Brian Gravel

December 4, 2013 at 7:55 am

You’re right .. that worked! Thank you very much for your help.

The support post ‘Event Espresso HD APP: 'Server response is zero-length; no data'’ 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