Support

Home Forums Event Espresso Premium App keeps on fetching events and seems stuck in a loop

App keeps on fetching events and seems stuck in a loop

Posted: January 21, 2013 at 9:17 am


Paua (Jeroen Wilms)

January 21, 2013 at 9:17 am

I have installed the mobile api and have a correctly installed EE but when I want to load the mobile app it fails. It will connect to the server and will succesfully logi. After the login it fails though and seems to get stuck in a loop, continously ‘fetching events’. What can I do to solve this?


Josh

  • Support Staff

January 21, 2013 at 9:43 am

Hi Jeroen,

Is this a single site installation of WordPress, or a multi-site installation?


Paua (Jeroen Wilms)

January 21, 2013 at 1:31 pm

Hi Josh,

It’s about a multisite installation.


Josh

  • Support Staff

January 21, 2013 at 1:47 pm

Hi Jeroen,

The ticketing add-on does not work with multisite installations out of the box.

The reason multisite does not work with our mobile app api is the mobile app api expects to connect to a single site database. It’s possible to work around this by modifying the mobile app api to point to the site’s database where the event info is stored.

In a nutshell, this involves opening the entire espresso-services directory in a code editor and do a global find and replace for:

{$wpdb->prefix}events_ 

and replace with

{$wpdb->prefix}7_events_

Note: the above code example will make the mobile app look for the site with the ID of 7.


Paua (Jeroen Wilms)

January 22, 2013 at 8:02 am

Hi Josh,

I have tried your solutions but have found it not to resolve the issue. The app continues to endlessly show the ‘fetching events’ status.

What else can I do?


Josh

  • Support Staff

January 22, 2013 at 9:46 am

Hi Paua,

Is the ticketing add-on installed and active for the blog you have set up?

Also, what is the blog ID for the site you are using Event Espresso on?


Paua (Jeroen Wilms)

January 22, 2013 at 9:48 am

The ticketing add-on is installed and active. I have created several e-tickets.

The blog ID for the site using EE is ‘1’.


Josh

  • Support Staff

January 22, 2013 at 10:47 am

Hi Jeroen,

I made a custom espresso-services api folder for you that is modified to look for a blog ID of 1. You can download it here:

https://www.dropbox.com/sh/4ikuh332kcb072b/dMwNSeOn2z/jeroen.zip

Can you unzip the downloaded file and upload espresso-services to the location on your server where WordPress is installed, then try the mobile app again?

Please note, the endpoint URL will be the location where WordPress is installed, not the blog where Event Espresso is activated.


Paua (Jeroen Wilms)

January 26, 2013 at 8:12 am

Hi Josh,

Thanks for the folder! Unfortunately it still doesn’t work.

In this case the blog id 1 where EE is activated has the same url as the location wordpress is installed. Could this be some sort of part of the problem?


Josh

  • Support Staff

January 28, 2013 at 8:51 am

What is the URL for the main site then? You could try that.


Paua (Jeroen Wilms)

January 31, 2013 at 8:37 am

I have. Doesn’t work. Do you have any other suggestions?


Josh

  • Support Staff

January 31, 2013 at 10:23 am

What are the URL’s for the site that has a blog ID of 1, and the URL for the main site?


Paua (Jeroen Wilms)

February 3, 2013 at 1:47 pm

https://www.nhtvtheater.nl and
https://www.nhtvtheater.nl


Paua (Jeroen Wilms)

February 4, 2013 at 4:53 am

Wednesday night 1800h (CET) I have to have this working as an event is then starting. What can we do to fix this?


Seth Shoultes

  • Support Staff

February 4, 2013 at 9:39 pm

Can you please send us login info using the following form?
https://eventespresso.com/send-login-details/

Also, can you check with your host to see if the request from the iPhone app is being blocked by mod_security with a rule that blocks anything without a Content-Length or Content-Type header? If they are, you may have to request that they change this on the server or find a host that is a little less restrictive.


Seth Shoultes

  • Support Staff

February 4, 2013 at 9:43 pm

Also, I am seeing really weird redirect when trying to view the espresso services directory on your website, using http://www.nhtvtheater.nl/espresso-services/. However the https://www.nhtvtheater.nl/espresso-services/ version seems to work. So I wonder if that may have something to do with your problem.

The redirect goes here:
http://www.nhtvtheater.nl/index.php?option=com_error404&view=error404&uri=http://www.nhtvtheater.nl/espresso-services/


Paua (Jeroen Wilms)

February 5, 2013 at 5:16 pm

I checked the Android app and it didnt work. I have just sent you the login details as requested via the form. thanks for the support!


Stichting Festival Aangeschoten Wild

February 18, 2013 at 3:45 pm

I have exactly the same problem, and also want to go live as soon as possible. Mod_security is disabled, the espresso-services folder is in root and at 755, and as I’m using a multi-site install (blog_id = 6), I have edited the files in that folder according to the instructions.

Any ideas?


Josh

  • Support Staff

February 19, 2013 at 9:38 am

Hi Stitching festival aangeschotenwild,

I’m not seeing the redirect that was posted by the other user when I visit:

http://aangeschotenwild.com/espresso-services/

in my browser. So this looks like a different issue. You might check to see if you can get this to work on a test site running on a single site installation of WordPress.

Can you start a new topic where we can follow up with you there?


Stichting Festival Aangeschoten Wild

February 20, 2013 at 4:57 am

I do see the redirect, or what I think you mean with that. Both https://www.nhtvtheater.nl/espresso-services/ (previous user) and http://aangeschotenwild.com/espresso-services/ show the same page.


Dean

February 20, 2013 at 6:12 am

Hi,

By redirect he means that the page does not go to the espresso services page (confirming it is working) but instead redirects to the home page. That is not happening with either the links you posted, thus probably a different issue.

Have you tested this on a single site setup? And as Josh requested, is it possible for you to follow up on a new thread once you have confirmed single site is posing no issue.

Thanks.

The support post ‘App keeps on fetching events and seems stuck in a loop’ 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