Support

Home Forums Events Calendar Add-on Calendar only shows events when I'm logged into WordPress

Calendar only shows events when I'm logged into WordPress

Posted: May 9, 2016 at 5:44 pm

Viewing 8 reply threads


Brett Hullinger

May 9, 2016 at 5:44 pm

When I am logged into WordPress and I view the page with my Event Espresso calendar, it displays just fine, with all the events. When I am logged out, the events don’t load into the calendar, so users see a blank calendar. The icon at the top of the calendar spins, as if trying to load events, but it just keeps spinning and won’t load.

I’ve been using EE for over a year and have never had this problem. My clients cannot register for classes now and are growing frustrated. I’d really appreciate any feedback. Thank you.

I am using EE3 Version 3.1.37.3.P
Wordpress 4.5.2
Theme: Braxton


Lorenzo Orlando Caum

  • Support Staff

May 9, 2016 at 5:53 pm

Hi there Brett,

Thanks for reaching out today.

Have you recently setup any caching services (e.g. wp super cache, w3 total)?

Could you please share a link to that events calendar page?


Lorenzo


Brett Hullinger

May 9, 2016 at 6:18 pm

Hello Lorenzo,

No, I have not setup any caching services. Here is a link to the page: http://tamjamsworld.com/event-calendar/

Thanks,
Brett


Josh

  • Support Staff

May 9, 2016 at 9:04 pm

Hi Brett,

Has a security plugin or other mechanism been added that blocks requests to the wp-admin folder without making an exception for the wp-admin/admin-ajax.php file? That’s exactly the sort of thing that the calendar will do if something like that has been added to the site. There’s information with a link to some resources in the WordPress codex on how to properly secure the /wp-admin/ folder:

http://codex.wordpress.org/Hardening_WordPress#Securing_wp-admin


Brett Hullinger

May 9, 2016 at 9:24 pm

Josh,
I have not actively added any security plugins. Is it possible that such a mechanism might have been added without my knowledge, like with an update of WordPress or existing plugins? I will also look at the codex documentation that you sent and see if I can find a solution there.
Thanks


Brett Hullinger

May 9, 2016 at 10:59 pm

I still have not been able to resolve this issue. I’m convinced that Josh is right, and after looking at the link above (and related info), I found what I thought would be the solution:
In the wp-admin .htaccess file, paste the following code:
<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any
</Files>

However, since I have not added any password protection to the wp-admin folder, or added any other protection that I’m aware of, there is no .htaccess file in the folder. Is there a different file that I need to add the code to?


Tony

  • Support Staff

May 10, 2016 at 1:30 am

Hi Brett,

Looking at the source code for your calendar page there’s multiple version of jQuery being added to the page. One of which is causing JavaScript Syntax error as the file has been remove – http://take.ms/zwqmS

Whist logged into the site, open up Chrome Dev tools (or similar) and search the page source for ‘creativelogisticssupport’, does anything show on the page?

Is that code you have added yourself or do you recognize that code in the screenshot at all?


Brett Hullinger

May 10, 2016 at 11:17 am

Tony,
Yes, I found this error with DevTools:

jquery.min.php?c_utt=K85164&c_utm=http%3A%2F%2Faes.creativelogisticssupport.com%2Fjs%2Fjquery.min.p…:1 Uncaught SyntaxError: Unexpected token <
scripts.js?ver=4.5.2:52 Uncaught TypeError: $(…).stickyMojo is not a function(anonymous function) @ scripts.js?ver=4.5.2:52n.event.dispatch @ jquery.js?ver=1.12.3:3r.handle @ jquery.js?ver=1.12.3:3

I didn’t add this personally but there’s a chance that the web developer who helped with integrating EE on our site did (more than a year ago). Having found it, what is the next step?


Josh

  • Support Staff

May 10, 2016 at 12:11 pm

You only need one copy of the jQuery library, and it’s best practice to use the one that’s bundled with WordPress. The thing is though, that’s not a legit copy of jQuery, it’s serving an error page instead of a script.

The next step is to find the theme function (or plugin function if that’s the case) that’s adding the extra script code and remove it.

Viewing 8 reply threads

The support post ‘Calendar only shows events when I'm logged into WordPress’ 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