On Sat, Jan 15, 2011 at 2:56 AM, roman_coder <clayton.b...@gmail.com> wrote:
> I'm working on Cakephp 1.3.6 and leveraging JonBradley's S3 plugin
> (https://github.com/jonbradley/CakePHP-S3-Upload).  It works great on
> my local dev box but once I put it on a hosting provider I get the
> class not found error.  I've tried both Joyent (old TextDrive & 1and1)
> & got the same error.
>
> Fatal error: Class 'S3' not found in /homepages/6/d271502791/htdocs/
> demo/app/plugins/upload/controllers/components/upload.php on line 26
>
> The import for the S3 class is here: -upload.php on line 26.
>
> App::import('Vendor', 'Upload.S3');
>
> I've even tried the below and got the same error:
>
> App::import('Vendor', 'Upload.S3', array('file'=>'/demo/app/plugins/
> upload/vendors/S3/S3.php'));
>
> Anyone have any ideas why it's not finding this class?

The 'file' option path should be relative from your app/vendors
directory. So, no slash at the beginning, for starters. But you've got
this in a plugin's vendors dir for some reason. Are you sure that's
where you want it?

Unfortunately, the $search array option is not well documented. You
may need to peruse the source to figure it out.
http://api.cakephp.org/view_source/app/#line-866

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to