I've inherited a Drupal 7 site from someone and have come across a really irritating bug that I'm hoping someone can help with, for some reason if I empty the Drupal cache all the left hand menus on the site disappear. The menu is put together using menu blocks and all the settings for the block and the menu itself look correct i.e. the block is in the correct region, the menu block is attached to the correct menu and the menu has all the pages on the site in it.
In the backup of the database the cache_menu table has about 40,000 entries, if I clear it and click around the site it never goes above 40 so for whatever reason it's just not re-generating the menus.
Does anyone have any ideas what might be happening and how I can fix it?
Are you clearing the cache_menu entries manually? I'd recommend using drush—
drush cc all
Or go to settings/performance and clear the cache.
Managed to fix this, turns out there's a bug in the menu block module (I was using 2.2) so upgrading it fixed the issue.
Related
if anyone could help that would be much appricated. in the elementor editor it is all aligned and fine. but as soon as i update and view live version the menu looks like this.
when i hover over policies it appears like this. i have not had an issue before as it has always aligned under the dropdown in the correct position. also the text is aligned to the right and will not change to the left.
Do you have a link to the live page to check the code?
What do you mean with "live view" - are you working with some kind of staging/deployment tool?
Maybe it's a cache problem of either your browser or the server, did you try to clear them? Did you try to view the page still logged into WordPress and not logged in, does that make a difference?
-In the past i could hover over any item in the dashboard i.e. settings and its inner elements would show such as general, reading, writing.
Now i need to click on settings > page navigates to settings > now i can see the elements
-In plugins i cant navigate to other tabs, whenever i click on the tabs nothing happens. Feels broken.
-when i go to appearance > editor all my php and css files and such are expanded and there is no way to collapse as clicking on the arrows does nothing. I have to scroll the whole time to find a file.
-whenever i check page revisions it shows a blank page.
Other admins of my website dont have any of these problems i listed!
Has anyone had this before? Thanks in advance!
You mentioned others aren't having the same problem. That would indicate it has to do with something on your side of things.
Try another web browser.
Try another computer.
What is your network speed? You can do a speed test.
I'm seeing now (2) navigation menus on my site when I upgraded my drupal with latest core update (Drupal 7 latest).
Shown below:
This is showing the same links, just the first in nice styling, the other in a plain html dropdown (the undesired one)
I am using the drupal classic theme
I'm search in the code, through numerous menus, etc. to try to remove it and nothing seems to give.
What is causing this? Any help is greatly appreciated.
Thanks.
Go to Appearance, and check if you have proper settings for your menu: for odd reasons they might come up in your active theme...
I am having a specific issue with my wordpress site that I'm trying to resolve.
The site is at www.dontforgetthebubbles.com
As you will see the homepage looks fine.
But many posts are not displaying correctly. As an example:
http://www.dontforgetthebubbles.com/2013/08/cradle-cap/#
The menu columns are all showing simultaneously (hover over 'Clinical' and compare this to the home page to see what I mean)
The 'toggle' button is not working (see http://www.dontforgetthebubbles.com/2013/07/intubating-with-stridor/ for an example of a post where it does work correctly).
I think the issues are related to more recent posts (and the older posts are ok) but it is affecting around 15 posts.
Could anyone suggest what my be causing this?
Thanks
You must have a CSS or plugin causing conflict. I can see that you're loading many stylesheets. Probably have a lot of plugins? Try disabling them one by one, beginning with the most recently installed to narrow it down.
Check all the Javascript files. Looks like some are missing on the pages with the problems. For example, superfish.js or sprite.js. My guess is one of them handles the dynamic menu features with is why <ul class="sub-menu">...</ul> under Clinical doesn't have by default the display:none property unlike your home page.
I am using Drupal6.
I have defined a menu in Site Building -> Menus called "sidebar link". Then I my code, I build that menu like "menu_tree('menu-sidebar-links');".
If I am on main page or sub page then I want that menu to expand. It WORKS.
HOWEVER, often it diappears. Menu stops expanding. And to fix that, I have to clear cache in Drupal and then it starts working again.
I found a potential fix at Drupal 6 fails to build menu router and links
But in this solution, that variable is only set when I run update. I tried it and it works. But on next load, it doesn't rebuild. So, somehow that variable is getting set to FALSE again. But I want it to rebuild every time, maybe just for one menu and not all (I have 3 menus and those are working fine as those just links and not child menus).
Can someone please suggest a fix?
PS: I am unable to provide a link because this code is being used in site redesign and its only accessible in internal network until it goes live.
THanks