phpThumbOf icon indicating copy to clipboard operation
phpThumbOf copied to clipboard

S3 and phpThumbOf Integration Error

Open itskingori opened this issue 12 years ago • 4 comments

I'm getting this error when I turn on the integration ...

PHP Fatal error: Class 'CFRuntime' not found in /home/xxxxxxxxxxxx/public_html/core/components/phpthumbof/model/aws/services/s3.class.php on line 69

Also have a custom CNAME but pretty much have followed the instructions in the docs. Could be that I messes around with the formats of one of the input e.g. CNAME needs a trailing '.' but there are no examples or results on google of anyone who's got this working...

Google the error you get a couple of sites that are down with the same error ...

itskingori avatar Sep 12 '12 16:09 itskingori

The fix we found that worked and allowed the caching to work on the S3 Bucket was as below:

/core/components/phpthumbof/model/aws/sdk.class.php line 136

CHANGE FROM if(class_exists('CFRuntime_Exception') != true) {

TO if(class_exists('CFRuntime') != true) {

jonrawlins avatar Sep 13 '12 10:09 jonrawlins

Just checked the version that comes bundles with phpthumbof ... file is of version 2010.10.11 ...

New version is 2012, same line is different (probably close to the latest since I downloaded it recently and use it in another section of the site ... works perfectly there)

I'll check it out.

itskingori avatar Sep 13 '12 10:09 itskingori

didn't worked for us. site remains white. trying to use s3 without cname.

PS: grrr... is working after doing exactly what is written for that patch : )

charismeki avatar Nov 26 '12 09:11 charismeki

I can confirm that this fix works.

oksushi avatar Jan 06 '13 04:01 oksushi