marloru Posted October 23, 2023 Share Posted October 23, 2023 Good morning, We have just updated our online store from Prestashop version 1.7 to version 8. We have also updated the version of the Warehouse template to be compatible with version 8. So far so good. We found the problem when we updated the PHP version from 7 to 8.0 We get the following error: Fatal error: Declaration of Link::getImageLink($name, $ids, $type = null) must be compatible with LinkCore::getImageLink($name, $ids, $type = null, string $extension = 'jpg') in /var/www/html/override/classes/Link.php on line 29 Can anyone shed some light? how could we solve it? Thank you so much. Mar Lopez Link to comment Share on other sites More sharing options...
wepresta Posted October 23, 2023 Share Posted October 23, 2023 1 hour ago, marloru said: Good morning, We have just updated our online store from Prestashop version 1.7 to version 8. We have also updated the version of the Warehouse template to be compatible with version 8. So far so good. We found the problem when we updated the PHP version from 7 to 8.0 We get the following error: Fatal error: Declaration of Link::getImageLink($name, $ids, $type = null) must be compatible with LinkCore::getImageLink($name, $ids, $type = null, string $extension = 'jpg') in /var/www/html/override/classes/Link.php on line 29 Can anyone shed some light? how could we solve it? Thank you so much. Mar Lopez What's /var/www/html/override/classes/Link.php said in line 29 ? Link to comment Share on other sites More sharing options...
marloru Posted October 24, 2023 Author Share Posted October 24, 2023 Thanks for your help, I've got the solution: Link::getImageLink($name, $ids, $type = null)....--------> Link::getImageLink($name, $ids, $type = null, string $extension = 'jpg') Regards 1 Link to comment Share on other sites More sharing options...
Maurice Posted March 16 Share Posted March 16 Hi i confirm that marloru Solution Work Perfect even for me with Php 8.1 1 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