Page 1 of 1

Unknown: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /home/ /www/vqmod/v

Posted: Mon May 01, 2023 3:15 pm
by umy1234
i have an opencart Version 2.0.1.1. Recently i noticed this problem in all my product pages
Unknown: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /home/ /www/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 45

can somebody help me to get rid of this problem?

Re: Unknown: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /home/ /www/vqm

Posted: Mon May 01, 2023 8:38 pm
by Johnathan
This is likely coming from a vQmod you have installed. Look for one that affects this file:

/catalog/model/catalog/product.php

Re: Unknown: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /home/ /www/vqm

Posted: Mon May 01, 2023 9:10 pm
by ADD Creative
What PHP version?

Could be this if 8 or above.
https://github.com/opencart/opencart/co ... 11f1bc3a1d