User modules don't display menus
- Status
- Closed
- Subject
- User modules don't display menus
- Version
- 2.x
- Category
- Error
- Feature
- Menu
Modules - Resolution status
- Invalid
- Submitted by
- mijames
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
I upgraded a TW 1.9.1 installation to 2.3 (I did an upgrade from 1.9.1 to 1.9.11 first, and then immediately did the upgrade to 2.3).
After the upgrade completed successfully, I noticed that the user modules I had were empty. I could see the title and the box, but no content (which were user menus).
To make a long story short, I found that the problem was the templates/tiki-user_menu.tpl template was not rendering anything. I noticed that there was also a tiki-usermenu.tpl template that rendered a list of menus for the admin pages. I tried renaming the tiki-user_menu.tpl file to tiki-user_menu2.tpl and changing line 34 of the lib/smarty_tiki/function.menu.php file to:
$tpl = 'tiki-user_menu2.tpl';
That fixed the problem.
Maybe there's some sort of name collision with tiki-usermenu.tpl when Smarty tries rendering tiki-user_menu.tpl. I didn't see any PHP errors when it wasn't working. Yes, I did try clearing TikiWiki's caches and the browser's cache and it didn't work.
- Solution
Rename templates/tiki-user_menu.tpl to something else (like tiki-user_menu2.tpl) and change line 34 (the only line inside the else block) to:
$tpl = 'tiki-user_menu2.tpl'; // or whatever you renamed the tiki-user_menu.tpl file to
- Workaround
- Importance
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 2390
- Created
- Tuesday 31 March, 2009 20:55:54 UTC
by Unknown - LastModif
- Monday 25 May, 2026 18:30:18 UTC