Support

Home Forums Event Espresso Premium Error message after site migration

Error message after site migration

Posted: April 19, 2018 at 5:19 am


Gail DeLuca

April 19, 2018 at 5:19 am

We just moved hosting providers and are now seeing this error message: call_user_func_array() expects parameter 1 to be a valid callback, function ‘espresso_migrate_atos_admin_notice’ not found or invalid function name in /home/…/wp-includes/class-wp-hook.php on line 286

Cananyone tell me what to do with the functions.php or the class-wp-hook.php files. Many thanks.

  • This topic was modified 6 years ago by  Josh. Reason: moved to Premium forum


Josh

  • Support Staff

April 19, 2018 at 7:54 am

Hi Gail,

The error message actually indicates that some files from within the Event Espresso plugin did not get transferred over to the new host. You can reinstall a fresh copy of Event Espresso 3 by following these steps:

1) Download the plugin from your account page. You’ll leave it zipped.
2) Deactivate and delete the Event Espresso plugin from your site’s WordPress dashboard’s plugins page. You will not lose data when you delete the plugin.
​3) Upload the new fresh copy of the plugin to your site via Dashboard → Plugins → Add New.
4) Activate the plugin.


Gail DeLuca

April 19, 2018 at 8:25 am

Thanks Josh – i did this, still got the warning! Should I have deleted the calendar add-on too and re loaded that?


Josh

  • Support Staff

April 19, 2018 at 8:44 am

No the calendar add-on doesn’t have code related to the error message. Can you try going to the Event Espresso > Payments page? That may reset the setting it’s trying to load.


Gail DeLuca

April 19, 2018 at 8:58 am

Went to payments page and then out again. “Updated” as in saved, the current payment settings. Also made slight change to address under EE general settings and saved that. Warnings till there : (


Josh

  • Support Staff

April 19, 2018 at 10:13 am

I could share with you how to get rid of the warning, but I’m afraid that would not fix the underlying issue that seems to be happening. Can you (or the individual that did the migrating) check and make sure that the server has the permissions to access
event-espresso/gateways/ directory and the
event-espresso/gateways/gateways/payment_gateways.phppayment_gateways.php file?

If that’s been confirmed that it does have the correct permissions, then you can go to yoursite.com/wp-admin/options.php and set the
espresso_atos_migration option to 1, the click the Save Changes button.

https://slack-files.com/T02SY781D-FA9UGRJ85-34b89d10da


Gail DeLuca

April 19, 2018 at 10:44 am

event-espresso/gateways/ directory has permissions set to 0755

event-espresso/gateways/payment_gateways.php file is set to 0644

there is also a PaymentGateway.php also set to 0644

can you advise what these should be set to is this is not correct. Many thanks for your help.


Gail DeLuca

April 19, 2018 at 1:41 pm

Hi Josh – I’ve been paying with permissions but cannot now find what you describe in the yoursite.com/wp-admin/options.php

there are no references in this php file to espresso and I see nothing that looks like your screen shot. Am I in the wrong place ?


Josh

  • Support Staff

April 19, 2018 at 3:50 pm

Yes because your.site.com/wp-admin/options.php is a page on your website. You’ll type that URL into your site’s address bar to get that that special “hidden” master settings page.


Gail DeLuca

April 20, 2018 at 6:44 am

Hmm – did’nt know that was possible – fraid I just get a 404 error on that one !


Josh

  • Support Staff

April 20, 2018 at 9:47 am

You can double check the entered URL because the options.php is a real route on your website. If you get a 404 that’s likely because there was a typo in the URL.


Gail DeLuca

April 20, 2018 at 2:01 pm

So Josh appears I might have more than one issue. I was able to use the URL on a couple of other sites and I can see those All Settings pages, I cannot get to that page on WhiteFoxBeads. However, while I was digging on the old server and reloading the options file from the previous host, I found an error log that shows this warning has been ongoing with different line numbers since:

[20-Mar-2015 09:26:41 America/New_York] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘espresso_migrate_atos_admin_notice’ not found or invalid function name in /home1/whitefo3/public_html/wp-includes/plugin.php on line 496

So I’m thinking
A) it’s not something to worry about as the site and EE have been working well for us for a number of years both before and after this error started.

B) That somehow the warning was hidden on the old host and is showing in the dashboard now only because of the move

Can you just tell me how to get rid of it and I’ll stop worrying about and I’ll stop bugging you : )


Josh

  • Support Staff

April 20, 2018 at 2:18 pm

I did just tell you how to get rid of it:

You can go to yoursite.com/wp-admin/options.php and set the
espresso_atos_migration option to 1, the click the Save Changes button.

Since something on your site is restricting access to that page (possibly a security plugin), here’s a revised set of instructions:

Install the Health Check plugin, then go to WP → Dashboard → Heath Check → Troubleshooting. There you’ll Enable Troubleshooting Mode. Then go to whitefoxbeads.com/wp-admin/options.php and set the
espresso_atos_migration option to 1, the click the Save Changes button. Then you disable Troubleshooting mode.

With regards to the PHP warnings being displayed instead of being logged only, that’s a problem with your new host. By default some hosts will turn on PHP error display with the assumption that the developer will turn off PHP error display when the site development is finished and the site goes live. You can contact your host and ask them to turn off PHP error display. Alternatively you can add this line of code to your site’s wp-config.php file:

@ini_set( 'display_errors', 0 );


Gail DeLuca

April 20, 2018 at 3:23 pm

Thank you for this exhausting thread, I really appreciate you. Have a great weekend.

The support post ‘Error message after site migration’ 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