AJAX Attribute Manager

Boolean error - AJAX Attribute Manager

Boolean error

by radhavallabh » Fri Mar 03, 2023 6:01 am

Hi dear;
I use 1.0.8.20 and latest version of this addon;
On adding a Option to the product I get this error-
Warning: Trying to access array offset on value of type bool in /xx/xx/admin/attributeManager/classes/attributeManagerInstant.class.php on line 186
Can you please help fix the issue;
Thank you in advance..
Regds.
radhavallabh
radhavallabh
VIP Member
VIP Member
Posts: 369
Joined: Tue Oct 27, 2020 4:09 am
Contact:

Re: Boolean error

by raiwa » Fri Mar 03, 2023 6:10 am

Hi,
Which PHP Version are you running?

Thank you
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Boolean error

by radhavallabh » Fri Mar 03, 2023 9:50 am

raiwa wrote:Hi,
Which PHP Version are you running?

Thank you
PHP 8.0 dear...
Regds./
radhavallabh
radhavallabh
VIP Member
VIP Member
Posts: 369
Joined: Tue Oct 27, 2020 4:09 am
Contact:

Re: Boolean error

by raiwa » Fri Mar 03, 2023 2:12 pm

Hi,

Please try the following in: admin\attributeManager\classes\attributeManagerInstant.class.php
line 186:

Code: Select all

       $data['sort_order'] = ((isset($lastrow['sort_order']) && $lastrow['sort_order'] != '0')? (int)$lastrow['sort_order'] + 1 : 1); 
and let me know.

Best wishes
Rainer
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Boolean error

by radhavallabh » Sat Mar 04, 2023 7:28 am

raiwa wrote:Hi,

Please try the following in: admin\attributeManager\classes\attributeManagerInstant.class.php
line 186:

Code: Select all

       $data['sort_order'] = ((isset($lastrow['sort_order']) && $lastrow['sort_order'] != '0')? (int)$lastrow['sort_order'] + 1 : 1); 
and let me know.

Best wishes
Rainer
Issue fixed dear!
Thank you very much;
Very Warm Regds./
radhavallabh
radhavallabh
VIP Member
VIP Member
Posts: 369
Joined: Tue Oct 27, 2020 4:09 am
Contact: