Drupal 6 - Menu disappearing issue - drupal

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

Related

An invisible prompt overlays my wordpress website homepage and wont close on clicking x

I recently had an issue with the host and after it got resolved, a slightly transparent overlay covers my homepage when you click anywhere.
The x button also doesn't work, and the overlay only leaves when you hit escape on the keyboard.
It also doesn't leave when I let it idle.
I can however access other pages if I right-click and open anything in a new tab.
https://regentcollegeabuja.com/
How the homepage reacts to clicks
I've inspected your code, and you have a jquery error. This is coming from swipebox plugin. You can try to fix the issues by following the steps.
1) Update your WordPress core, themes, all plugins after updating test your site from the guest window. Sometimes resolve the issue by this way.
2) Deactivate the plugin and activated it again.
3) Inspect your code, understand the problem and update the JS file.

unable to View a page on my website but can View it in preview through Wordpress

in the hamburger menu of our website, i created a Yoga Video Course Page via wordpress and it was working fine. I looked this morning and can see it in Wordpress and can even edit it and see it on the preview. However when i try to view it on our website th screen appears Black.
Any suggestions would be grateful?
Thank you
Please try to open the inspect element and look if the elements are displayed as required. The issue might be due to several reasons. You need to investigate further and find a solution. Also look at the network tab on inspect element to make sure there are not 500 internal server errors. Also set the wp_debug=true on config.php to provide more error info. Also try to activate another theme and see if the page is being rendered properly.

What can i actually do if my wordpress dashboard is acting up? other admins of my site dont have these problems

-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.

drupal -- Sub Links always appearing expanded

I'm having an issue with my drupal install. All the sublinks are appearing expanded and there is no option to collapse them. This is causing issue with modules (especially the admin menu module) which appears like this whenever loaded.
This also happens for nested menu's in modules like Panels and Views, and in core menu's like the module menu itself, which cannot be collapsed. It is also affecting the way editing rows work, because the drag and drop functionality has been disabled and the row weights now have to be input by value.
Problem Solved. The issue is due to the fact my web host only has PHP 5.2.17 installed. Works perfectly on PHP 5.3+

Drupal 7 - all menus disappear after clearing the cache

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.

Resources