Advertisement:

Author Topic: Amazon S3 Upload Error  (Read 4634 times)

aj.learmondcriqui

  • Newbie
  • *
  • Posts: 1
Amazon S3 Upload Error
« on: January 07, 2014, 06:09:54 pm »
Upload Error
« Last Edit: August 21, 2014, 06:09:16 am by aj.learmondcriqui »

zgromadzenie

  • Newbie
  • *
  • Posts: 4
Re: Amazon S3 Upload Error
« Reply #1 on: March 03, 2014, 12:08:26 pm »
I have the same problem. Is there any solution for that?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Amazon S3 Upload Error
« Reply #2 on: March 03, 2014, 12:15:49 pm »
Hi,

Could you specify which version of Osclass are you running?
Which exactly error ? I mean, please, paste here the string of the error

zgromadzenie

  • Newbie
  • *
  • Posts: 4
Re: Amazon S3 Upload Error
« Reply #3 on: March 03, 2014, 12:31:52 pm »
Hi,

I'm using Osclass 3.2.2 with ImageMagick.

Just discovered that the .png files are not being uploaded to S3, but they land in /oc-content/uploads, so it's strictly related to that plugin.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Amazon S3 Upload Error
« Reply #4 on: March 03, 2014, 12:35:20 pm »
Hi,

Could you specify which version of Osclass are you running?
Which exactly error ? I mean, please, paste here the string of the error

Please enable PHP debug : http://doc.osclass.org/Debug_PHP_errors

bluenote

  • Newbie
  • *
  • Posts: 7
Re: Amazon S3 Upload Error
« Reply #5 on: March 03, 2014, 09:19:15 pm »
Hello
my problem transfered at the right place as requested.
Here my problem :

bucket is empty
broken image as preview
Chrome
Osclass last update
amazonS3 plugin last
hosting provider:bluehost

WHen i uninstall the plugin,
i get the pics displayed normally.

i added debug and got this (when repeating the same process) :
[03-Mar-2014 19:02:08 Europe/Madrid] PHP Notice:  Undefined index: sCategory in /home3/coderedu/public_html/bingoanuncios/oc-includes/osclass/helpers/hSearch.php on line 454
[03-Mar-2014 19:04:12 Europe/Madrid] PHP Notice:  Undefined index: sCategory in /home3/coderedu/public_html/bingoanuncios/oc-includes/osclass/helpers/hSearch.php on line 454
[03-Mar-2014 19:05:26 Europe/Madrid] PHP Notice:  Undefined index: sCategory in /home3/coderedu/public_html/bingoanuncios/oc-includes/osclass/helpers/hSearch.php on line 454
[03-Mar-2014 19:07:14 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/19_original.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:14 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/19.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:14 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/19_preview.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:14 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/19_thumbnail.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:15 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/20_original.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:15 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/20.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:15 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/20_preview.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:15 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/20_thumbnail.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:16 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/21_original.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:16 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/21.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:16 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/21_preview.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:07:16 Europe/Madrid] PHP Warning:  S3::inputFile(): Unable to open input file: /home3/coderedu/public_html/bingoanuncios/oc-content/uploads/21_thumbnail.jpg in /home3/coderedu/public_html/bingoanuncios/oc-content/plugins/amazons3/S3.php on line 224
[03-Mar-2014 19:08:30 Europe/Madrid] PHP Notice:  Undefined index: sCategory in /home3/coderedu/public_html/bingoanuncios/oc-includes/osclass/helpers/hSearch.php on line 454

broken images screen :


Looks like, it just upload to my server but doesn't do anything with amazon.
Is there something special to do on amazon side, some settings to control?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Amazon S3 Upload Error
« Reply #6 on: March 03, 2014, 09:24:01 pm »
Hi,

I just created this issue on GitHub, you could follow the development here : https://github.com/osclass/plugin-amazons3/issues/2

bluenote

  • Newbie
  • *
  • Posts: 7
Re: Amazon S3 Upload Error
« Reply #7 on: March 04, 2014, 01:16:46 pm »
 i just signed to github to follow  u.
i thank you also for your great support.
 8)

nopzdk

  • Newbie
  • *
  • Posts: 6
Re: Amazon S3 Upload Error
« Reply #8 on: May 27, 2014, 10:05:48 pm »
i fixed it by modifying lines 35 to 39 as below


        $s3->putObjectFile(osc_base_path().$resource['s_path'].$resource['pk_i_id']. '_original.jpg', osc_get_preference('bucket', 'amazons3'), $resource['pk_i_id'] . '_original.jpg', S3::ACL_PUBLIC_READ);
            }
        $s3->putObjectFile(osc_base_path().$resource['s_path'].$resource['pk_i_id']. '.jpg', osc_get_preference('bucket', 'amazons3'), $resource['pk_i_id'] . '.jpg', S3::ACL_PUBLIC_READ);
        $s3->putObjectFile(osc_base_path().$resource['s_path'].$resource['pk_i_id']. '_preview.jpg', osc_get_preference('bucket', 'amazons3'), $resource['pk_i_id'] . '_preview.jpg', S3::ACL_PUBLIC_READ);
        $s3->putObjectFile(osc_base_path().$resource['s_path'].$resource['pk_i_id']. '_thumbnail.jpg', osc_get_preference('bucket', 'amazons3'), $resource['pk_i_id'] . '_thumbnail.jpg', S3::ACL_PUBLIC_READ);

bluenote

  • Newbie
  • *
  • Posts: 7
Re: Amazon S3 Upload Error
« Reply #9 on: May 28, 2014, 04:49:31 pm »
Hello nopzdk,

Could you tell me where to replace this ? What file ?


Thanks in advance

webclass

  • Newbie
  • *
  • Posts: 1
Re: Amazon S3 Upload Error
« Reply #10 on: August 29, 2014, 01:34:51 am »
Great stuff! Save me an evening.