Smarty icon function returns green question mark images instead of intended icons
- Status
- Open
- Subject
- Smarty icon function returns green question mark images instead of intended icons
- Version
- 18.x
- Category
- Bug
- Feature
- All / Undefined
- Resolution status
- New
- Submitted by
- Philippe Cloutier
- Lastmod by
- Philippe Cloutier
- Rating
- Description
I have seen twice in the last 2 weeks the same bug pattern involving the Smarty icon function. When the global $iconset variable read by the function is not defined as expected, the function may fallback to $params['_id'] = 'green_question'; even if the name parameter was specified, so a green question mark displays instead of the icon supposed to show.
I have seen this:
- On tiki.org, following a report on tikiwiki-devel
- On this show instance
, for at least 3 icons (those for the Modules, Permissions and Plugin approval entries of the Quick admin menu)
This persists until the server cache is cleared. I do not know how to reproduce after.The impact is amplified by improper handling of smarty_function_icon() when it fails to find the requested icon. There should at the minimum be a PHP notice logged, and the question mark image should have a clear label such as "Unknown icon", not "Question".
- On tiki.org, following a report on tikiwiki-devel
- 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
- 6702
- Created
- Thursday 14 June, 2018 18:56:28 UTC
by Philippe Cloutier - LastModif
- Tuesday 19 February, 2019 16:04:03 UTC