CodeIgniter Forums
Error when using Amazon S3 library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Error when using Amazon S3 library (/showthread.php?tid=60093)



Error when using Amazon S3 library - El Forum - 01-13-2014

[eluser]Unknown[/eluser]
Hello!

I was trying to use this library to store some images on S3, but got this error when trying the example (listBuckets()): https://github.com/psugand/CodeIgniter-S3

Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClass::$body

Filename: libraries/S3.php

Line Number: 1487

Any ideas? First time I'm using codeigniter...

All I did was:
Code:
// Load Library
  $this->load->library('s3');
  
  // List Buckets
  var_dump($this->s3->listBuckets());

It did get the buckets, but printed the error first. Calling getBucket had the same problem..