Shara_AC Posted August 6, 2019 Share Posted August 6, 2019 (edited) after installing the custom module that I made. the following error appears. errors appear in the front-office and also back-office Quote Fatal error: Cannot redeclare cmpPriceAsc() (previously declared in E:\xampp\htdocs\isiordertrial\classes\Tools.php:4243) in E:\xampp\htdocs\isiordertrial\override\classes\Tools.php on line 4252 please help me Edited August 6, 2019 by yahyaefendy (see edit history) Link to comment Share on other sites More sharing options...
beshop Posted June 2, 2021 Share Posted June 2, 2021 On 8/6/2019 at 10:54 AM, yahyaefendy said: after installing the custom module that I made. the following error appears. errors appear in the front-office and also back-office please help me same problem. did you find a solution? Thanks M. Link to comment Share on other sites More sharing options...
w3bsolutions Posted June 2, 2021 Share Posted June 2, 2021 Can you attach your Tools.php override? Link to comment Share on other sites More sharing options...
beshop Posted June 3, 2021 Share Posted June 3, 2021 20 hours ago, w3bsolutions said: Can you attach your Tools.php override? yes.. thanks tools.txt Link to comment Share on other sites More sharing options...
musicmaster Posted June 3, 2021 Share Posted June 3, 2021 2 hours ago, beshop said: yes.. thanks tools.txt 167.63 kB · 1 download Is that an override file? It looks rather like a copy of the complete Tools.php file. An override should only contain the elements that are changed. If you look at the function cmpPriceAsc() you see that it contains the following comment: /* Externalized because of a bug in PHP 5.1.6 when inside an object */ This means that it is just a function and not part of the Tools object. And that is the reason you cannot override it. Link to comment Share on other sites More sharing options...
beshop Posted June 4, 2021 Share Posted June 4, 2021 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now