Jump to content

Prestashop 1.7 - Prestashop 8 Updated / PHP 7 - PHP 8 Updated


marloru

Recommended Posts

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

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

  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...