splittingred / phpThumbOf

A secure phpthumb output filter for MODx Revolution
http://rtfm.modx.com/display/addon/phpthumbof/
23 stars 17 forks source link

S3 and phpThumbOf Integration Error #42

Open itskingori opened 12 years ago

itskingori commented 12 years ago

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

_PHP Fatal error: Class 'CFRuntime' not found in /home/xxxxxxxxxxxx/publichtml/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 ...

jonrawlins commented 12 years ago

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) {

itskingori commented 12 years ago

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.

charismeki commented 11 years ago

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 : )

oksushi commented 11 years ago

I can confirm that this fix works.