MrMayberry Posted March 8 Share Posted March 8 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 Link to comment Share on other sites More sharing options...
MrMayberry Posted March 8 Author Share Posted March 8 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 Link to comment Share on other sites More sharing options...
osCommerce-Official Posted March 8 Share Posted March 8 @Ivan Holbi and @pandrei could you please check this? Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 8 Share Posted March 8 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 Link to comment Share on other sites More sharing options...
MrMayberry Posted March 8 Author Share Posted March 8 12 minutes ago, pandrei said: Could you send one of those images for testing? Sending now thru PM. Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 8 Share Posted March 8 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 Link to comment Share on other sites More sharing options...
MrMayberry Posted March 8 Author Share Posted March 8 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 Link to comment Share on other sites More sharing options...
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.