KissIT Image Thumbnailer

no_image_available_150_150.gif not found - KissIT Image Thumbnailer

no_image_available_150_150.gif not found

by edfaught » Wed Nov 02, 2022 4:16 pm

Following warning shows up when I log in as admin. I'm stumped as file is definitely there.

PHP Warning: getimagesize(images/no_image_available_150_150.gif): failed to open stream: No such file or directory in /includes/system/override/kiss_image_thumbnailer/image_helper.php on line 113

Phoenix 1.0.8.7
Kissit 4.5.1
PHP 7.4.32
User avatar
edfaught
Posts: 49
Joined: Mon Oct 26, 2020 3:22 pm
Contact:

Re: no_image_available_150_150.gif not found

by raiwa » Fri Nov 04, 2022 7:49 am

Do you have a copy in:
admin/images/
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: 1214
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: no_image_available_150_150.gif not found

by edfaught » Mon Nov 14, 2022 8:52 pm

Uploading the optional admin image files fixed this issue but now I get:
Uncaught ValueError: imagecolorsforindex(): Argument #2 ($color) is out of range in \includes\system\override\kiss_image_thumbnailer\image_kissit.php:332

The value of $trnprt_indx is 127.
User avatar
edfaught
Posts: 49
Joined: Mon Oct 26, 2020 3:22 pm
Contact:

Re: no_image_available_150_150.gif not found

by raiwa » Tue Nov 15, 2022 8:22 am

This looks like a corrupted image. Try to find the image which causes this error and open it in Photoshop or Lightroom and save and upload it again.
If this doesn't help try this fix:
in: includes\system\override\kiss_image_thumbnailer\image_kissit.php
change line 239:

Code: Select all

          $trnprt_color = @imagecolorsforindex ( $this->_image, $trnprt_indx );
to:

Code: Select all

          if ($trnprt_indx < imagecolorstotal($this->_image)){
        		$trnprt_color = imagecolorsforindex ( $this->_image, $trnprt_indx );
				  }          
PLease report back and I'll add this fix.

Thank you
Rainer
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: 1214
Joined: Sat Dec 21, 2019 8:08 am
Contact: