I'm adding mod_articles_news in frontend to show some articles in my home page horizontally.
Each of article have an Intro Image.
Articles - Newsflash (Legacy) configuration >> Show Intro/Full Image: I select Intro Image
then publish the module.
6.2
There is no warning
There are PHP warning shown at above of the frontend article news module:
Warning: Undefined property: stdClass::$image_intro_caption in /home/*******/public_html/modules/mod_articles_news/src/Helper/ArticlesNewsHelper.php on line 165
Joomla 6.2!
PHP 8.4
Articles - Newsflash (Legacy) configuration >> Show Intro/Full Image : if I select Full Image , then no warning shown.
I suggest to edit modules/mod_articles_news/src/Helper/ArticlesNewsHelper.php on line 165:
from
if ($images->image_intro_caption) {
$item->imageCaption = htmlspecialchars($images->image_intro_caption, ENT_COMPAT, 'UTF-8');
}
to
if (isset($images->image_intro_caption)) {
$item->imageCaption = htmlspecialchars($images->image_intro_caption, ENT_COMPAT, 'UTF-8');
}
| Labels |
Added:
No Code Attached Yet
bug
|
||
| Title |
|
||||||
| Labels |
Added:
Information Required
|
||
You should not use the old module but always the new mod_articles.
I am unable to replicate the issue, maybe you have an override for this module?