0

我通过 FTP 下载了 Wordpress 站点,但无法在 wp-admin、主页...

如果我创建一个 test.html 文件,则显示页面空白。

WP_DEBUG 设置为 TRUE,但不返回错误。

我重命名了主题文件夹和插件文件夹,但没有任何反应,空白页。

如果在 index.php 文件中添加此代码 die(Hello World!); 显示消息,所以,它是对 index.php 的访问。

它只发生在本地主机中,在生产环境中它工作正常。

有什么解决办法吗?

4

2 回答 2

1

You can follow these steps to get started.

  1. Download the wp-content folder from FTP
  2. Export your MySQL database.(You can find DB name from wp-config.php)
  3. install new WordPress on local
  4. replace the wp-content with your downloaded wp-content
  5. Drop all tables of new WordPress and import your downloaded database on local.
  6. update website URL from wp-option table
  7. update table prefix in wp-config.php file

Now your ready to access the live website on local. Once you login the website updates the permalinks. I know this process is long but there is no way you get error.

Happy Migration

于 2021-10-19T16:48:39.267 回答
0

我可以解决这个问题。

问题出在文件 wp-load.php 中,我用另一个版本的 wordpress 替换了这个文件。

于 2021-10-19T13:55:24.137 回答