Support

Home Forums Event Espresso Premium EE3 Calendar stopped displaying events

EE3 Calendar stopped displaying events

Posted: March 29, 2016 at 7:33 pm

Viewing 6 reply threads


Rob Norman

March 29, 2016 at 7:33 pm

Hello,

I changed the domain name of my wordpress site and tried displaying a page with a “[ESPRESSO_CALENDAR]” shortcode which previous worked fine – displayed all events in the calendar. The calendar no longer worked with the new domain-name URL so I then reverted the domanin-name back to its original after realizing the EE3 licencing may have been a problem. My problem is that the “[ESPRESSO_CALENDAR]” shortcode is still not displaying any events even after changing the domain-name back to its original; it displays the busy “wheel” but seems to hang.

Thanks in advance,
Rob


Tony

  • Support Staff

March 30, 2016 at 2:16 am

Hi Rob,

The license key will not effect the functionality of EE.

Looking in Chrome Dev Tools using the console you’ll find this error:

XMLHttpRequest cannot load https://xxx.xxx.xx/wp-admin/admin-ajax.php. The 'Access-Control-Allow-Origin' header contains multiple values 'http://xxx.xxx.xx, *', but only one is allowed. Origin 'http://xxx.xxx.xx' is therefore not allowed access.

It looks like this is an issue with your nginx setup, see:

http://serverfault.com/questions/384105/cross-origin-resource-sharing-cors-with-nginx-chrome

http://serverfault.com/questions/350330/nginx-add-header-adding-multiple-headers

How did you change the domain?


Rob Norman

March 30, 2016 at 3:41 am

Thanks Tony,
I have a hosted primary domain and some parked domains. I’ve redirected the parked domains at the primary wordpress installation in cpanel and changed the WordPress Address (URL) and Site Address (URL) in WordPress General Settings to the one of my parked domains. Everything worked fine except for the EE3 Calendar.

Any help would be great. I can see the error you refer to in the Chrome Dev Console. Not sure how to fix it though.

Cheers,
Rob


Rob Norman

March 30, 2016 at 3:56 am

Hi Tony,

Might have found it; I added the following to my .htaccess file to get fonts and icons working for my parked domains –

Header add Access-Control-Allow-Origin “*”

Seems like this line broke nginx as you have pointed out. Commented out and it works again. Guess I’m back to the drawing trying to work out how to have multiple domains pointed at one installation…

Thanks,
Rob


Tony

  • Support Staff

March 30, 2016 at 4:36 am

I’d recommend contacting your host and see if they can provide a solution for this.

I did a quick search and found:

http://stackoverflow.com/questions/1653308/access-control-allow-origin-multiple-origin-domains

and

http://stackoverflow.com/questions/25309318/best-method-access-control-allow-origin-multiple-origin-domains

However I’m assuming you’ve already found those ๐Ÿ™‚


Rob Norman

March 30, 2016 at 4:38 am

Thanks, will do. Thanks for you help ๐Ÿ™‚


Tony

  • Support Staff

March 30, 2016 at 5:03 am

You’re most welcome, Rob.

Viewing 6 reply threads

The support post ‘EE3 Calendar stopped displaying events’ 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