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
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