Posted: October 17, 2013 at 3:08 am
|
Hi, The site: http://edithunlimited.co.za is using WordPress 3.6.1 / Event Espresso 3.1.35.1.P and have installed the JSON API add on. The folder has been uploaded to the WordPress directory where wp-admin, wp-content etc. are, I have checked the directory permission is 755. I have seen the xmlrpc.php file is also in this directory – Under “Settings – Writing” I have the following: http://rpc.pingomatic.com/, does this mean it is enabled? I have tried using the test url to see my events: http://edithunlimited.co.za/espresso-api/events/public and I get a blank screen. What should the endpoint url be? Your assistance would be much appreciated, my client has an event over the weekend with over 1500 attendees and it would be tedious to mark the attendees off on paper. Thanks, |
Hi Cindy, The JSON API is a plugin and as such is installed the same as a normal plugin. You can follow this guide for installing event espresso, the steps are the same for the JSON API. https://eventespresso.com/wiki/installing-event-espresso/ It is the expresso-services folder which is placed within the root directory. Once you follow the above you should be able to access the API Settings under Event Espresso->API Settings. |
|
Also to note The espresso-services folder is used for android devices and is not required for the JSON API. They are totally independent of each other. Apple devices using the latest HD app can all use the JSON API. So it depends on the devices you will be using as to which one (or both) you may need. (Adding this as I mentioned the esspresso-services folder above) |
|
|
Hi Tony, Thank you for your responses, my client will be using an iPad to scan the tickets which is why I loaded the JSON API add on, so I assume I don’t need the “espresso-services” folder? I have activated the plugin and I am able to see the API settings under the Event Espresso menu. I have change the settings as follows: API Session Timeout After: Never Not sure what to do next π Thanks, |
In that case you only need the JSON API yes. Normally you would either just login with the app to test, or go to (in your case) http://edithunlimited.co.za/espresso-api/v1/events/public.pretty_json Which would show your events in JSON format (yours does not) A plain white-screen as seen on the url above can mean a few things, is it possible to enable WP_DEBUG briefly to see if any errors are thrown? |
|
|
Hi Tony, Not a code whizz π – So to clarify I need to change the wp-config.php file code to: define(‘WP_DEBUG’, true); ? |
Yep that’s the one. You may then notice (or not) errors/warnings popping up all over the site. They will go once again when WP_DEBUG is set to false again. Let me know once its changed and I’ll take a look |
|
Hi Cindy, You can set it back to false now. |
|
|
Hi Tony, I have changed the wp-config.php file, specifically “define(‘WP_DEBUG’, true);” and re-uploaded the file. |
π You can set it back to false again now Firstly can you disable the espresso-https plugin as it does not work with the JSON API. I would recommend using Better WP Security pluginβs HTTPS feature as this does work with the API. See option 2 here Before installing Better WP Security, just leave espresso-https disabled/deleted so we can check that is the root of the issue. |
|
|
Okay, so here are the errors received, I will set it back to false now. Notice: Undefined variable: wordpress_https in wp-content/plugins/espresso-https.1.0/espresso-https.php on line 883
|
|
Hi Tony, I think there is Bette WP Security is conflicting with one of the other plugins on the site as I get the following error: “You do not have sufficient permissions to access this page”. I have experienced this before. So when logging in on the iPad what is the endpoint URL? |
The Endpoint URL is the WordPress install directory. This can be your domain or if WordPress is installed in another folder (for example ‘wordpress’) if would be domain.com/wordpress In you case I would start with http://edithunlimited.co.za as you endpoint. Quick question – is your site part of a multi-site network or single site? |
|
|
Hi Tony, Firstly, thank you so much for the quick response π I have tried using “http://edithunlimited.co.za” but I get an error: This is a single site. |
|
Apologies not sure why the ” is at the end of the url π |
|
and the test link “http://edithunlimited.co.za/espresso-api/v1/events/public.pretty_json” still gives me a blank screen…. |
Hmmm… Is WP Better Security disabled now or active? In fact, would it be possible to get the login details to investigate this further? If so please use https://eventespresso.com/send-login-details/ |
|
|
Hi Tony, I have disabled the Better WP Security for now… I have filled in the form so you can access the site. I look forward to having this resolved π |
Hi Cindy, There’s a few things this could be. I have a feeling its either Access manager plugin or possibly your htaccess file which is causing it. βYou do not have sufficient permissions to access this pageβ shouldn’t be happening and again is likely a symptom of the issue. I would start with the easiest which is a full troubleshoot. At a time to suit yourselves disable all Non-Event Espresso plugins and refresh the JSON test page. See if it works. It it does its an issue with one of the plugins. Start activating each plugin 1 by 1, refreshing the test page between each activation. See which one causes it to to stop loading and report back so we can investigate further. Unlikely this will cause any issue’s whatsoever but just in-case I would recommend doing a full site back (including the Database) beforehand (better safe than sorry). You can do this via https://eventespresso.com/wiki/how-to-back-up-your-site/ Also looking at your .htaccess file you could also try reverting back to the default rules provided by WordPress. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Again make sure you have a backup before modifying. |
|
|
Hi Tony, Thanks again for your help, I backed the site up and deactivated all the plugins except the Event Espresso ones and found that NextGen Gallery is the culprit, all the other plugins are working fine even Better WP Security is working now π I can now access the app on the iPad although it keeps timing out when I search for an event…. Is this because of connection speed? I am connecting to the internet wi-fi as I do not have a micro sim for my iPad….. Thanks, |
|
Hi Tony, My events and attendees are showing up on the iPad now, thank you! Thanks, |
|
Hi guys, Am new in Espresso Events. Am trying to make this API to work. Also in the username and password i should put the wordpress admin credentials ? thanks, Aristos |
|
@Aristos – If you are just needing access for scanning tickets etc then the endpoint is just http://www.richintermedia.com/. Yes the username and password is your site username/password as you are effectively logging into your site. |
|
Hi, I am now able scan and check people in and out using the iPad app, works brilliantly! π But I urgently need to resolve some issues since loading the JSON API…. Now I cannot export my attendee lists to excel as I get the following error:
in the Excel file itself. I believe this has to do with updating my PHP from 5.2 to 5.3, I have requested my Server Administrator to assist me with this and see if this will fix this error. Thanks, |
Hi Clewis, Apologies for my delay in getting back to you. DateTime::createFromFormat() is a core function included with PHP 5.3+ so it would seem strange you are getting this error. If you go to Event Espresso -> System Status. Scroll down to ‘Server Environment’ you can see your current PHP version there. Is it greater than 5.3? |
|
|
Hi Dean and thanks for the reply. Am able to login on my iphone 5 but i dont see any events ???? |
Hi Aristos, Could you please start your own thread explaining your issue, this one has been marked as resolved. It is generally a good idea to start your own thread for any issue’s as it helps both us with monitoring issues and other users troubleshooting as each individual issue will be slightly different. In your new thread, could you please include details of your server – found under Event Espresso -> System Status under ‘Server Configuration’. Also, if your site is part of a multi-site network or single site. Thank you |
|
The support post ‘Event Espresso API – Endpoint URL’ 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.