KissIT Image Thumbnailer

PHP Warnings - KissIT Image Thumbnailer

PHP Warnings

by kudos » Mon Nov 07, 2022 11:04 pm

version 1.0.8.19
kissit 4.5.1
installed from an upgrade over time from 1.0.7.12 phoenix and 3.5.1 kissit

getting warnigns in the logs from store side

Code: Select all

 PHP Warning:  imagecreatefrompng(): './images/' is not a valid PNG file in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 395
 PHP Warning:  imagesx() expects parameter 1 to be resource, bool given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 396
 PHP Warning:  imagesy() expects parameter 1 to be resource, bool given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 397
 PHP Warning:  Division by zero in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 399
 PHP Warning:  imagecreatetruecolor() expects parameter 2 to be int, float given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 407
 PHP Warning:  imagealphablending() expects parameter 1 to be resource, null given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 408
 PHP Warning:  imagesavealpha() expects parameter 1 to be resource, null given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 409
 PHP Warning:  imagefilledrectangle() expects parameter 1 to be resource, null given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 411
 PHP Warning:  imagecopyresampled() expects parameter 1 to be resource, null given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 412
 PHP Warning:  imagesx() expects parameter 1 to be resource, null given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 414
 PHP Warning:  imagesy() expects parameter 1 to be resource, null given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 415
 PHP Warning:  imagecopy() expects parameter 2 to be resource, null given in /includes/system/override/kiss_image_thumbnailer/image_kissit.php on line 439
kudos
VIP Member
VIP Member
Posts: 7
Joined: Sat Jan 16, 2021 8:48 pm
Contact:

Re: PHP Warnings

by raiwa » Tue Nov 08, 2022 8:10 am

imagecreatefrompng(): './images/' is not a valid PNG file
It seems the image path/file is incomplete or incorrect.
If you have error display switched on, you should see where the error is produced.
Anyway it’s only a warning.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact: