Support

Home Forums Event Espresso Premium Server response is zero-length; no data error

Server response is zero-length; no data error

Posted: August 31, 2013 at 6:35 am


Miguel Moreno

August 31, 2013 at 6:35 am

Hi, I tested Jason API: https://bymovement.com/espresso-api/v1/events/public.pretty_json and I get a blank page. It is not working from iPads or Iphones. The only security software I have installed is Wordfence, but I disable it when testing. There aren’t any rules blocking access on the .htacces file either.
Thanks!


Dean

September 2, 2013 at 12:18 am

Hi,

Have you checked the API Settings under the Event Espresso menu and made sure the “Allow Public API Access?” setting is set to Allow?


Miguel Moreno

September 2, 2013 at 2:11 am

Yes, it is set to allow. This is a Plesk server running virtual hosts with PHP 5.3 as fastcgi
Thanks


Dean

September 2, 2013 at 2:39 am

Hi Miguel,

What server type are you running – windows or linux?

I will probably need to refer this to a developer, so the more info as you can supply the better. Can you go to Event Espresso > System Status and at the top click Generate Report. Copy and paste that report here please.


Miguel Moreno

September 2, 2013 at 7:25 am

This is a CentOS 5.9

=============================================================================================
Versions
=============================================================================================
Event Espresso version: 3.1.34.1.P
WordPress version: WP 3.6
Installed plugins: Advanced Custom Fields by Elliot Condon version 4.2.2, Akismet by Automattic version 2.5.9, Comment Images by Tom McFarlin version 1.12.0, Constant Contact API by Katz Web Services, Inc. & James Benson version 2.4.1, Custom Post Type UI by WebDevStudios.com version 0.8, Force Download Shortcode by Drew Jaynes (DrewAPicture) version 1.1, Elegant Builder by Elegant Themes version 2.3, Event Espresso – Social Coupons by Seth Shoultes version 1.5.3.1, Event Espresso – Members Addon by Event Espresso version 1.9.7.2, Event Espresso – Multi Event Registration by Seth Shoultes version 1.0.4, Event Espresso – Permissions by Event Espresso version 1.5.4.1, Event Espresso Requirements Check by Event Espresso version 0.9, Event Espresso – Ticketing by Event Espresso version 2.0.10.2.p, Event Espresso by Event Espresso version 3.1.34.1.P, Google Analytics Dashboard for WP by Deconf.com version 4.1.3, Google Analytics for WordPress by Joost de Valk version 4.3.3, Instagram image gallery by Statigram version 1.0.4, Jetpack by WordPress.com by Automattic version 2.4, Nextend Google Connect by Roland Soos version 1.4.58, Post Types Order by Nsp Code version 1.6.2, Safe Redirect Manager by Taylor Lovett (10up LLC), VentureBeat version 1.7, Simple Backup by MyWebsiteAdvisor version 2.7.7, Wordfence Security by Mark Maunder version 3.8.3, WordPress HTTPS by Mike Ems version 3.3.6, WP APC Panel by WhiteWP version 1.1, WP-Cron Control by Thorsten Ott, Erick Hitter, Automattic version 0.7, WP Crontrol by Edward Dale & John Blackbourn version 1.2.2, WP Robots Txt by Christopher Davis version 1.1, Wufoo Shortcode Plugin by Chris Coyier / Wufoo version 1.41

=============================================================================================
Settings
=============================================================================================
Home URL: http://bymovement.com
Site URL: https://bymovement.com

=============================================================================================
Registration Pages
=============================================================================================
Event Page: #808 – http://bymovement.com/event-registration/
Payment/Thank You Page: #809 – http://bymovement.com/thank-you/
Transaction Notification Page: #811 – http://bymovement.com/transactions/
Cancel Return Page: #810 – http://bymovement.com/registration-cancelled/

`=============================================================================================
Server Environment
=============================================================================================
PHP Version: 5.3.25
Server Software: Apache
WP Max Upload Size: 100MB
Server upload_max_filesize: 100MB
Server post_max_size: 200MB
WP Memory Limit: 64MB
WP Debug Mode: No
Espresso Logging: Log directory is writable.

=============================================================================================
PHP Sessions
=============================================================================================
Session save path: /tmp/php/session is writable.
Session name: PHPSESSID

=============================================================================================
Remote Posting/IPN
=============================================================================================
fsockopen/cURL:

Your server has fsockopen and cURL enabled.

Thanks


Dean

September 3, 2013 at 2:34 am

Thanks for that, I will refer to a developer for assistance.


Michael Nelson

  • Support Staff

September 3, 2013 at 10:09 am

Usually when I get a completely blank page like that, I’d check you’re not getting a fatal error. You have wp debug OFF, which is nice for development but BAD in this case because instead of getting an informative error message, you get a blank page like this.

Would you mind temporarily turning WP_DEBUG to TRUE in your wp_config.php file? If the JSON API page outputs an error, tell us what the error is and then turn WP_DEBUG back to FALSE.


Miguel Moreno

September 3, 2013 at 10:26 am

I did turn debugging on, but no json api errors. The only other error showing is this one: Notice: Undefined index: HTTP_MOD_REWRITE in /var/www/vhosts/bymovement.com/httpdocs/wp-content/plugins/espresso-requirements/espresso_requirements_check.php on line 144 Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/vhosts/bymovement.com/httpdocs/wp-includes/functions.php on line 2969

Thanks


Josh

  • Support Staff

September 4, 2013 at 10:52 am

Hi Miguel,

I believe there is a conflict between the JSON API and the WordPress HTTPS plugin. In this case I can advise using the Better WP Security plugin if you need to force specific URLs to load as https.


Miguel Moreno

September 4, 2013 at 11:05 am

Thanks for the reply, I will try your suggestions, but I have to say a couple of things: I don’t like WP better security because it has a lot or unnecessary features. Also, I use WP HTTPs because I like to secure the whole back end, but primarily because I will never do any sort of credit card data collection without a secure connection from the clients computer and to the gateway.


Miguel Moreno

September 4, 2013 at 11:12 am

Thanks again, it is now working without the WP HTTPS plug in. I wish event espresso was compatible with WP HTTPS instead.


Josh

  • Support Staff

September 4, 2013 at 3:00 pm

Hi Miguel,

It turns out that Event Espresso is compatible with WP HTTPS, however the JSON API is not compatible with it at this time. Other https plugins (like the Better WP security plugin) do not cause any issues for the JSON API plugin.


Miguel Moreno

September 4, 2013 at 3:50 pm

Is is good the Json API is now working. Thanks!

The support post ‘Server response is zero-length; no data 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