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
- 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+
-
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
- 544
- Created
- Wednesday 12 April, 2006 18:49:26 UTC
by Unknown - LastModif
- Tuesday 11 July, 2006 21:35:12 UTC