Create a new RandomImage using default settings.
aka create a folder in images which contains some jpg files.
configure the module to display a random image from this folder.
When rendering the page displays error
Images are displayed at random from the chosen directory on page refresh
Error: 0 - Using $this when not in object context
Joomla 3.8.8
Having looked at the code the default.php file has been modified between 3.8.7 and 3.8.8 as follows
folder . '/' . $image->name, $image->name, array('width' => $image->width, 'height' => $image->height)); ?>to
folder . '/' . $this->escape($image->name), $this->escape($image->name), array('width' => $image->width, 'height' => $image->height)); ?>Reverting back to the old version appears to correct the issue. However, I am unclear as to the implications of doing this.
Status | New | ⇒ | Duplicate Report |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-05-27 20:16:59 |
Closed_By | ⇒ | Quy |
Duplicate of #20541
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20589