Open to all! Ask other shopowners for help.
LeeFoster
Contributor
Posts: 263 Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times
Post
by LeeFoster » Tue Jul 19, 2022 6:10 am
I have this working on my store but I am getting an error.
Notice: Undefined variable: cPath in \includes\modules\navbar\nb_navbar_categories.php on line 53
Line 53
Code: Select all
$display->setPath($cPath, '<strong>', '</strong>');
It doesn't seem to affect functionality but I'd rather have a solution.
mhsuffolk
Contributor
Posts: 199 Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Has thanked: 13 times
Been thanked: 11 times
Post
by mhsuffolk » Tue Jul 19, 2022 6:27 am
Mine does not throw that error on 1.0.8.4.
I am not an expert coder but try this and reverse it if it breaks.
Code: Select all
$display->setPath($GLOBALS['cPath'], '<strong>', '</strong>');
LeeFoster
Contributor
Posts: 263 Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times
Post
by LeeFoster » Tue Jul 19, 2022 9:45 am
mhsuffolk wrote: ↑ Tue Jul 19, 2022 6:27 am
Mine does not throw that error on 1.0.8.4.
I am not an expert coder but try this and reverse it if it breaks.
Code: Select all
$display->setPath($GLOBALS['cPath'], '<strong>', '</strong>');
That didn't work so I tried replacing -
Code: Select all
$display = new tree_display(new category_tree());
$display->setPath($cPath, '<strong>', '</strong>');
With -
Code: Select all
$display = new tree_display(Guarantor::ensure_global('category_tree'));
$display->setPath($GLOBALS['cPath'], '<strong>', '</strong>');
and it did. I'm on 1.0.8.16 so something must have changed along the way.
randers
Member
Posts: 32 Joined: Mon Oct 26, 2020 8:22 pm
Phoenix Version: v1.0.8.16
Post
by randers » Tue Aug 30, 2022 11:12 am
We have used the original version without any problems right from v.2.3.4.1CE up to Phoenix v1.0.8.17 which we are using now.
You do not have the required permissions to view the files attached to this post.