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的函数
//}//注销
?>
评论
发表新评论