I'm noticing that some sites fail to report their modules and instead return a 301 or 302 page redirect.
This is most probably caused by another module, that hooks in before system_status_menu()
/**
* Implements hook_menu().
*/
function system_status_menu() {
$items = array();
$items['admin/reports/system_status'] = array(
'title' => 'System Status',
'description' => 'Output of the System status module',
'access callback' => 'system_status_access_callback',
'access arguments' => array(3),
'page callback' => 'system_status_status_page',
'file' => 'system_status_status.page.inc',
'type' => MENU_CALLBACK,
);
return $items;
}The question is 1) what kind of module/hook/callback could cause this, 2) how can we prevent this from happening.
Comments
Comment #1
sam hermans commentedComment #2
sam hermans commentedComment #3
erok415 commentedHi Sam,
Is it possible that your menu URL is two close to another URL produced by another popular module? Have you thought of changing the URL callback to "admin/reports/drupal_status" and testing. Everything I've seen in relation to hook_menu seems right. The only oddity seems to be the URL.
Erik
Comment #4
sam hermans commented