Hi,
after an update we did on an instance ( using a simple mdl that installs a new module ) the top menu bar is completely empty. Could this been happening due to file permissions on the server? What files are used to build up the main menu?
Hi,
after an update we did on an instance ( using a simple mdl that installs a new module ) the top menu bar is completely empty. Could this been happening due to file permissions on the server? What files are used to build up the main menu?
My panacea after every upgrade is to go to the sugar root and execute each of the following:
sudo chown -R apache:apache *
sudo find . -type d -exec chmod 775 {} \;
sudo find . -type f -exec chmod 664 {} \;
The first sets the user to apache group apache for everything from the current directory (sugar root) down recursively.
The second sets all directory permissions to 775, again recursively
The thirds sets all file permissions to 664, again recursively.
You can find a good deal of information about Mega Menu and its files here:
FrancescaS
thanks for the commands. What does the {} \; on the end of the chmod commands mean?
The {} is the output of the find, so it runs the chmod on whatever the find finds.
The \; closes the command.
So,
sudo find . -type d -exec chmod 775 {} \;
is basically "find things of type directory", "execute chmod 775 on what you found and nothing more".
I suppose you could have multiple commands to execute on what you found and the \; would just indicate the end of your series of commands. Though, personally, I've never used it with more than one at a time.
thanks for the commands! It turned out to be something completely different. Someone at the customer's side changed the visibility of the menu (removed all modules from the menu). Sometimes things are to obvious to look for ;)
ha ha ha! I never would have thought of that myself!