Rebuilding the Drupal Navigation Menu (Automatically)

The following steps will get you a completely rebuilt Navigation menu.

  1. Clear your cache
  2. Backup your database
  3. In the database, remove any records in {menu_links} where menu_name = navigation
  4. Create a file somewhere in your site’s directory structure
  5. Add this code to that file and then save it
  6. Tell Drupal to ignore this file usingĀ this method.
  7. Browse to the file in your web browser (it will run quickly, with no indication of completion). Wait for the page to stop loading, then check your navigation menu settings in the admin.
  8. When finished, delete or make-inaccessible the PHP file you just made!
Tagged with: , , ,
Posted in Development

Leave a Reply

Your email address will not be published. Required fields are marked *

*