继续Drupal分享精神 QQ群:107748121 站长QQ:2275288328 skype: hellodrupal【drupal交流+drupal 建站+theme制作】
登录 注册

Drupal The requested page could not be found 简单的修复方法

Drupal The requested page could not be found 简单的修复方法,然后找到这样的简单解决方法解决了问题。
找到include/menu.inc文件里的代码如下

<?php
/**
* Execute the page callback associated with the current path
*/
function menu_execute_active_handler($path = NULL) {
  if (
_menu_site_is_offline()) {
    return
MENU_SITE_OFFLINE;
  }
 
// Rebuild if we know it's needed, or if the menu masks are missing which
  // occurs rarely, likely due to a race condition of multiple rebuilds.
// if (variable_get('menu_rebuild_needed', FALSE) || !variable_get('menu_masks', array())) {
   
menu_rebuild();//只保留这个函数。重新构建menu的函数
  //}//注销
?>

评论

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 自动断行和分段。
  • You can use BBCode tags in the text.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.