Posted: 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. |
|
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? |
|
Yes, it is set to allow. This is a Plesk server running virtual hosts with PHP 5.3 as fastcgi |
|
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. |
|
This is a CentOS 5.9 ============================================================================================= ============================================================================================= ============================================================================================= `============================================================================================= ============================================================================================= ============================================================================================= Your server has fsockopen and cURL enabled. Thanks |
|
Thanks for that, I will refer to a developer for assistance. |
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.
|
|
|
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 |
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. |
|
|
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. |
|
Thanks again, it is now working without the WP HTTPS plug in. I wish event espresso was compatible with WP HTTPS instead. |
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. |
|
|
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.