Wiki page-blocking error when PluginImg using the randomGalleryId parameter finds a non-image file
- Status
- Open
- Subject
- Wiki page-blocking error when PluginImg using the randomGalleryId parameter finds a non-image file
- Version
- 27.x
- Category
- Error
- Feature
- Wiki Plugin (extends basic syntax)
- Resolution status
- New
- Submitted by
- Gary Cunningham-Lee
- Lastmod by
- Gary Cunningham-Lee
- Rating
- Description
When PluginImg is using the randomGalleryId parameter and a random file is fetched that isn't an image, the wiki page doesn't load at all, only this message:
imagesx(): Argument #1 ($image) must be of type GdImage, string given. It would be nice if, instead, no image loaded and also no message. Ideally, the plugin would skip non-image files until it succeeds in getting an image but, if not this, just load the wiki page with no image. The plugin usually gets an image on the next page load.Of course the best prevention is to make sure there are no non-image files in the selected gallery, but this may not always happen.
- Importance
- 5
- Easy to solve?
- 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
- 8442
- Created
- Tuesday 27 June, 2023 10:33:38 UTC
by Gary Cunningham-Lee - LastModif
- Tuesday 27 June, 2023 10:33:38 UTC