无法重新声明类 WPDB
今天早些时候刚去了我的一个网站,它完全是白屏。它在 Wordpress 上运行。我也去尝试登录登录网址,也是全白的。因此,我继续尝试升级到今天刚刚发布的最新版本的 Wordpress (3.0.4.),当我尝试登录时收到此错误消息。
Fatal error: Cannot redeclare class wpdb in /home/username/domain.tld/blog/wp-includes/wp-db.php on line 53
有人知道如何解决这个问题吗?
Just went to a site of mine earlier today, and it was completely a white screen. It runs on Wordpress. I also went to try and login to the login url, and it was completely white as well. So, I went ahead and tried upgrading to the latest version of Wordpress, which just came out today (3.0.4.), and I'm getting this error message when I try to login.
Fatal error: Cannot redeclare class wpdb in /home/username/domain.tld/blog/wp-includes/wp-db.php on line 53
Does anyone know how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Spencer B. 您好:
不确定为什么会发生这种情况,但您是否尝试过擦除除
/wp-content/
中的文件和中的登录凭据之外的所有文件/wp-config.php
并使用 FTP 替换为 WordPress 3.0.4 中的所有新文件?如果您这样做,它很可能会检测到数据库中任何需要的更改并自行升级。如果仍然出现白屏,您可能需要添加第二个主题,激活它,然后重新激活您要使用的主题。
希望这有帮助。
-麦克风
Hi Spencer B.:
Not sure why this is happening but have you tried wiping all files except for the files in
/wp-content/
and the login credentials in/wp-config.php
and replace with all new files from WordPress 3.0.4 using FTP? If you do this chances are it will detect any needed changes in your database and upgrade itself.If you still get a white screen you might need to add a second theme, activate it and then reactivate the theme you want to use.
Hope this helps.
-Mike