Jump to content

Can't save combinations 1.7.3.3 - Errors on ajax


w0lf

Recommended Posts

Hello,

i have same shop on two servers. One is strong vps second is hosted (client server). On my vps server saving combinations is working flawless. On client server  i can't generate and save combinations at all. Here is alert (can't save)  plus some errors in background:

Data posted in background:

Request URL: https://xxxxx.pl/admin64xxxxsgpnnp/index.php/product/form/5346?_token=832tfg49VMG0wOZlyg0D_ZTbpo9A9Vc27zrAhXyqWN8
Request Method: POST
Status Code: 400 
form[step1][name][1]: Acrilic master test  new
form[step1][name][8]: Acrilic master test  new
form[step1][description_short][1]: 
form[step1][description_short][8]: 
form[step1][description][1]: 
form[step1][description][8]: 
form[step1][id_manufacturer]: 
form[step1][id_category_default]: 2
form[step1][categories][tree][]: 2
ignore: 2
form[step1][new_category][name]: 
form[step1][new_category][id_parent]: 2
show_variations: 1
form[step6][reference]: 
form[step1][qty_0_shortcut]: 5
form[step1][price_shortcut]: 4,065041
form[step1][price_ttc_shortcut]: 5
form[step2][id_tax_rules_group]: 1
form[step3][qty_0]: 5
form[step3][minimal_quantity]: 1
form[step3][low_stock_threshold]: 
form[step3][virtual_product][is_virtual_file]: 0
form[step3][virtual_product][name]: 
form[step3][virtual_product][nb_downloadable]: 
form[step3][virtual_product][expiration_date]: 
form[step3][virtual_product][nb_days]: 0
form[step3][pack_stock_type]: 3
form[step3][attributes]: 121, 39, 40
options[8][121]: 121
options[8][39]: 39
options[8][40]: 40
product_combination_bulk[quantity]: 
product_combination_bulk[cost_price]: 
product_combination_bulk[impact_on_weight]: 
product_combination_bulk[impact_on_price_te]: 
product_combination_bulk[impact_on_price_ti]: 
product_combination_bulk[date_availability]: 
product_combination_bulk[reference]: 
product_combination_bulk[minimal_quantity]: 
product_combination_bulk[low_stock_threshold]: 
product_combination_bulk[_token]: vX4xPAQtlaAlWFNsAYoPw2-Ab4FMNClwCK2-FpkABP0
form[step3][out_of_stock]: 2
form[step3][available_now][1]: 
form[step3][available_now][8]: 
form[step3][available_later][1]: 
form[step3][available_later][8]: 
form[step4][width]: 0
form[step4][height]: 0
form[step4][depth]: 0
form[step4][weight]: 0
form[step4][additional_delivery_times]: 1
form[step4][delivery_in_stock][1]: 
form[step4][delivery_in_stock][8]: 
form[step4][delivery_out_stock][1]: 
form[step4][delivery_out_stock][8]: 
form[step4][additional_shipping_cost]: 0,000000
form[step2][price]: 4,065041
form[step2][price_ttc]: 5
form[step2][unit_price]: 0,000000
form[step2][unity]: 
form[step2][ecotax]: 0,000000
form[step2][id_tax_rules_group]: 1
form[step2][wholesale_price]: 0,000000
form[step2][specific_price][sp_id_shop]: 1
form[step2][specific_price][sp_id_currency]: 
form[step2][specific_price][sp_id_country]: 
form[step2][specific_price][sp_id_group]: 
form[step2][specific_price][sp_id_product_attribute]: 
form[step2][specific_price][sp_from]: 
form[step2][specific_price][sp_to]: 
form[step2][specific_price][sp_from_quantity]: 1
form[step2][specific_price][leave_bprice]: 1
form[step2][specific_price][sp_reduction]: 0,000000
form[step2][specific_price][sp_reduction_type]: amount
form[step2][specific_price][sp_reduction_tax]: 1
form[step2][specificPricePriority_0]: id_shop
form[step2][specificPricePriority_1]: id_currency
form[step2][specificPricePriority_2]: id_country
form[step2][specificPricePriority_3]: id_group
form[step5][meta_title][1]: 
form[step5][meta_title][8]: 
form[step5][meta_description][1]: 
form[step5][meta_description][8]: 
form[step5][link_rewrite][1]: acrilic-master-test-new
form[step5][link_rewrite][8]: acrilic-master-test-new
form[step5][redirect_type]: 404
form[step6][visibility]: both
form[step6][display_options][available_for_order]: 1
form[step6][display_options][show_price]: 1
form[step6][tags][1]: 
form[step6][tags][8]: 
form[step6][condition]: new
form[step6][isbn]: 
form[step6][ean13]: 
form[step6][upc]: 
form[step6][attachment_product][name]: 
form[step6][attachment_product][description]: 
hook_name: displayHome
form[id_product]: 5346
form[_token]: OMo31T8k3evwoSXH7M9JjpdZ9o-z0qiVw897Yi2XkTg

Response error:

{combination_7066_attribute_ecotax: ["This value should not be blank."],…}
combination_7066_attribute_ecotax: ["This value should not be blank."]
0: "This value should not be blank."
combination_7066_attribute_minimal_quantity: ["This value should not be blank."]
combination_7066_attribute_quantity: ["This value should not be blank."]
combination_7067_attribute_ecotax: ["This value should not be blank."]
combination_7067_attribute_minimal_quantity: ["This value should not be blank."]
combination_7067_attribute_quantity: ["This value should not be blank."]
combination_7068_attribute_ecotax: ["This value should not be blank."]
0: "This value should not be blank."
combination_7068_attribute_minimal_quantity: ["This value should not be blank."]
0: "This value should not be blank."
combination_7068_attribute_quantity: ["This value should not be blank."]

 

On screen there are errors in background. I've tested generating combinations on new and old products. Both are not working. Somehow new product when first time combination is created - it remembers how many of combinations were used (0/3). After that when i open product in admin panel there is also error on reading combinations: 

https://xxxx/xxxxadmingpnnp/index.php/combination/7066-7067-7068?_token=832tfg49VMG0wOZlyg0D_ZTbpo9A9Vc27zrAhXyqWN8

Request Method: GET
Status Code: 500 

And it logs  php error:

[21-Nov-2018 19:26:34 Europe/Warsaw] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message '"" cannot be interpreted as a number' in /home/xxxxx.pl/vendor/prestashop/decimal/src/Number.php:466
Stack trace:
#0 home/xxxxx.pl/vendor/prestashop/decimal/src/Number.php(72): PrestaShop\Decimal\Number->initFromString('')
#1 home/xxxxx.pl/src/Adapter/CombinationDataProvider.php(131): PrestaShop\Decimal\Number->__construct('')
#2 home/xxxxx.pl/src/Adapter/CombinationDataProvider.php(94): PrestaShop\PrestaShop\Adapter\CombinationDataProvider->completeCombination(Array, Object(Product))
#3 home/xxxxx.pl/src/PrestaShopBundle/Controller/Admin/CombinationController.php(44): PrestaShop\PrestaShop\Adapter\CombinationDataProvider->getFormCombinations(Array, 1)
#4 [internal function]: PrestaShopBundle\Controller\Admin\CombinationController->generateCombinationFormAction('7066-7067-7068')
#5 home/xxxxx.pl/app/bootstrap. in /home/weblider/ftp/sklep.apapolska.pl/app/bootstrap.php.cache on line 3231

 

Any ideas how to fix it?

 

Presta 1.7.3.3

PHP 5.6

kind regards

Mark

 

error1.jpg

error2.jpg

Link to comment
Share on other sites

  • 2 weeks later...
  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...