Loading...
 
Skip to main content

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
(0)
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+
Demonstrate Bug (older Tiki versions)
Ticket ID
2390
Created
Tuesday 31 March, 2009 20:55:54 UTC
by Unknown
LastModif
Monday 25 May, 2026 18:30:18 UTC


Show PHP error messages