Loading...
 
Skip to main content

menu in tiki-top_bar.tpl with no displayable options (user permissions won't allow) halts tiki.

Status
Closed
Subject
menu in tiki-top_bar.tpl with no displayable options (user permissions won't allow) halts tiki.
Version
1.9.x
Category
  • Error
Feature
Menu
Site Identity
Resolution status
Fixed or Solved
Submitted by
jake
Volunteered to solve
Mose
Lastmod by
Marc Laporte
Rating
(0)
Description

When "site menu bar" is selected under "site identity features", and a menu is specified in the "tiki-top_bar.tpl" file, as below:


{if $feature_phplayers eq 'y' and $feature_siteidentity eq 'y' and $feature_sitemenu eq 'y'}
<br><br>
{phplayers id=44 type=horiz}
{/if}


If the menu does not have any options that are permitted by the current user (no sections to display - prior to loggin in to site, for example), the system crashes because of an empty string.

To recover it is necessary to manually edit the tiki database to add a menu section that has no permission requirements.

In the example above, menu id 44 has no sections or options that are viewable by unregistered users. When the site is entered, tiki halts because of an empty string, apparently because there is no menu selection possible for the user (not logged in yet.)

Solution

make the appropriate code allow the null string produced by the menu.

workaround - leave a menu option that goes nowhere and has no permission requirement, so it will be displayed for any user, even an unregistered user.

fix details:
http://themes.tikiwiki.org/tiki-view_forum_thread.php?forumId=2&comments_parentId=134

Importance
3
Priority
15
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
544
Created
Wednesday 12 April, 2006 18:49:26 UTC
by Unknown
LastModif
Tuesday 11 July, 2006 21:35:12 UTC


Show PHP error messages