Everything is fine except that since we migrated to PHP 7.2 for printing the delivery list for which we have this error:
2019-03-07 13:02:30 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_controller_sale_order.php on line 3641
'weight' => $this->weight->format(($product_info['weight'] + $option_weight) * $product['quantity'], $product_info['weight_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point'))
How to correct this?
Thanks for your help.
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
try to use float function.stef83136 wrote: ↑Thu Mar 07, 2019 10:03 pmHello, our site runs under Opencart 2.3.0.2, we have just switched to PHP 7.2 / mariaDB
Everything is fine except that since we migrated to PHP 7.2 for printing the delivery list for which we have this error:
2019-03-07 13:02:30 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_controller_sale_order.php on line 3641
'weight' => $this->weight->format(($product_info['weight'] + $option_weight) * $product['quantity'], $product_info['weight_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point'))
How to correct this?
Thanks for your help.
Code: Select all
'weight' => $this->weight->format(((float)$product_info['weight'] + $option_weight) * (float)$product['quantity'], $product_info['weight_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point'))
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
In which file? Admin/controller/Sale/Order.php ?
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
Always the error.
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
Code: Select all
'weight' => $this->weight->format(($product_info['weight'] + (float)$option_weight) * $product['quantity'], $product_info['weight_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point'))
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
It's OK Now. :-)
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
Thanks for your advices.
Code: Select all
2019-03-11 8:10:52 - PHP Warning: A non-numeric value encountered in /home/xxxxx/public_html/system/storage/modification/catalog/controller/product/category.php on line 177
2019-03-11 8:10:53 - PHP Warning: A non-numeric value encountered in /home/xxxxx/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-11 8:10:53 - PHP Warning: A non-numeric value encountered in /home/xxxxx/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-11 8:10:53 - PHP Warning: A non-numeric value encountered in /home/xxxxx/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-11 8:10:53 - PHP Warning: A non-numeric value encountered in /home/xxxxx/public_html/system/storage/modification/catalog/controller/product/category.php on line 388
2019-03-11 8:10:53 - PHP Warning: A non-numeric value encountered in /home/xxxxx/public_html/system/storage/modification/catalog/controller/product/category.php on line 392
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Is the "bug" with PHP7...
@stef83136
You need to changes from all files inside of catalog/controller/product where you find
this line
Code: Select all
$page = $this->request->get['page'];
Code: Select all
$page = (int)$this->request->get['page'];
viewtopic.php?f=24&t=210459#p748892
After that, clear VQMOD cache, refresh ocmod.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
LOL... I hope you're right and there just only this. But do you really know code under this numbers of the line, in mentioned errors... I mean when somebody posting his issues, it should provide more info...xxvirusxx wrote: ↑Mon Mar 11, 2019 5:25 pmlol @kestas....
Is the "bug" with PHP7...
@stef83136
You need to changes from all files inside of catalog/controller/product where you find
this linetoCode: Select all
$page = $this->request->get['page'];
Then you can apply @straightlight fix from hereCode: Select all
$page = (int)$this->request->get['page'];
viewtopic.php?f=24&t=210459#p748892
After that, clear VQMOD cache, refresh ocmod.
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
https://www.opencart.com/index.php?rout ... n_id=35487
He provided information...
Code: Select all
Hello, our site runs under Opencart 2.3.0.2, we have just switched to PHP 7.2 / mariaDB
viewtopic.php?f=202&t=209908
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
xxvirusxx I used the recommended module but I still have the errors.xxvirusxx wrote: ↑Mon Mar 11, 2019 5:50 pmAnd this
https://www.opencart.com/index.php?rout ... n_id=35487
He provided information...
Same on 3.0.2.0Code: Select all
Hello, our site runs under Opencart 2.3.0.2, we have just switched to PHP 7.2 / mariaDB
viewtopic.php?f=202&t=209908
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
Which one are you referring to and what are the errors? More info needed. Forum rules.stef83136 wrote: ↑Thu Mar 14, 2019 1:21 amxxvirusxx I used the recommended module but I still have the errors.xxvirusxx wrote: ↑Mon Mar 11, 2019 5:50 pmAnd this
https://www.opencart.com/index.php?rout ... n_id=35487
He provided information...
Same on 3.0.2.0Code: Select all
Hello, our site runs under Opencart 2.3.0.2, we have just switched to PHP 7.2 / mariaDB
viewtopic.php?f=202&t=209908
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
2019-03-16 11:00:04 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 177
2019-03-16 11:00:04 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-16 11:00:04 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-16 11:00:04 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-16 11:00:04 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 388
2019-03-16 11:00:04 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 392
2019-03-17 1:46:16 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 177
2019-03-17 1:46:16 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-17 1:46:16 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-17 1:46:16 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-17 1:46:16 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 388
2019-03-17 1:46:16 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 392
2019-03-17 1:46:18 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 177
2019-03-17 1:46:18 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-17 1:46:18 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-17 1:46:18 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 380
2019-03-17 1:46:18 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 388
2019-03-17 1:46:18 - PHP Warning: A non-numeric value encountered in /home/mest8941/public_html/system/storage/modification/catalog/controller/product/category.php on line 392
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I managed with all your advice that I followed to solve a good part of the problems related to PHP7.2
I use the Uber Options (Q) module.
In fact I have 1 left, when I want to edit / print shipping list. In this case I have this type of error again:
Code: Select all
Warning: A non-numeric value encountered in /home/mest8941/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_controller_sale_order.php on line 3386Warning: A non-numeric value encountered in / home / mest8941 / public_html / vqmod / vqcache / vq2-system_storage_modification_admin_controller_sale_order .php on line 3386
This error only appears when I have a product with an option
The new SKU of the option did not take into account in the PDF
The consequence is that this error appears on the generated PDF
Have I forgotten a file in which I must replace by:
Code: Select all
'weight' => $ this-> weight-> format (($ product_info ['weight'] + (float) $ option_weight) * $ product ['quantity'], $ product_info ['weight_class_id'], $ this-> language-> get ('decimal_point'), $ this-> language-> get ('thousand_point'))
Thank you for your new help.
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
Ending by a question mark will lead to an error message from the array.'weight' => $ this-> weight-> format (($ product_info ['weight'] + (float) $ option_weight) * $ product ['quantity'], $ product_info ['weight_class_id'], $ this-> language-> get ('decimal_point'), $ this-> language-> get ('thousand_point'))?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Opencart 3.0.3.2
Journal 3
Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau
Then, please set the code between code tags [ code ] and [ /code ] (without spaces when using tags). Then, add your question mark after the [ / code ] tag. Otherwise, it's confusing.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 339 guests