Support

Home Forums Event Espresso Premium Text Editor Not working when Edit Events

Text Editor Not working when Edit Events

Posted: July 10, 2019 at 6:06 pm

Viewing 21 reply threads


Jarred

July 10, 2019 at 6:06 pm

For some reason since the last update my text editor where I enter HTML when creating or editing Events will not open. So, I opened up a “Page” to see if I could replicate the problem and the text editor DOES work on Pages. The only place it doesn’t work is when editing Event Espresso.

http://prntscr.com/odd7t5

Please advise.


Tony

  • Support Staff

July 11, 2019 at 3:15 am

Hi Jarred,

When the editor can’t switch modes it usually means there’s a JavaScript error being thrown, likely from another plugin (or the theme) loading JS on our routes when it shouldn’t be.

If you open up Chrome Dev tools and look in the ‘Console’ section when editing an event, can you see any errors there?


Jarred

July 12, 2019 at 9:45 am

Yes here is the error I see. How can I fix it?

============================

Uncaught Error: Syntax error, unrecognized expression: #event-question-Rmlyc3QgTmFtZQ==
at Function.ea.error (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:2)
at ea.tokenize (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:2)
at ea.select (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:2)
at Function.ea (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:2)
at Function.a.find (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:8)
at n.fn.init.find (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:2)
at n.fn.init.a.fn.find (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:8)
at a.fn.init.n.fn.init (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:2)
at new a.fn.init (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:8)
at n (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:2)
spinner-1x.gif:1 GET https://www.artsyrose.com/wp-admin/images/spinner-1x.gif 404
Image (async)
scaleImage @ devicepx-jetpack.js?ver=201928:65
zoomImages @ devicepx-jetpack.js?ver=201928:30
(anonymous) @ devicepx-jetpack.js?ver=201928:18


Jarred

July 12, 2019 at 9:48 am

Here is a screenshot of error of the exact text I posted above. Might make it easier to see.

http://prntscr.com/oe6rkc


Jarred

July 12, 2019 at 9:51 am

oops this might help more I opened the arrow beside the error for you.

http://prntscr.com/oe6t0r


Jarred

July 12, 2019 at 9:58 am

I deactivated Jetpack to see if that would help and the problem still exists. Obviously, the jetpack error disappeared from the console, but the EE error remained.


Jarred

July 12, 2019 at 10:01 am

the most recent updates that must have caused problems was the ee main plugin, the ee mailchimp plugin and I can’t remember the other ee addon that updated recently but it was one of them.. Hopefully thats enough info to help you help me fix this. I always use the text editor so I can insert my own html so this is really hurting productivity. thanks


Josh

  • Support Staff

July 12, 2019 at 10:14 am

Hi Jarred,

“Uncaught Error: Syntax error, unrecognized expression: #event-question-Rmlyc3QgTmFtZQ==” sounds like an error coming from outside Event Espresso and its add-ons. I did a check in the code base and I see no instance of “#event-question-” anywhere.

You could add the following to your site’s wp-config.php to turn off script concatenation, which will help point to the originating script when looking at the JS console:

define( 'SCRIPT_DEBUG', true );
define( 'CONCATENATE_SCRIPTS', false );


Jarred

July 15, 2019 at 5:55 pm

Okay I added that code you gave above but for some reason it still spit out the EXACT same text as what I posted above in the printscreen link.

So I did the ole deactivate everything to find the problem. ANd i found it.

Its the Mailchimp Event Espresso Add on. When I deactivate that, then wordpress works properly.

I have version 2.4.1 and I’m 99% positive that there was an update for the plugin within the last month or so.

So if there is anyway to figure out why that plugin is causing that issue and sending a patch that would be great, or if I need the previous version for now?

Thanks


Josh

  • Support Staff

July 16, 2019 at 7:08 am

Hi Jarred,

May I ask is there any custom code on your site that hooks into the Event Espresso MailChimp add-on? The reason I ask is I have the same version of the MailChimp add-on on my site and there’s no errors like what you’ve posted above and the text editor works as expected.


Jarred

July 16, 2019 at 10:57 am

I think the only custom code I have is from buying a support token and getting help with the Event Espresso email notifications and “Tickets” emails because we use a scanner to check kids in and out. But Im not sure if that code would be conflicting with EE MailChimp add-on.

I’m more then happy to provide access to my site to get it fixed.

Please keep in mind I’ve used EE and the MC add-on for almost 4 years now with no issues until the most recent update. So I really don’t want to go down the road of thinking it’s anything else besides the update to the MailchimpEE add-on.

So I’m hoping it will be easy to fix because we can narrow it down so easily.

Let me know how to provide login details.

Thanks


Tony

  • Support Staff

July 16, 2019 at 3:08 pm

Hi Jarred,

The thing is, we can’t narrow this down easily.

Both Josh an I run multiple test sites with various plugins enabled and so far neither of us can reproduce. I’ve also tested doing odd things with the MailChimp add-on just to be sure, such as having questions set up with the MailChimp add-on on an event and then removing them from the EE question groups, or setting up merge fields on MailChimp, assigning them a question and then removing them from the MailChimp groups.

The code Josh gave you tells WordPress not to combine the scripts together when loading them, we can’t see enough details on the specific script loading this to know the cause. If you get the exact same error showing all of the scripts with that code, then something is amiss on your site.

When you see this:

load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.2.2:8

That’s all of the scripts loading together, meaning if there is an issue with one of them, it shows as an issue from all of them. The code above splits them out so you can see the specific script.

The error your getting basically means ‘something’ within all of the JavaScript loading on the event editor on your site doesn’t like it when #event-question-Rmlyc3QgTmFtZQ== is passed to it.

The fact that it happens with the MailChimp add-on is simply because that add-on adds the fields it doesn’t like. It’s the question fields were you assign EE fields to merge vars that the above is used on and they an ID of event-question-{base64_chars}.

Please keep in mind I’ve used EE and the MC add-on for almost 4 years now with no issues until the most recent update. So I really don’t want to go down the road of thinking it’s anything else besides the update to the MailchimpEE add-on.

Whilst I understand your point, the problem is that as far as I can see there is nothing strange going on with the MailChimp add-ons fields and we don’t have any JavaScript running on those fields and we can’t reproduce. So this looks like its something other than Event Espresso that loading additional JS on the event editor. Yes, we’ve made changes to the MailChimp add-on recently and it may have worked before that but again, nothing strange or unexpected is happening within the MailChimp add-on and no JS targeting those fields to throw an error with so if something else is choking on those fields the solution for that may well need to be done on whatever is loading that JS.


Jarred

July 16, 2019 at 10:54 pm

Hi Tony or Josh,
I read the above and it’s way over my head. Again, it’s always worked, I haven’t added any new plugins or anything, The only “X” is the update to Mail Chimp add-on. So what is the next step to make sure the product works again like it’s supposed to?


Tony

  • Support Staff

July 17, 2019 at 2:45 am

The above means that just because MailChimp updated and changed how it does things (which is now possibly causing an issue on your site), does not mean the issue lies with the MailChimp update.

It can simply mean that the new method the add-on is using to do what it does trips up some code elsewhere within another plugin/theme.

So what is the next step to make sure the product works again like it’s supposed to?

To be clear, the product already works as its suppose to for many others, which is one of the reasons we believe this is a plugin/theme conflict.

If you can send all of the details requested here:

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

I’ll take a look over your site and try to confirm what the issue is. Generally, we would require a support token to troubleshoot directly on your site, but as we can’t reproduce, it’s unclear what the issue is and only started after the MailChimp update, I’ll at least troubleshoot to see if I can identify it. If it turns out to be a plugin/theme conflict we will not fix it directly and likely advise you to contact said theme/plugin authors.


Jarred

July 17, 2019 at 12:52 pm

login info sent.

I did notice that the order of the questions on the MC addon are in a different order now.

These two screenshots show the different order of the questions as close as I can show you. But basically, after the udpate, the order of the questions was changed so maybe that’s causing it???

This screenshot shows the “NEW ORDER that the plugin did on it’s own” also the letters are bolder now then they use to be.
http://prntscr.com/ogfu1h

And this screenshot shows the “OLD” order that I had it in since the date I created that list many years ago.
http://prntscr.com/ogfwja

The API is still pulling the info correct to Mailchimp, but do u think the different order could be making that question error pop?


Jarred

July 17, 2019 at 12:53 pm

also when you do login the list we use on events that people pay for tickets is “AR students” (((thats abbreviated but u will figure it out when u see “AR Students” as the list we use for the API questions.


Josh

  • Support Staff

July 17, 2019 at 1:08 pm

Hi Jarred,

If you can include FTP credentials with the form we may apply a fix to your site.


Jarred

July 17, 2019 at 1:41 pm

okay I sent proper info thanks.


Josh

  • Support Staff

July 17, 2019 at 1:58 pm

Thanks, I applied a fix that Tony put together for the current MailChimp add-on. The text editor will work now with the MailChimp add-on activated.


Jarred

July 17, 2019 at 2:05 pm

Awesome, thanks Josh and Tony. I just tested and it worked great.

Do I need to save any code or files to apply in the same spot before doing next update? Or is it the type of code that will stay there forever even after new updates.


Tony

  • Support Staff

July 18, 2019 at 3:38 am

Hi Jarred,

Just to update you on what happened above.

Once we had access to the site and set CONCATENATE_SCRIPTS to false it was obvious that the error was from an EE core JS file being loaded by the MailChimp add-on in the admin when it shouldn’t be, so we basically just prevented that file from loading. The script in question only loads when you have required question in your MailChimp merge vars.

With regards to updates, the patch applied to the MailChimp add-on on your site is not permanent. However, the next update to that add-on will include either the same fix or something similar to prevent the issue in hand so you don’t need to do anything but update the add-on when it is available.


Jarred

July 18, 2019 at 8:27 pm

Perfect. That’s all I needed so I’ll mark as resolved if possible. It works great now. Thanks, guys for your help.

Viewing 21 reply threads

The support post ‘Text Editor Not working when Edit 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