I've deleted the Primary Links menu, just to see how would appear the website without it. But now I want it back... how do I do?

Comments

ultimike’s picture

I've done this before and fixed it by running the following SQL statement on my database:

insert into menu (mid, pid, title, type) values ('2', '0', 'Primary Links', '115');

(this should work for both 4.7 and 5.1)

-mike

dc35’s picture

i tried that and get this in php admin

Error
SQL query:

INSERT INTO menu( mid, pid, title,
TYPE )
VALUES (

'2', '0', 'Primary Links', '115'
)
MySQL said:

#1062 - Duplicate entry '2' for key 1

ultimike’s picture

The mid (menu id) doesn't matter so much - I believe you can change it to anything as long as it isn't a duplicate of another record in the DB. As long as the pid=0 you should be fine.

-mike