2

On 404 pages, no user menu is displayed.

I have tryed to use the 404 Navigation module but it does not help.

I also tried this code in template.php, but it doesn't work.

function bartik_user_menu() {
   $items['page-not-found'] = array(
     'title' => '',
     'page callback' => 'bartik_page_not_found',
     'access callback' => TRUE,
   );
   return $items;
 }

 function bartik_page_not_found() {
   drupal_set_title('Page not found');
   $cust_err = "";
   $cust_err = $cust_err . "The requested page " . request_uri() . " could not be found";
   return $cust_err;
 }
3
  • 1
    Drupal cache cleared and hard refresh? – MatthijsG Oct 9 '16 at 15:32
  • I know this and do it every time. It does not help. – ttt Oct 9 '16 at 16:11
  • 1
    404 Navigation module does not work with User menu. Probably it works with regular menu and other ones but not with user menu (I do not know because I have no any other menus on my website). – ttt Oct 9 '16 at 16:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.