Hello devs !
I try to make a item menu on my front (nothing that crazy, just a basic item menu for acces to my component view); so i made a default.xml form on my tmpl view folder, and when i try to use that new item menu, i got an error that says :
"Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in C:\laragon\www\Joomla\modules\mod_menu\tmpl\default_component.php on line 72 ".
So i invastigated, line 72 of default_component.php file is :
echo HTMLHelper::_('link', OutputFilter::ampReplace(htmlspecialchars($item->flink, ENT_COMPAT, 'UTF-8', false)), $linktype, $attributes);
this line display the link of the menu item, and the error occurs beacause it seems something is null on it, so i dump($item) (see the attachment).
Yep as you can see on se screenshot, it seems my $item->flink is null, i saw Joomla is supposed to automaticly deduct the flink from the link, and we can see the link is here at place.
Soooo yeah....i'm a bit confused right now, anyone have a clue about this ?
Thanks !
I try to make a item menu on my front (nothing that crazy, just a basic item menu for acces to my component view); so i made a default.xml form on my tmpl view folder, and when i try to use that new item menu, i got an error that says :
"Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in C:\laragon\www\Joomla\modules\mod_menu\tmpl\default_component.php on line 72 ".
So i invastigated, line 72 of default_component.php file is :
echo HTMLHelper::_('link', OutputFilter::ampReplace(htmlspecialchars($item->flink, ENT_COMPAT, 'UTF-8', false)), $linktype, $attributes);
this line display the link of the menu item, and the error occurs beacause it seems something is null on it, so i dump($item) (see the attachment).
Yep as you can see on se screenshot, it seems my $item->flink is null, i saw Joomla is supposed to automaticly deduct the flink from the link, and we can see the link is here at place.
Soooo yeah....i'm a bit confused right now, anyone have a clue about this ?
Thanks !
Statistics: Posted by maximeb — Mon Apr 29, 2024 7:31 am