MrMayberry Posted March 8, 2023 Posted March 8, 2023 I was processing pictures with ease until this last update? Maybe? It will allow me to drop pictures into the add product/images page but will not save and complete the new product addition. I go to my demo/old version and it appears to still be working with the same photo's? Any help would be great as we have moved to live status... Quote
MrMayberry Posted March 8, 2023 Author Posted March 8, 2023 This appears to be in my log files: 2023-03-07 20:25:54 [50.43.166.121][-][b057d165e6ee217b431e35c0238c38f1][error][yii\base\ErrorException:2] yii\base\ErrorException: exif_read_data(3d56aaa65e6b97364382fa03b5fc9078): File not supported in /home/************/lib/common/classes/Images.php:848 Quote
osCommerce-Official Posted March 8, 2023 Posted March 8, 2023 @Ivan Holbi and @pandrei could you please check this? Quote
pandrei Posted March 8, 2023 Posted March 8, 2023 11 hours ago, MrMayberry said: I was processing pictures with ease until this last update? Maybe? It will allow me to drop pictures into the add product/images page but will not save and complete the new product addition. I go to my demo/old version and it appears to still be working with the same photo's? Any help would be great as we have moved to live status... Could you send one of those images for testing? Quote
MrMayberry Posted March 8, 2023 Author Posted March 8, 2023 12 minutes ago, pandrei said: Could you send one of those images for testing? Sending now thru PM. Quote
pandrei Posted March 8, 2023 Posted March 8, 2023 4 hours ago, MrMayberry said: Sending now thru PM. Thanks for the sample image. This error may occur with PNG file with non standard EXIF under PHP >= 8.0 To fix that: open lib/common/classes/Images.php file, go to the line 848 and add @ before exif_read_data like this: $exif = @exif_read_data($image); It will be fixed in the next update (4.12) of osCommerce. MrMayberry 1 Quote
MrMayberry Posted March 8, 2023 Author Posted March 8, 2023 3 hours ago, pandrei said: Thanks for the sample image. This error may occur with PNG file with non standard EXIF under PHP >= 8.0 To fix that: open lib/common/classes/Images.php file, go to the line 848 and add @ before exif_read_data like this: $exif = @exif_read_data($image); It will be fixed in the next update (4.12) of osCommerce. Great job, fixed it like you said! Back up and running, thanks for the help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.