?
avatar keithgrimes
keithgrimes
27 May 2018

Steps to reproduce the issue

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

Expected result

Images are displayed at random from the chosen directory on page refresh

Actual result

Error: 0 - Using $this when not in object context

System information (as much as possible)

Joomla 3.8.8

Additional comments

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.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar keithgrimes keithgrimes - open - 27 May 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 May 2018
avatar joomla-cms-bot joomla-cms-bot - close - 27 May 2018
avatar Quy Quy - change - 27 May 2018
Status New Duplicate Report
Closed_Date 0000-00-00 00:00:00 2018-05-27 20:16:59
Closed_By Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 27 May 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20589

avatar Quy
Quy - comment - 27 May 2018

Duplicate of #20541


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20589.

Add a Comment

Login with GitHub to post a comment