3.8.8 update issues with random image module

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
wolverton
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Aug 10, 2007 5:00 am

3.8.8 update issues with random image module

Post by wolverton » Tue May 22, 2018 2:58 pm

On two sites running Joomla 3.8.7 that we've upgraded to 3.8.8 we've had to unpublish any random image modules.
We get the following error:
Fatal error: Using $this when not in object context in /home/xxxxxx/public_html/modules/mod_random_image/tmpl/default.php on line 16
Both sites use Gantry 5 templates from Rockettheme

User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3372
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: 3.8.8 update issues with random image module

Post by ribo » Tue May 22, 2018 3:05 pm

It seems that you must contact with the creator of this module to update it.
chat room spontes : http://www.spontes.com

cmbay
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 111
Joined: Thu Dec 31, 2009 11:53 pm
Location: Oregon, USA

Re: 3.8.8 update issues with random image module

Post by cmbay » Tue May 22, 2018 3:36 pm

By the way, the author of the Random Image module is listed as the Joomla! Project. I have version 3.0.0 installed and it is dated July 2006.
Charles

User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3372
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: 3.8.8 update issues with random image module

Post by ribo » Tue May 22, 2018 3:44 pm

I see, please first test this module with protostar template
chat room spontes : http://www.spontes.com

mbabker
Joomla! Hero
Joomla! Hero
Posts: 2195
Joined: Sun Feb 28, 2010 8:26 pm

Re: 3.8.8 update issues with random image module

Post by mbabker » Tue May 22, 2018 3:50 pm


User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3372
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: 3.8.8 update issues with random image module

Post by ribo » Tue May 22, 2018 3:53 pm

Thanks michael
chat room spontes : http://www.spontes.com

wolverton
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Aug 10, 2007 5:00 am

Re: 3.8.8 update issues with random image module

Post by wolverton » Tue May 22, 2018 4:13 pm

Patch works fine, thanks much

User avatar
Jaydot
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 249
Joined: Sun Jun 04, 2017 12:11 pm
Location: The Netherlands
Contact:

Re: 3.8.8 update issues with random image module

Post by Jaydot » Tue May 22, 2018 7:49 pm

Eh... I don't know how to apply a patch... Help!
The fact that an opinion is widely held is no evidence whatsoever that it is not utterly absurd.
Personal website: https://jaydot.nl

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: 3.8.8 update issues with random image module

Post by effrit » Tue May 22, 2018 8:01 pm

just get code from here
https://github.com/joomla/joomla-cms/bl ... efault.php
and replace
/modules/mod_random_image/tmpl/default.php
Last edited by effrit on Tue May 22, 2018 8:12 pm, edited 1 time in total.

User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3372
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: 3.8.8 update issues with random image module

Post by ribo » Tue May 22, 2018 8:09 pm

Jaydot wrote:Eh... I don't know how to apply a patch... Help!
In Files changed you copy the green line 16 and you paste into line 16 of the file

Code: Select all

modules/mod_random_image/tmpl/default.php
chat room spontes : http://www.spontes.com

User avatar
Jaydot
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 249
Joined: Sun Jun 04, 2017 12:11 pm
Location: The Netherlands
Contact:

Re: 3.8.8 update issues with random image module

Post by Jaydot » Tue May 22, 2018 8:14 pm

Ah.. simple if you know how :).
Applied, fixed, great!
Thanks, Effrit!

I still have two questions, though:
How did you get to that code from the link Michael Babker provided?
I see that this is "merged", does that mean that it is now included in the update package, so I can update my other sites?
The fact that an opinion is widely held is no evidence whatsoever that it is not utterly absurd.
Personal website: https://jaydot.nl

User avatar
Jaydot
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 249
Joined: Sun Jun 04, 2017 12:11 pm
Location: The Netherlands
Contact:

Re: 3.8.8 update issues with random image module

Post by Jaydot » Tue May 22, 2018 8:16 pm

Thanks, Ribo.
The fact that an opinion is widely held is no evidence whatsoever that it is not utterly absurd.
Personal website: https://jaydot.nl

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: 3.8.8 update issues with random image module

Post by effrit » Tue May 22, 2018 8:22 pm

when you on " Files changed" tab you can press View button on top right corner to view complete file.

you can update other sites after new version will be released.
now it just night-build version mostly for testers. so if it critical you can just replace concrete file for now or wait for next release.

User avatar
Jaydot
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 249
Joined: Sun Jun 04, 2017 12:11 pm
Location: The Netherlands
Contact:

Re: 3.8.8 update issues with random image module

Post by Jaydot » Tue May 22, 2018 8:25 pm

Learned something new, great :).
Thanks again!
The fact that an opinion is widely held is no evidence whatsoever that it is not utterly absurd.
Personal website: https://jaydot.nl


Post Reply

Return to “Migrating and Upgrading to Joomla! 3.x”