? ? Pending

User tests: Successful: Unsuccessful:

avatar fertxunonimo
fertxunonimo
19 Feb 2020

I have found this PHP Notice: Undefined property: stdClass::$name in /modules/mod_breadcrumbs/tmpl/default.php on line 12. I have changed the name property to title to solve the error.

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Expected result

Actual result

Documentation Changes Required

avatar fertxunonimo fertxunonimo - open - 19 Feb 2020
avatar fertxunonimo fertxunonimo - change - 19 Feb 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2020
Category Modules Front End
avatar jwaisner
jwaisner - comment - 19 Feb 2020

@fertxunonimo Can you please provide testing instructions for this PR?

avatar Quy
Quy - comment - 19 Feb 2020

I am not able to reproduce the PHP notice.

Before PR: <div aria-label="breadcrumbs" role="navigation">
After PR: <div aria-label="Breadcrumbs" role="navigation">

avatar fertxunonimo
fertxunonimo - comment - 20 Feb 2020

Sorry for the inconvenience, it's my first time I use GitHub.

Here is my test enviroment:
I have installed Gantry5 and Hellium theme. Breadcrumbs module is inserted on theme layout at Intro section.
It seems like gantry change somehow the Object and the $name is not defined so I changed the name to title and warnng has gone.

Hope this help to you!
Regards
F.

avatar alikon
alikon - comment - 20 Feb 2020

you shuold report this issue there

Gantry5 and Hellium theme

closing as not a core issue

avatar alikon alikon - close - 20 Feb 2020
avatar alikon alikon - change - 20 Feb 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-02-20 18:04:57
Closed_By alikon
Labels Added: ? ?
avatar SharkyKZ
SharkyKZ - comment - 21 Feb 2020

This should be re-opened. Issue can be reproduced by rendering module manually when no breadcrumbs module is published:

$module = JModuleHelper::getModule('mod_breadcrumbs');
echo JModuleHelper::renderModule($module);

And it makes more sense to use the human readable title rather than non-translatable name.

avatar SharkyKZ
SharkyKZ - comment - 21 Feb 2020

The undefined property issue can be fixed by adding name property here:

if ($result === null && strpos($name, 'mod_') === 0)
{
$result = new \stdClass;
$result->id = 0;
$result->title = '';
$result->module = $name;
$result->position = '';
$result->content = '';
$result->showtitle = 0;
$result->control = '';
$result->params = '';
}

avatar Quy Quy - change - 21 Feb 2020
Status Closed New
Closed_Date 2020-02-20 18:04:57
Closed_By alikon
avatar Quy Quy - change - 21 Feb 2020
Status New Pending
avatar Quy Quy - reopen - 21 Feb 2020
avatar jwaisner
jwaisner - comment - 21 Feb 2020

@fertxunonimo please provide testing instructions for this PR. Without them, no one will be able to test and confirm it fixes referenced bug.

avatar Quy
Quy - comment - 2 Mar 2020

Install testing sample data.
Go to the frontend,
Click Article Category List.
View page source.

Before PR:


After PR:

avatar Quy
Quy - comment - 2 Mar 2020

I have tested this item successfully on e075928


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27987.

avatar Quy Quy - test_item - 2 Mar 2020 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 4 Mar 2020

I have tested this item successfully on e075928


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27987.

avatar SharkyKZ SharkyKZ - test_item - 4 Mar 2020 - Tested successfully
avatar SharkyKZ SharkyKZ - change - 4 Mar 2020
Status Pending Ready to Commit
avatar SharkyKZ
SharkyKZ - comment - 4 Mar 2020

RTC.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27987.

avatar rdeutz rdeutz - change - 4 Apr 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-04-04 12:46:28
Closed_By rdeutz
Labels Added: ?
Removed: ?
avatar rdeutz rdeutz - close - 4 Apr 2020
avatar rdeutz rdeutz - merge - 4 Apr 2020
avatar HLeithner
HLeithner - comment - 4 Apr 2020

Shouldn't this be escaped?

Add a Comment

Login with GitHub to post a comment