Support

Home Forums Event Espresso Premium JavaScript error causing errors in the event editor

JavaScript error causing errors in the event editor

Posted: December 27, 2018 at 7:19 am


WBN

December 27, 2018 at 7:19 am

Good morning,

I have updated to PHP 7.2 for my site esterochamber.org, and now I am unable to add media to my events or delete or add tickets.

May you please assist me in addressing this issue?

Please and Thank you.

  • This topic was modified 5 years, 4 months ago by  Josh. Reason: changed topic because the site runs EE4, and the PHP7.2 update isn't causing this


Josh

  • Support Staff

December 27, 2018 at 9:02 am

Hi,

Can you check the browser’s console for JavaScript errors? For what it’s worth, my testing site for EE3 also runs PHP 7.2 and the ticket prices & media uploads work as expected there. There may be another plugin or theme function that’s causing the issues there.


WBN

December 27, 2018 at 12:43 pm

There is a uncaught syntax error …. unexpected token!

Do you want me to copy that data here?


Josh

  • Support Staff

December 27, 2018 at 1:38 pm

Is that unexpected token error coming from the theme or another plugin?


WBN

December 27, 2018 at 1:44 pm

how do I figure that out?


WBN

December 27, 2018 at 1:49 pm

Now when I look for the token error to copy the data to show you it is no longer showing the error, but I am still having the issue.


Josh

  • Support Staff

December 27, 2018 at 2:04 pm

You could try using the Health Check plugin to narrow down the cause.

You install the Health Check plugin, then go to WP → Dashboard → Heath Check → Troubleshooting. There you’ll Enable Troubleshooting Mode, then once that’s activated you’ll reactivate Event Espresso only via the Health Check’s Troubleshooting item in the WP admin bar. At that point, can you check to see if the issue persists?


WBN

December 28, 2018 at 7:02 am

Good Morning,

I ran Health check and Activated only EE while in Troubleshooting mode… and the site did not recognize it was active. I had no access to the plugin what so ever.


Josh

  • Support Staff

December 28, 2018 at 8:53 am

OK, thanks for trying. Someone from EE support staff can take a look at that JavaScript error to find out which plugin is causing the conflict, if you can send access. Can you complete the secure form on this page:

https://eventespresso.com/send-login-details/


WBN

December 28, 2018 at 9:15 am

This reply has been marked as private.


Josh

  • Support Staff

December 28, 2018 at 9:45 am

Hi,

Can you send again with the correct information? The reason I ask is because I get this error on the log in form:

ERROR: The password you entered for the username ** is incorrect. Lost your password?
Warning: Repeated login attempts that fail will result in a complete ban of your IP Address.


Tony

  • Support Staff

December 28, 2018 at 12:14 pm

Hi there,

Do you have Adblock Plus installed in your browser?

If so try disabling it on your own domain (http://take.ms/qqjmr), does it work as expected for you then?

For me, every script on your site is being blocked by AdBlock and specifically by EasyList used by AdBlock Plus (and others)


Tony

  • Support Staff

December 28, 2018 at 5:37 pm

I did some more investigating on this and it turned out to be the ad plugin’s you have installed on the site whose resources were being blocked by AdBlock, so that’s expected.

On enabling Troubleshooting mode and then activating only Event Espresso, the editor worked as expected

(Note you need to enable EE through WP -> Dashboard, not WP -> Plugins. So use this section – http://take.ms/0Jvkt)

It’s only when switching to your sites current theme that the JS error is thrown, are you using the latest version of the theme on your site?


WBN

January 2, 2019 at 7:18 am

Yes, We are using the Latest version of the theme on our site.


WBN

January 2, 2019 at 7:19 am

DO we know which plugin is running the ad block?..which is what is causing this error, if I am understanding correctly ?


Tony

  • Support Staff

January 2, 2019 at 7:35 am

Yes, We are using the Latest version of the theme on our site.

Can you send me a copy of the theme so I can view this locally? You’ll need to host the zip file for the theme somewhere (dropbox as an example) and add a link here I can use to download it (you can set the reply to private).

DO we know which plugin is running the ad block?..which is what is causing this error, if I am understanding correctly ?

Adblock is running my browser, its not a plugin on your site.


WBN

January 2, 2019 at 9:36 am

This reply has been marked as private.


Tony

  • Support Staff

January 2, 2019 at 11:56 am

Thank you.

So I tested the theme on a couple of sites and don’t have any issues at all when using it with EE.

I noticed on your site you are minifying and caching scripts, is that also active within the admin? If so, try flushing the cache on the plugin doing that and temporarily disable it, do the media buttons etc work on the event editor then?


WBN

January 3, 2019 at 6:57 am

Good Morning,

We have removed the minifying plugin, turned off the object cacheing, cleared our cache twice on the server side and once in our browsers and still are unable to media or edit/ change the tickets in the event editor.

Thank you.


Josh

  • Support Staff

January 3, 2019 at 9:03 am

Hi,

You should be able to do so now. I’ve added a plugin to your site, its name is “Restore Heartbeat API”. The trouble was that WPEngine removes the WordPress Heartbeat API, which Event Espresso 4 actually uses. The plugin that WPEngine uses to remove the Heartbeat API has a filter that can be used for restoring the Heartbeat API. Now that it’s restored you can use the editor again.


WBN

January 3, 2019 at 10:06 am

This reply has been marked as private.


Josh

  • Support Staff

January 3, 2019 at 10:08 am

Is the other site hosted on WPEngine?

The support post ‘JavaScript error causing errors in the event editor’ 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