Advertisement:

Author Topic: Image upload failed  (Read 2318 times)

zmigrodzianin@wp.pl

  • Newbie
  • *
  • Posts: 10
Image upload failed
« on: November 14, 2014, 07:00:19 pm »
Hi,

i have a problem. User can`t upload image (cars system). Image load but when is ready i see: Upload failed. From Admin Panel i can add image normal.

I replace file (image plugin) but this not help. I check too folder attributes on FTP. Stil not help.

I have a 3.4.3 version. A few days ago everything works fine and i nothing to do on admin panel and ftp.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image upload failed
« Reply #1 on: November 14, 2014, 08:16:27 pm »
@zmigrodzianin@wp.pl
Is ImageMagick installed on your server (oc-admin > settings > media)?

zmigrodzianin@wp.pl

  • Newbie
  • *
  • Posts: 10
Re: Image upload failed
« Reply #2 on: November 15, 2014, 12:17:55 am »
I think so. I have option oc-admin/settings/media:

ImageMagic: (check field) Use ImageMagic, not GL

I disable and enable. Not help.

In Plugins i have not ImegeMagic, only Image Uploader.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image upload failed
« Reply #3 on: November 15, 2014, 01:00:58 am »
@zmigrodzianin@wp.pl
Is this with default template?
Is upload folder writable (chmod settings to 755 or 777)?
Do you have some logs in error log?

zmigrodzianin@wp.pl

  • Newbie
  • *
  • Posts: 10
Re: Image upload failed
« Reply #4 on: November 15, 2014, 01:18:52 am »
No, this is another template but 2-3 days ago works fine.
Yes. 777

Logs:
mod_fcgid: stderr: PHP Fatal error:  Call to undefined method DateTime::setTimestamp() in /home/allemoto/domains/allemotocykle.pl/public_html/oc-content/plugins/image_uploader/index.php on line 397, referer: Osclass (v.343)

Aficionado

  • Guest
Re: Image upload failed
« Reply #5 on: November 15, 2014, 01:24:00 am »
The Permissions should be:

644 for Files and 755 for Folders.

To be safe.


frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image upload failed
« Reply #6 on: November 15, 2014, 03:00:10 pm »
@Aficionado
Yes you are right, I care about folders only, but sometimes to be sure for testing purpose 777 should be ok as well.

zmigrodzianin@wp.pl

  • Newbie
  • *
  • Posts: 10
Re: Image upload failed
« Reply #7 on: November 15, 2014, 03:23:24 pm »
Nothing help :( 777 too

Somthing else...? :(

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Image upload failed
« Reply #8 on: November 15, 2014, 03:28:55 pm »
Hi,

mod_fcgid: stderr: PHP Fatal error:  Call to undefined method DateTime::setTimestamp() in /home/allemoto/domains/allemotocykle.pl/public_html/oc-content/plugins/image_uploader/index.php on line 397, referer: Osclass (v.343)

What version of PHP is running on your server? ??? Because DateTime class was introduced in PHP 5.2.0, if not found it means your PHP version is too old... ???

Regards
« Last Edit: November 15, 2014, 03:30:36 pm by teseo »

zmigrodzianin@wp.pl

  • Newbie
  • *
  • Posts: 10
Re: Image upload failed
« Reply #9 on: November 15, 2014, 04:11:20 pm »
Im test 5.2.17 and 5.3.26

Im think that problem is on file plugin. From admin panel i can add image normal.

zmigrodzianin@wp.pl

  • Newbie
  • *
  • Posts: 10
Re: Image upload failed
« Reply #10 on: November 21, 2014, 01:34:00 pm »
Help. Please! :-(