Error message
[Yesterday 5:15 PM] Daniel Tucker
I am getting this error message after restoring backup from another server. Please help.
[Wed May 26 00:07:09.034827 2021] [php7:error] [pid 87] [client 10.2.7.0:53856] PHP Fatal error: Uncaught Error: Call to undefined function correct_url() in /var/www/html/wp-content/themes/betheme/functions.php:12\n Stack trace:\n #0 /var/www/html/wp-settings.php(528): include()\n #1 /var/www/html/wp-config.php(96): require_once('/var/www/html/w...')\n #2 /var/www/html/wp-load.php(37): require_once('/var/www/html/w...')\n #3 /var/www/html/wp-admin/admin-ajax.php(22): require_once('/var/www/html/w...')\n #4 {main}\n thrown in /var/www/html/wp-content/themes/betheme/functions.php on line 12, referer: https://siteName/wp-admin/admin.php?page=ai1wm_import 10.2.7.0 - - [26/May/2021:00:07:08 +0000] "GET /wp-admin/admin-ajax.php?action=ai1wm_status&ai1wm_import=1&secret_key=VWyYC5uyZqFl&_=1621981743290 HTTP/1.1" 500 484 "https://siteName/wp-admin/admin.php?page=ai1wm_import" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
Comments
Hello,
Where does this error appear? Can you send me a screenshot showing it, please?
Please, turn off all of the plugins and check if this error still appears.
Moreover, if you are using a child theme, switch to parent, and recheck it.
Thanks
T
the browser returns an error 500
The 500 errors are related to the server, so it does not seem to be a Betheme issue.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses
In that case, you should contact your hosting provider, and after looking at the logs, he should be able to help you.
Best regards
Thank you for the reply. Did you have a chance to check out the attached image from server logs? It shows the issues with Betheme.
Can you tell me how did you restore this backup?
We highly recommend using the Duplicator plugin because we often used it, and we never had problems with it. Can you try to use it, please?
https://wordpress.org/plugins/duplicator/
Thanks