Loading...
 
Skip to main content

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
(0)
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+
Demonstrate Bug (older Tiki versions)
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


Show PHP error messages