Open florine2623 opened 8 months ago
Hello @nicosomb 👋
I'm able to reproduce the issue, but I believe we cannot fix it without editing the core. The warning appears in debug mode when the .tpl file tries to get the image size dimensions to display it in a modal.
This functionality wasn't implemented in the classic theme, so maybe this feature can be postponed for later?
@amine-O what's your opinion about this issue?
If it's not implemented on Classic, I don't see the emergency of doing it now @tblivet are you able to reproduce it also on the Classic theme ?
@amine-O In the Classic theme, we don't have this warning because the element that throws the warning is only introduced in Hummingbird.
Ok let's postpone it then, we'll see if it's needed later
No getimagesize
call should be in the template, theme should be just the view. If some more info is needed, we should provide it from the core. 👍
Describe the bug and add attachments
When I add a customization to a product, if I check the customization in the Shopping cart, I have a warning :
getimagesize(http://develop:8888/en/upload/86cae4ab669495998bcc14d5974e0b6e): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /Users/fHea/Desktop/develop/var/cache/dev/smarty/compile/hummingbirdlayouts_layout_full_width_tpl/70/12/42/7012426849de68e689ac7f8cab09d2eb050ff3e3_2.file.product-customization-modal.tpl.php on line 96
Expected behavior
Should look like the modal in the details order page :
Steps to reproduce
PrestaShop version(s) where the bug happened
9.0.0
PHP version(s) where the bug happened
8.1