使用drupal6有时会碰到任何页面都“page not found”时的解决办法

这几天为公司开发新网页,使用了时下较新的drupal6.x,在我提交一个内容后,是由于公司网络慢还是我的操作失误,我的主页除了几条提示和左 边页面的一个包含‘管理’和‘登出’的菜单树外,其他每个链接打开都是‘页面无法找到’(page not found),实在摸不着头脑,在百度上搜了半天,没什么结论,我的同事就把drupal6从新安装了,问题的确解决,但是花费了大量时间。

去google时找到了老外的一个解决办法,原文如下:

If Drupal 6 runs into a fatal problem while calling hook_menu(), your site may get into a state where all page views (the front page, the administration page, the modules page, everything) will give a 404/"Page not found"/"The requested page could not be found" error.

You can revive your site by fixing the error that caused the menu rebuild failure and then loading /update.php and completing the upgrade process (even if there are no updates available for any of the modules on your site).

意思大概是你调用hook_menu(), 时和缓存发生冲突错误还是怎么的引起的,解决办法非常简单
你的drupal根目录下有个update.php,通过外部url来访问这个文件,比如我的http://yf.dms.com/update.php,打开后按照上面的提示点击‘下一步’然后点update即可,完成后再去看看你的管理页面,一切恢复正常了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值