AJAX Attribute Manager
FATAL ERROR - AJAX Attribute Manager
FATAL ERROR
Hi dear;
My version is 1.0.8.14
The Ajax Attribute Managaer is throwing the below errors on the product page under its TAB-
Notice: Undefined offset: 0 in xx/admin/attributeManager/classes/attributeManager.class.php on line 241
Notice: Undefined offset: 27 in xx/admin/attributeManager/classes/attributeManager.class.php on line 238
Notice: Undefined offset: 495 in xx/admin/attributeManager/classes/attributeManager.class.php on line 241
Notice: Undefined offset: 820 in xx/admin/attributeManager/classes/attributeManager.class.php on line 241
Notice: Undefined offset: 821 in xx/admin/attributeManager/classes/attributeManager.class.php on line 241
Method Select::__toString() must not throw an exception, caught TypeError: Argument 1 passed to Text::output() must be of the type string, null given, called in /xx/includes/system/versioned/1.0.8.1/select.php on line 66 in /xx/admin/attributeManager/attributeManager.php on line 0
Please can you help fix the issue;
Thank you in advance;
Very Warm regds./
radhavallabh
My version is 1.0.8.14
The Ajax Attribute Managaer is throwing the below errors on the product page under its TAB-
Notice: Undefined offset: 0 in xx/admin/attributeManager/classes/attributeManager.class.php on line 241
Notice: Undefined offset: 27 in xx/admin/attributeManager/classes/attributeManager.class.php on line 238
Notice: Undefined offset: 495 in xx/admin/attributeManager/classes/attributeManager.class.php on line 241
Notice: Undefined offset: 820 in xx/admin/attributeManager/classes/attributeManager.class.php on line 241
Notice: Undefined offset: 821 in xx/admin/attributeManager/classes/attributeManager.class.php on line 241
Method Select::__toString() must not throw an exception, caught TypeError: Argument 1 passed to Text::output() must be of the type string, null given, called in /xx/includes/system/versioned/1.0.8.1/select.php on line 66 in /xx/admin/attributeManager/attributeManager.php on line 0
Please can you help fix the issue;
Thank you in advance;
Very Warm regds./
radhavallabh
-
- VIP Member
- Posts: 364
- Joined: Tue Oct 27, 2020 4:09 am
- Contact:
Re: FATAL ERROR
Please take also here in consideration what @burt said in another thread:
Anyway it seems these are only notice errors?
You may have options without any value assigned in your database. Try to create at least one value for each option.Can you take notes of each step that you perform until it breaks [and then write down those steps to replicate], so that no time is wasted trying to get it to break...
Anyway it seems these are only notice errors?
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
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1184
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact:
Re: FATAL ERROR
Sorry for not being precise-raiwa wrote:Please take also here in consideration what @burt said in another thread:You may have options without any value assigned in your database. Try to create at least one value for each option.Can you take notes of each step that you perform until it breaks [and then write down those steps to replicate], so that no time is wasted trying to get it to break...
Anyway it seems these are only notice errors?
Click a product-> Go to attribute Manager Tab->
Error displayed beside the size option
On the Attribute Manager Tab
The products with the Size option are throwing this error. It already has many values listed to it but suddenly this error came up.....
Other options are rendering fine with the dropdowns and listed values.
Now how to debug that what is causing this error to the Size option dear.. Can you please help me with this...
The values part is throwing error. Attaching screenshot. Please help me fix the bug issue dear,
Thank you in advance;
Warm Regds./
radhavallabh
-
- VIP Member
- Posts: 364
- Joined: Tue Oct 27, 2020 4:09 am
- Contact:
Re: FATAL ERROR
Do you have any value defined for the size option?
If not, define at least one value.
If not, define at least one value.
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
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1184
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact:
Re: FATAL ERROR
I have more than 50 values dear.... and were displaying well too,raiwa wrote:Do you have any value defined for the size option?
If not, define at least one value.
But suddenly this error came up...
-
- VIP Member
- Posts: 364
- Joined: Tue Oct 27, 2020 4:09 am
- Contact:
Re: FATAL ERROR
I can't reproduce this error in my test store.
But you can try the following changes:
In admin\attributeManager\classes\attributeManager.class.php
line 238 change to:
and line 241 change to:
But you can try the following changes:
In admin\attributeManager\classes\attributeManager.class.php
line 238 change to:
Code: Select all
$this->arrAllOptionsAndValues[$optionsId]['name'] = $allOptions[$optionsId]?? '';
Code: Select all
$this->arrAllOptionsAndValues[$optionsId]['values'][$res['products_options_values_id']] = $allOptionValues[$res['products_options_values_id']] ?? '';
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
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1184
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact:
Re: FATAL ERROR
Thank you so much dear works perfectly now!!raiwa wrote:I can't reproduce this error in my test store.
But you can try the following changes:
In admin\attributeManager\classes\attributeManager.class.php
line 238 change to:and line 241 change to:Code: Select all
$this->arrAllOptionsAndValues[$optionsId]['name'] = $allOptions[$optionsId]?? '';
Code: Select all
$this->arrAllOptionsAndValues[$optionsId]['values'][$res['products_options_values_id']] = $allOptionValues[$res['products_options_values_id']] ?? '';
Very Warm Regds./
radhavallabh
-
- VIP Member
- Posts: 364
- Joined: Tue Oct 27, 2020 4:09 am
- Contact:
Re: FATAL ERROR
Thank you for your report and confirmation. I add it in the next update.
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
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1184
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact: