I have changed web hosting provider and moved all files with ftp as well as exported/imported the database and adjusted wp-config.
我已经更换了虚拟主机提供商,用ftp移动了所有文件,并导出/导入了数据库,调整了wp-config。
Old web host only supported php version 7 and the new one supports version 8+.
Is there any way to get the website working again? Thanks a lot
旧的web主机只支持php版本7,新的支持版本8+。有什么办法可以让网站重新运行吗?非常感谢
Error message:
错误消息:
Fatal error: Uncaught Error: Call to undefined function wp_magic_quotes() in /home/.sites/62/site6733267/web/wp-settings.php:333 Stack trace: #0 /home/.sites/62/site6733267/web/wp-config.php(115): require_once() #1 /home/.sites/62/site6733267/web/wp-load.php(37): require_once('/home/.sites/62...') #2 /home/.sites/62/site6733267/web/wp-admin/admin.php(31): require_once('/home/.sites/62...') #3 /home/.sites/62/site6733267/web/wp-admin/index.php(10): require_once('/home/.sites/62...') #4 {main} thrown in /home/.sites/62/site6733267/web/wp-settings.php on line 333
i saw that the function wp_magic_quotes() doesn't work anymore with php version 8.
我看到函数wp_Magic_Quotes()在php版本8中不再起作用。
更多回答
For best results, migrate your site from one host to another using a migration plugin. I like Duplicator, but there are others.
为了获得最佳效果,请使用迁移插件将您的站点从一个主机迁移到另一个主机。我喜欢复印机,但还有其他的复印机。
优秀答案推荐
Just saw your comment saying wp_magic_quotes doesn't work with PHP8.
You could do this temporarily:
我刚看到你的评论说wp_Magic_Quotes不适用于PHP8。您可以临时执行此操作:
function wp_magic_quotes() {
return true;
}
You might need to edit your WP version to one that is compatible with PHP8, it looks like some functions were deprecated / removed with PHP8. Or, go back to PHP7 on your new host somehow?
您可能需要编辑您的可湿性粉剂版本,以兼容PHP8,它看起来像一些功能已弃用/删除与PHP8。或者,在你的新主机上以某种方式回到PHP7?
更多回答
我是一名优秀的程序员,十分优秀!