Support

Home Forums Event Espresso Premium A lot of errors on edit event pages after moving to new hosting

A lot of errors on edit event pages after moving to new hosting

Posted: November 23, 2019 at 2:15 am

Viewing 6 reply threads


Kerry@novalda.com

November 23, 2019 at 2:15 am

We are just ready go live with this events system – today we moved the site to a new server and I am now getting a lot of error messages on the event setup pages:

Warning: call_user_func_array expects parameter 1 to be a valid callback, function ‘disable-emojicons_tinymce’ not found or invalid function name….

Warning: array_unique() expects parameter 2 to be array, null given in …

Warning: array_search() expects parameter 2 to be array, null given in…

Warning: in_array() expects parameter 2 to be array, null given in…

Warning: implode(): invalid arguments passed in

all in the wp-includes/class-wp-editor.php file


Tony

  • Support Staff

November 25, 2019 at 2:57 am

Hi there,

It sounds like someone wasn’t moved/copied to the new server.

Warning: call_user_func_array expects parameter 1 to be a valid callback, function ‘disable-emojicons_tinymce’ not found or invalid function name….

Event Espresso doesn’t have a disable-emojicons_tinymce function, it looks like someone has added some code to the site to disable Emoji’s in the editor and apparently the function used is now missing on the ‘new’ site.

I did a quick Google search for ‘disable-emojicons_tinymce’ and this is the first article found:

https://kinsta.com/knowledgebase/disable-emojis-wordpress/

That references the above function so was something like that added to the site?

Warning: array_unique() expects parameter 2 to be array, null given in …
Warning: array_search() expects parameter 2 to be array, null given in…
Warning: in_array() expects parameter 2 to be array, null given in…
Warning: implode(): invalid arguments passed in
all in the wp-includes/class-wp-editor.php file

Without knowing the line numbers to see what code is actually running for those errors it’s hard to know what the problem is, but it’s possibly linked to the first error.

The first step I would take is to confirm that all of the files were copied from the original server to the new one, then find where ‘disable-emojicons_tinymce` has been added to the site (my guess is the themes functions.php file but it could also be ain a plugin) and confirm that whatever it is referencing was actually moved over.


Kerry@novalda.com

November 25, 2019 at 2:50 pm

Thank you for this. I have replaced the EE plugin files, the Divi files, and the wordpress files. I haven’t disabled any emojis, so I’m guessing this is something in the Divi theme code? I didn’t have the errors showing on the old site before we moved it, but it may just have been the the error viewing was turned off.

I’m not a coder so I don’t think I should start messing with Divi’s code. I haven’t added any plugins that have anything to do with emojis – we have Bloom, Duplicate Post, Enable Media Replace, Google Analytics by MonsterInsights, The SiteGround Optimizer and Yoast SEO, along with the various EE plugins.

My host was also trying to help with this, they just said it was something to do with the plugin, and they disabled the error view so I can no longer see them. I assume it won’t affect the functionality of the events system?

Thanks!


Kerry@novalda.com

November 25, 2019 at 2:53 pm

Also, you mentioned the line numbers – I can send you a screen shot of the errors before display errors was turned off if that helps – I did copy them first. The full text was as follows:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'disable_emojicons_tinymce' not found or invalid function name in /home/customer/www/novalda.com/public_html/wp-includes/class-wp-hook.php on line 288

Warning: array_unique() expects parameter 1 to be array, null given in /home/customer/www/novalda.com/public_html/wp-includes/class-wp-editor.php on line 439

Warning: array_search() expects parameter 2 to be array, null given in /home/customer/www/novalda.com/public_html/wp-includes/class-wp-editor.php on line 441

Warning: implode(): Invalid arguments passed in /home/customer/www/novalda.com/public_html/wp-includes/class-wp-editor.php on line 530


Tony

  • Support Staff

November 26, 2019 at 3:18 am

No need for screenshots, the above works fine and yeah, all of those relate to the disable_emojicons_tinymce error.

My host was also trying to help with this, they just said it was something to do with the plugin, and they disabled the error view so I can no longer see them. I assume it won’t affect the functionality of the events system?

Just to clarify, the above is not from Event Espresso, we don’t have any code relating to disable_emojicons_tinymce within core or any add-on. Something is adding a function to the tiny_mce_plugins hook but that function then isn’t available to run when it comes to it and you get the above errors.

Hiding the errors won’t prevent registrations etc but it may affect the event editor when you try to edit the event description.

Does the text editor work when you edit an event?


Kerry@novalda.com

November 26, 2019 at 12:24 pm

Yes it does.


Josh

  • Support Staff

November 26, 2019 at 3:01 pm

The PHP warnings are likely more of a nuisance than anything else, but ideally the errant code should be removed. The code could be loading from the /wp-content/mu-plugins folder so you could check in there. It’s not likely that the code is coming from your theme if the theme files haven’t been edited.

Viewing 6 reply threads

The support post ‘A lot of errors on edit event pages after moving to new hosting’ 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