Archived topic
Fatal error: Call to undefined function in Contact Form 7
3 replies · Started by Sam on March 18, 2021
Hi Tom/team,
I got a 500 error when importing the "Seller" WooCommerce demo. So I tried to revert the process but now my WP Admin Panel is stuck on the following error. Basically at this point nothing works, every page shows the below error (both on the public site and on WP Admin). You can check it here - appwiki.me
Fatal error: Call to undefined function wp_set_script_translations() in /var/www/html/wp-content/plugins/contact-form-7/includes/block-editor/block-editor.php on line 36
Do you know how it got stuck in this loop? Do I have to reinstall WP completely to fix it? I searched the forum for other "fatal errors" but could not find this example.
Hi Sam,
Looks like it's an error from Contact Form 7.
Do you still have access to the dashboard?
If so can you try removing the plugin?
Let me know :)
I think the issue is that if the demo install fails (in this case due to a server error), the revert process seems to corrupt the entire WordPress repo and leaves it in an unusable state.
To reproduce this, try importing demo https://gpsites.co/merch/ on a host where the PHP file upload limit is set to 2 MB or less. The import will fail - now try reverting WordPress back to the original state. That will trigger this error and leave WP unusable.
If possible please update GP to handle this situation more gracefully.
Hi there,
I don't believe that's the cause.
This error is saying that the function doesn't exist: https://developer.wordpress.org/reference/functions/wp_set_script_translations/
Are you using WordPress 5+?