Page 1 of 1

3.8.8 update issues with random image module

Posted: Tue May 22, 2018 2:58 pm
by wolverton
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

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 3:05 pm
by ribo
It seems that you must contact with the creator of this module to update it.

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 3:36 pm
by cmbay
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.

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 3:44 pm
by ribo
I see, please first test this module with protostar template

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 3:50 pm
by deleted user

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 3:53 pm
by ribo
Thanks michael

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 4:13 pm
by wolverton
Patch works fine, thanks much

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 7:49 pm
by Jaydot
Eh... I don't know how to apply a patch... Help!

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 8:01 pm
by effrit
just get code from here
https://github.com/joomla/joomla-cms/bl ... efault.php
and replace
/modules/mod_random_image/tmpl/default.php

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 8:09 pm
by ribo
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

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 8:14 pm
by Jaydot
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?

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 8:16 pm
by Jaydot
Thanks, Ribo.

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 8:22 pm
by effrit
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.

Re: 3.8.8 update issues with random image module

Posted: Tue May 22, 2018 8:25 pm
by Jaydot
Learned something new, great :).
Thanks again!