• Priority: 0
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 04.12.26, 16:11
  • Opened by: Joss

Ticket #26575 - Error with svg logo

Hello , when i use debug mode to see errors , i saw this

Warning: Cannot use bool as array in /home/sofalia/public_html/classes/controller/FrontController.php on line 1748

1748 line : list($logoWidth, $logoHeight) = getimagesize($logoFileDir);

i think is beacouse i use a SVG logo

how could we fix them
thanks

Comments

Fred 04 Dec 2026, 22:51

Hello, Joss.

You're right, it's related to the SVG logo. PrestaShop's core code reads the logo dimensions with getimagesize(), and when that fails for your file, newer PHP versions show this warning.
But it isn't caused by the theme. Take a look at the file path, that's core prestashop file, not ours