KissIT Image Thumbnailer

Error when using with Index Carousel - KissIT Image Thumbnailer

Error when using with Index Carousel

by lecarlb » Thu Mar 14, 2024 1:02 am

Hello,

KISSIT version -> 3.4.0
1.0.8.4 Phoenix

When I turn on the Carousel on Index, I get the following error:

Code: Select all

[Wed Mar 13 13:38:35.329141 2024] [php7:error] [pid 21236] [client 173.190.176.123:63939] PHP Fatal error:  Uncaught Error: Object of class Image could not be converted to string in /usr/local/apache/subdomains/BTFraGranc3SbutL3r/www.xxxxxxxxxx.com/htdocs/includes/modules/content/index/cm_i_slider.php:51\nStack trace:\n#0 /usr/local/apache/subdomains/BTFraGranc3SbutL3r/www.xxxxxxxxxx.com/htdocs/includes/system/versioned/1.0.7.9/osc_template.php(106): cm_i_slider->execute()\n#1 /usr/local/apache/subdomains/BTFraGranc3SbutL3r/www.xxxxxxxxxx.com/htdocs/templates/default/includes/pages/index.php(44): oscTemplate->getContent()\n#2 /usr/local/apache/subdomains/BTFraGranc3SbutL3r/www.xxxxxxxxxx.com/htdocs/index.php(17): require('/usr/local/apac...')\n#3 {main}\n  thrown in /usr/local/apache/subdomains/BTFraGranc3SbutL3r/www.xxxxxxxxxx.com/htdocs/includes/modules/content/index/cm_i_slider.php on line 51, referer: https://xxxxxxxxxx.com/
I have KISSIT 3.5.0 on a Phoenix 1.0.7.18 site, I don't have these issues.

If I need to update KISSIT, what's the best version to use on a Phoenix 1.0.8.4 site?
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Contact:

Re: Error when using with Index Carousel

by raiwa » Thu Mar 14, 2024 12:28 pm

Hi, there is no kissit version for Phoenix 1.0.8.4.
Did you try to remove kissit like suggested in the carousel thread?
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Error when using with Index Carousel

by lecarlb » Thu Mar 14, 2024 1:04 pm

raiwa wrote:Hi, there is no kissit version for Phoenix 1.0.8.4.
Did you try to remove kissit like suggested in the carousel thread?
How do I safely remove the image class?
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Contact:

Re: Error when using with Index Carousel

by raiwa » Thu Mar 14, 2024 1:07 pm

delete it, but not the original, the one in the directory;
includes\system\override\kiss_image_thumbnailer\image.php
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Error when using with Index Carousel

by lecarlb » Thu Mar 14, 2024 1:14 pm

I have version 3.4.0 which doesn't have that file.
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Contact:

Re: Error when using with Index Carousel

by raiwa » Thu Mar 14, 2024 1:25 pm

Remove:
includes\functions\kiss_it_image.php

If it throws an error, delete in the database hooks table the row containing:
hooks_method = 'kiss_it_image'
make a backup before!
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Error when using with Index Carousel

by lecarlb » Thu Mar 14, 2024 1:37 pm

raiwa wrote:Remove:
includes\functions\kiss_it_image.php

If it throws an error, delete in the database hooks table the row containing:
hooks_method = 'kiss_it_image'
make a backup before!
It gave me a blank page when I removed includes\functions\kiss_it_image.php

Unfortunately my host doesn't doesn't allow direct access to the databae.
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Contact:

Re: Error when using with Index Carousel

by raiwa » Thu Mar 14, 2024 1:43 pm

restore the kiss_it_image_function fiel.
In that file, change the name of the first function from "tep_image" to "tep_image_off" and the name of the second function from "tep_image_legacy" to "tep_image".
This bypasses kiss_it_image.

And change your hosting!
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Error when using with Index Carousel

by lecarlb » Thu Mar 14, 2024 1:52 pm

When I changed those 2 functions the Carousel on Index worked.
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Contact:

Re: Error when using with Index Carousel

by raiwa » Thu Mar 14, 2024 2:12 pm

O.K. please revert the changes and post the lines around the shown error:
includes/modules/content/index/cm_i_slider.php on line 51

Or update your store to 1.0.8.6 and kissit to the latest version.
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact: