Page 1 of 1
z
Posted: Wed Aug 21, 2019 5:48 pm
by bobi
z
Re: Division by zero in financial_class.php
Posted: Wed Aug 21, 2019 7:14 pm
by thekrotek
If you know, how to debug the code, just try to debug it and you will eventually find the root of the issue. Another option is to enable error backtracing, which will log and display error stacks instead of single error messages.
Re: Division by zero in financial_class.php
Posted: Wed Aug 21, 2019 8:57 pm
by bobi
i tried to debug the code but cant generate the error because dont know where function is called (admin side or catalog side)
Re: Division by zero in financial_class.php
Posted: Wed Aug 21, 2019 9:28 pm
by thekrotek
bobi wrote: ↑Wed Aug 21, 2019 8:57 pm
i tried to debug the code but cant generate the error because dont know where function is called (admin side or catalog side)
This is why you need to enable backtracing of errors. Just search for "php error stack trace".
Re: Division by zero in financial_class.php
Posted: Wed Aug 21, 2019 10:19 pm
by bobi
i tried with debug_backtrace() but function is never called
Re: Division by zero in financial_class.php
Posted: Wed Aug 21, 2019 11:11 pm
by JNeuhoff
There is no 'financial_class.php' file in Opencart 2.x. It seems you are using a 3rd party extension. If so you should get in touch with the author of that extension.
Re: Division by zero in financial_class.php
Posted: Thu Aug 22, 2019 3:04 pm
by bobi
yes you are right i didnt notice this isnt part of oc my mistake