Update to Joomla! 3.8.8 with Random Image module (mod_random_image) showing small image in featured article
Home page displays as normal
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.
From System info:
Title |
|
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
Good idea
That was a staggeringly fast response!
Many thanks.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-05-23 00:19:00 |
Closed_By | ⇒ | slrellison |
Status | Closed | ⇒ | New |
Closed_Date | 2018-05-23 00:19:00 | ⇒ | |
Closed_By | slrellison | ⇒ |
[Apologies; wrong 'close/comment' button. Noted request to keep issue open to prevent duplicates - reopened accordingly]
Status | New | ⇒ | Discussion |
Build | [ Amani ] 22-May-2018 14:00 GMT | ⇒ | 3.8.8 |
Category | ⇒ | com_modules |
Labels |
Added:
J3 Issue
|
Title |
|
Title |
|
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,
read the comments here in this thread and you will see the answer
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,
@AllanThomp You can:
Or you can just wait for next release 3.8.9 as you said.
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?
It is scheduled for June 26.
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.
You can also do a template override and make the necessary change without having to mess with the file system to replace the file.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-19 13:47:35 |
Closed_By | ⇒ | joomla-cms-bot |
Status | Closed | ⇒ | Fixed in Code Base |
Closed_By | joomla-cms-bot | ⇒ | Quy |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20541
Duplicated. Fixed on #20533