Hi! I have a problem with a D6 site and Views 3.
When saving any view (visiting the edit page and pressing Save or crating a new one is enough) two menus on the site disappear. But they only disappear on the front page. The front page is using a custom tpl.php file with additional regions. But the menues that disappear are only in the header and footer region wich are the same as on every other page. I haven't found anything to bring the menus back, except for replacing the menu database tables with those from a backup. So there must be something changed in the menues tables when saving a view (other blocks in these regions still work).
This is happening since I changed the menu entry of a view that was the sites front page a while back. It was replaced with the new front page, now they decided that the old front page should be accessible through a menu item in an other menu. Since I updated the menu entry of this view, the view's page isn't accessible anyore (Page not found) and the menus on the new front page disappear. Unfortunately there were other things changed at the same time so that we don't want to restore a complete backup (which still wouldn't let do what we want to do, making the old front page's view accessible again).
I hope I could explain the problem understandable. Does anyone have an idea what could have caused this and how to fix it? I'd appreciate any hint.
On Mon, Apr 23, 2012 at 3:03 AM, steeph wrote:
Hi! I have a problem with a D6 site and Views 3.
--8<--
I hope I could explain the problem understandable. Does anyone have an idea what could have caused this and how to fix it? I'd appreciate any hint.
What happens if you clear the cache via admin/settings/performance after you Save the view?
Thanks for your reply.
On 04/23/2012 01:43 PM, Earnie Boyd wrote:
What happens if you clear the cache via admin/settings/performance after you Save the view?
The menus are still gone after clearing cache on the performance page or with admin menu.
Maybe I should also state that this site is using a large number of contributed modules (~90). I'm not sure how likely it is that another module is producing the problem.
On Mon, Apr 23, 2012 at 8:30 AM, steeph ml@mixblog23.de wrote:
Thanks for your reply.
On 04/23/2012 01:43 PM, Earnie Boyd wrote:
What happens if you clear the cache via admin/settings/performance after you Save the view?
The menus are still gone after clearing cache on the performance page or with admin menu.
Maybe I should also state that this site is using a large number of contributed modules (~90). I'm not sure how likely it is that another module is producing the problem.
Until you test it to not be about 98% sure. So I assume this is a production site and you'll need to copy the data to a dev site to do this. After the copy, begin by disabling all modules that provide a hook into the views module to see if the issue still exists.
On 04/23/2012 03:50 PM, Earnie Boyd wrote:
On Mon, Apr 23, 2012 at 8:30 AM, steephml@mixblog23.de wrote:
Maybe I should also state that this site is using a large number of contributed modules (~90). I'm not sure how likely it is that another module is producing the problem.
Until you test it to not be about 98% sure. So I assume this is a production site and you'll need to copy the data to a dev site to do this. After the copy, begin by disabling all modules that provide a hook into the views module to see if the issue still exists.
Thanks, I already made a current copy and started to disable modules. I'll try with less modules later.
First guess would be that there are duplicate names. Views, coming after Menu, would clobber the original.
Now, a menu entry for the front page is not necessary, but if you must have one, use the "<front>" page address so that it follows the system setting for front page.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: steeph When saving any view (visiting the edit page and pressing Save or crating a new one is enough) two menus on the site disappear. But they only disappear on the front page. The front page is using a custom tpl.php file with additional regions. But the menues that disappear are only in the header and footer region wich are the same as on every other page. I haven't found anything to bring the menus back, except for replacing the menu database tables with those from a backup. So there must be something changed in the menues tables when saving a view (other blocks in these regions still work).
This is happening since I changed the menu entry of a view that was the sites front page a while back. It was replaced with the new front page, now they decided that the old front page should be accessible through a menu item in an other menu. Since I updated the menu entry of this view, the view's page isn't accessible anyore (Page not found) and the menus on the new front page disappear. Unfortunately there were other things changed at the same time so that we don't want to restore a complete backup (which still wouldn't let do what we want to do, making the old front page's view accessible again).
I hope I could explain the problem understandable. Does anyone have an idea what could have caused this and how to fix it? I'd appreciate any hint. -- [ Drupal support list | http://lists.drupal.org/ ]
On 04/23/2012 04:18 PM, Ms. Nancy Wichmann wrote:
First guess would be that there are duplicate names. Views, coming after Menu, would clobber the original.
Thanks. Can I simply see in the database if there is a duplicate and delete it? Because the view does not have a menu entry now on the edit page, neither there is one in the menus.
Now, a menu entry for the front page is not necessary, but if you must have one, use the "<front>" page address so that it follows the system setting for front page.
I don't have a menu entry for the front page. But I need one for the view that _was_ the front page. When I edited the view and added the menu entry is when it broke.
I solved this. It was actually quite simple. When the new front page with additional regions was built, the actual page content was excluded from the tpl.php file. So the the old front page view was also the new front page, it just wasn't displayed. So when I edited the path of the views page, the front page path didn't exist anymore and the menus weren't displayed on that page. I can explain it better if anyone would be interested.
Thanks for pushing me to have a second, deeper look into the database.