J3 Issue ?
avatar slrellison
slrellison
22 May 2018

Steps to reproduce the issue

Update to Joomla! 3.8.8 with Random Image module (mod_random_image) showing small image in featured article

Expected result

Home page displays as normal

Actual result

Home page returns Joomla! 404 error page with additional error message
#0 Using $this when not in object context

Replacing the {loadposition} with a static image provides a work-round, allowing home page to load.

System information (as much as possible)

From System info:

  • Joomla! version: Joomla! 3.8.8 Stable [ Amani ] 22-May-2018 14:00 GMT
  • Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
  • PHP version 7.0.29

Additional comments

avatar slrellison slrellison - open - 22 May 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 May 2018
avatar carlitorweb
carlitorweb - comment - 22 May 2018

Duplicated. Fixed on #20533

avatar joomla-cms-bot joomla-cms-bot - edited - 22 May 2018
avatar Quy Quy - change - 22 May 2018
Title
Update to Joomla! 3.3.3 Stable appears to break Random Image module
Update to Joomla! 3.8.8 Stable appears to break Random Image module
avatar Quy
Quy - comment - 22 May 2018

Lets keep this open for now and hopefully will prevent further duplicate reports.

For details: https://docs.joomla.org/J3.x:Module_random_image_PHP_Error_after_3.8.8

avatar carlitorweb
carlitorweb - comment - 22 May 2018

Good idea

avatar slrellison
slrellison - comment - 23 May 2018

That was a staggeringly fast response!
Many thanks.

avatar slrellison slrellison - close - 23 May 2018
avatar slrellison slrellison - change - 23 May 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-05-23 00:19:00
Closed_By slrellison
avatar slrellison slrellison - change - 23 May 2018
Status Closed New
Closed_Date 2018-05-23 00:19:00
Closed_By slrellison
avatar slrellison slrellison - reopen - 23 May 2018
avatar slrellison
slrellison - comment - 23 May 2018

[Apologies; wrong 'close/comment' button. Noted request to keep issue open to prevent duplicates - reopened accordingly]

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 May 2018
Status New Discussion
Build [ Amani ] 22-May-2018 14:00 GMT 3.8.8
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 May 2018
Category com_modules
avatar brianteeman brianteeman - change - 23 May 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 23 May 2018
avatar brianteeman brianteeman - change - 23 May 2018
Title
Update to Joomla! 3.8.8 Stable appears to break Random Image module
[SOLVED} Update to Joomla! 3.8.8 Stable appears to break Random Image module
avatar brianteeman brianteeman - edited - 23 May 2018
avatar zero-24 zero-24 - change - 23 May 2018
Title
[SOLVED} Update to Joomla! 3.8.8 Stable appears to break Random Image module
[SOLVED] Update to Joomla! 3.8.8 Stable appears to break Random Image module
avatar zero-24 zero-24 - edited - 23 May 2018
avatar AllanThomp
AllanThomp - comment - 26 May 2018

Same problem while upgrading from Joomla 3.8.7 to 3.8.8 this morning. Used usual Joomla Administrator procedure including automatic Akeeba backup. Restoration to 3.8.7 successful and site OK now. Fortunately, this was a development site and not live site.

What should I do next? Any information that I can provide that would be useful to debug or work around this?

Thanks,

avatar brianteeman
brianteeman - comment - 26 May 2018

read the comments here in this thread and you will see the answer

avatar AllanThomp
AllanThomp - comment - 26 May 2018

Thanks for the quick response. Do you mean this part:
How to fix
Apply this patch https://github.com/joomla/joomla-cms/pull/20533/files

Do I do that after the upgrade to 3.8.8?

Can I just wait and 3.8.8 will be fixed?

Thanks,

avatar joomdonation
joomdonation - comment - 26 May 2018

@AllanThomp You can:

Or you can just wait for next release 3.8.9 as you said.

avatar AllanThomp
AllanThomp - comment - 26 May 2018

Thanks! I think I can do that. This is a very simple site so I would expect many others to have the same problem. Do you expect 3.8.9 to be available soon?

avatar Quy
Quy - comment - 26 May 2018
avatar carolmattsson
carolmattsson - comment - 3 Jun 2018

To clarify Allan's description of the fix, the default.php referenced in this step:

Then replace the file modules/mod_random_image/tmpl/default.php on your site with this file https://github.com/joomla/joomla-cms/blob/staging/modules/mod_random_image/tmpl/default.php

... Restores the web pages but has other flaws. As tried on the development website for https://bikex.org: instead of displaying a photo, the random image module displays some github-themed page. Also the background color for the website is white instead of "cosmic latte" and the main menu pulldowns are cut off at the right.

Also, the default.php file referenced above, that I swapped in, is about 5 X the size of the original default.php. So maybe I didn't understand how to apply the fix.

Instead, apply the patch described here: https://github.com/joomla/joomla-cms/pull/20533/files. Do it by updating your website to Joomla 3.8.8 then editing the default.php file by changing the ONE LINE referenced in the "pull" link.

That worked for me.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20541.
avatar Quy
Quy - comment - 3 Jun 2018

You can also do a template override and make the necessary change without having to mess with the file system to replace the file.

avatar joomla-cms-bot joomla-cms-bot - change - 19 Jun 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-06-19 13:47:35
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 19 Jun 2018
avatar Quy Quy - change - 19 Jun 2018
Status Closed Fixed in Code Base
Closed_By joomla-cms-bot Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 19 Jun 2018

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

Add a Comment

Login with GitHub to post a comment