Hello,

I have installed menu per role and set two primary menu items visible to authenticated and administrators only. When I log off one of the two menus disappear but one is still visible on the start page and the start page is totally distorted (as though the css file was not read completely).

Anybody else had the same issue? I am using the Nitobe theme.

This module is really a "must" (should be in core) and I hope somebody can help me so that I can apply the module.

Cheers,
Roger

Comments

If you are using the cache feature(s), you may want to try to clear your cache and see whether this still happens.

Otherwise, I do not think that the theme itself is an issue. But you could also try with another theme such as Garland to see whether the problem persists.

Thank you.
Alexis Wilke

Hello Alexis,

I have tried to empty the cache already but the problem persists. I haven't tried to use another theme yet but even if another theme would work I don't like to change my current theme.

Am I the only one with this problem? Strange.

Regards
Roger

Please, try with Garland really quick and let me know the result. You can then switch back to your normal theme. That way I know whether the theme is the cause of the problem.

Looking at that Nitro-thingy theme, there are several .php files that add code to the site so it could have a side effect.

Thank you.
Alexis Wilke

Hello Alexis,

I tried Garland and the problem disappeared. So it seems to be related to the theme.

What might be helpful to know is also that the problem appears only if one is not logged in (anonymous user). As soon as I log in the problem disappears.

It would be great if you find the cause for this as I think that is a great module and I absolutely would like to use it if possible.

Cheers,
Roger

Militopedia,

Okay. I started to have a look at the Nitobe code. You say that the problems are from the Primary menu. The theme uses the following to format the links of the $primary_links:

<?php
  theme
('links', $primary_links, array('id' => 'topLinks', 'class' => 'grid_16'))
?>

Which is not overloaded and thus would be using the internal theme() function of the menu module (unless you have some other module that has yet another side effect?!).

Btw, could you post a link to your site or is it top-secret? 8-) That way I could have a look at the HTML code and whatever else that would give me a clue. (I'd need you to leave the Menu per Role active, obviously)

Thank you.
Alexis Wilke

Alexis,

Immedeately after I enabled the module I had the problem of a distorted start page. However, when I checked the site on the following morning everything was ok and the module worked perfectly. I have checked it with Firefox, IE6, IE7, Safari and it works now. I don't know what caused the problem at first (it must have been related to this module since I tried it about 3 times at different days to enable the module and every time the start page was distorted. Usually I disabled the module immedeately and didn't notice that after some time the problem dissapears). But it works fine now :-) Thanks for the assistance and patience.

Cheers,
Roger

Status:Active» Fixed

Roger,

There is a site where I tried to turn one the cache and the page was completely broken, it was not just distorted, I would get total garbage. Really strange. Clearing the cache fixed it though. This is the one under "admin/settings/performance". If your cache was turned on there page then maybe that was it.

Thank you.
Alexis Wilke

Alexis,

Yes, indeed my cache was turned on. And I assume that when I left the module enabled over night that the cache was cleared in the meantime and the problem disappeared.

Strange, but if this issue can be fixed by just emptying the cache it's not that critical.

Thanks!

Roger

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.