We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

SPPB Navigation Addon Error

Featured Lock Resolved
I am using the latest version of SPPB 3.6.7.
With the SPPB module I created a menu using the navigation addon, in the previous versions it worked fine, now it shows the following error. Notice: Undefined property: stdClass::$icon in components\com_sppagebuilder\addons\navigation\site.php on line 54

I hope soon solution. thanks

17 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
sorry, yes I hope in the next update it will be fixed. I added to bug list a week ago.
By now just hide showing errors in Joomla Global Configuration.

Chabo Design

More than a month ago #Permalink
Error reporting is at none and we still see the error message

Any news??

Paul Frankowski - Staff

More than a month ago #Permalink
Have you updated to 3.6.8 ?

Chabo Design

More than a month ago #Permalink
Absolutely

Notice: Undefined property: stdClass::$icon in /home/********/public_html/components/com_sppagebuilder/addons/navigation/site.php on line 54

Paul Frankowski - Staff

More than a month ago #Permalink
I couldn't reproduce your error on my side,
but ... can you check all menu items inside, I mean icon section.

Chabo Design

More than a month ago #Permalink
We didn't user icon at all for this menu.

Chabo Design

More than a month ago #Permalink
Is it me or we cannot send ticket anymore?

i wanna give you my credential so your team can figure this out.

Regards,
Mat

Paul Frankowski - Staff

More than a month ago #Permalink
Mat, click on my profile avatar to see Private Message button
Write me also on which subpage you have it. Thanks

Chabo Design

More than a month ago #Permalink
I sent the credential.

Thanks,
Mat

Alvaro

More than a month ago #Permalink
Apparently they have not solved this in version 3.6.8, I have updated and the error still exists. In my report I made it clear that the error is in Module. I wait for a quick solution. thanks

Alvaro

More than a month ago #Permalink
I also inform you that the new CSS class field (highly anticipated by the way), does not add the class correctly in the live editor, it is adding it after the CLASS attribute is closed. I leave the code.

<div class="sppb-link-list-wrap sppb-link-list-nav sppb-nav-align-center " nav-1>

where nav-1 is class not a new attribute

Paul Frankowski - Staff

More than a month ago #Permalink
On my demo site
I did exactly this same as you and nav-1 is inside class name look
foto_3305_2020.jpg

foto_3306_2020.jpg

Attachments (2)

  • foto_3305_2020.jpg
    foto_3305_2020.jpg 431 KB
  • foto_3306_2020.jpg
    foto_3306_2020.jpg 15.3 KB

Paul Frankowski - Staff

More than a month ago #Permalink
@Alvaro
maybe navigation addon inside your template was overridden,
I couldn't reproduce your issue using List Type: Navigation (!) which is the default.
Yes, I also set List Type: List and still was OK>
---
Make test on 2nd website, with new added navigation addon

Alvaro

More than a month ago #Permalink
What I do not want is to have to modify the addon to solve errors.
You say it's ok, on the contrary I think you have an override. I took the time and check the site.php code of the addon navigation and error for css is on line 450, here I leave your code, as you can see GLOBAL CLASS is added as an attribute.

<div class="sppb-link-list-wrap {{ nav_type }} {{ nav_align }} {{ responsive_menu_cls }}" {{{ sticky_row_attr }}} {{data.global_class}}>

But the error of the icon continues if you do not select any icon, I tried to add icons and then eliminate them, with this the error is no longer shown, but in HTML it is generating the <i> tags without the icon class. Please solution

Paul Frankowski - Staff

More than a month ago #Permalink
Compare your code with new version, line 55 - 61


if(count((array) $links)){
foreach($links as $key => $link){
$icon_arr = array_filter(explode(' ', $link->icon));
if (count($icon_arr) === 1) {
$link->icon = 'fa ' . $link->icon;
} else if (count($icon_arr) === 2) {
if ($font_awesome_version == '4') {
$link->icon = 'fa ' . $icon_arr[1];
}
}

Alvaro

More than a month ago #Permalink
All that code exists (lines 52-61) and is the same.

For the error to be displayed you have to add a new addon (not edit an existing one) and by adding the add item or clone button add the necessary ones, save and go to the front-end (no live editor). I did the same and added icon to an element and generated a different stdClass like this:
With Icon:

stdClass Object ( [title] => Home [active] => 0 [class] => [icon] => fa fa-address-book )


Without Icon:

stdClass Object ( [title] => Home2 [active] => 0 [class] => )


as you can see if the icon is not selected the icon key does not exist then $link->icon does not exist, is where the problem is.

Greetings.

Paul Frankowski - Staff

More than a month ago #Permalink
Ok, noted, thanks. I will tell developer on Monday


There are no replies made for this post yet.
Be one of the first to reply to this post!

123

Templates

327462

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us