Advertisement:

Author Topic: Unable to upload images  (Read 1570 times)

andrei2987

  • Newbie
  • *
  • Posts: 40
Unable to upload images
« on: February 27, 2017, 12:30:00 pm »
Hi,

I can't upload images to ad:

in admin I have this info -- ImageMagick library is not loaded
in ad form I have this error --XHR returned response code 500
in debug.log I have this -- PHP Fatal error:  Class 'Imagick' not found in /public_html/oc-includes/osclass/classes/ImageResizer.php on line 55

Osclass version is 3.7.1

Please help
Thank you.

« Last Edit: February 27, 2017, 12:32:16 pm by andrei2987 »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Unable to upload images
« Reply #1 on: February 27, 2017, 01:09:05 pm »
Hi,

For same reason looks like you had ImageMagick running at some point ("Use ImageMagick instead of GD library" is checked) and now isn't available anymore. As the checkbox is greyed out on Admin side, you need to disable it by other means.

In bender/header.php locate this:

Code: [Select]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

and insert above:

Code: [Select]
osc_set_preference('use_imagick', 0);
Then see if "Use ImageMagick instead of GD library" is now unchecked and you can upload images normally. If so, delete the new line in header.php.

Regards

andrei2987

  • Newbie
  • *
  • Posts: 40
Re: Unable to upload images
« Reply #2 on: February 27, 2017, 02:06:47 pm »
hi teseo,

Yes, ImageMagick was active and functioned until now.

I changed in phpMyAdmin in table oc_t_performance, use_imagick from 1 to 0
Now is uncheck in admin an is works to upload images.
But the message still appears --- ImageMagick library is not loaded.

Thx.


teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Unable to upload images
« Reply #3 on: February 27, 2017, 02:24:40 pm »
Something happened to your ImageMagick/Imagick installation on the background... ??? Are you on VPS or Dedicated server?

andrei2987

  • Newbie
  • *
  • Posts: 40
Re: Unable to upload images
« Reply #4 on: February 27, 2017, 02:58:48 pm »
Something happened to your ImageMagick/Imagick installation on the background... ??? Are you on VPS or Dedicated server?

VPS

I now asked the hosting company and they said it was a recent update to Cpanel AND that ImageMagick is some very old script. They will check!

 ??? ???

Aficionado

  • Guest
Re: Unable to upload images
« Reply #5 on: February 27, 2017, 03:17:10 pm »

VPS

I now asked the hosting company and they said it was a recent update to Cpanel AND that ImageMagick is some very old script. They will check!

 ??? ???

Indeed very old.

http://pecl.php.net/package/imagick

Old like 2017. Apparently they have no idea what they are talking about.

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Unable to upload images
« Reply #6 on: March 01, 2017, 12:04:39 pm »
LOL


VPS

I now asked the hosting company and they said it was a recent update to Cpanel AND that ImageMagick is some very old script. They will check!

 ??? ???

Indeed very old.

http://pecl.php.net/package/imagick

Old like 2017. Apparently they have no idea what they are talking about.

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Unable to upload images
« Reply #7 on: March 01, 2017, 12:08:12 pm »
Hi andrei2987,

I also run on a VPS but I do all upgrades/updates myself since I have un-managed VPS so I am just wondering shouldn't you keep your VPS up to date yourself or do you use a managed service?


Regards,
Eric

Something happened to your ImageMagick/Imagick installation on the background... ??? Are you on VPS or Dedicated server?

VPS

I now asked the hosting company and they said it was a recent update to Cpanel AND that ImageMagick is some very old script. They will check!

 ??? ???

andrei2987

  • Newbie
  • *
  • Posts: 40
Re: Unable to upload images
« Reply #8 on: March 02, 2017, 09:44:23 pm »
Hi SmaRTey,

I'm not sure what kind of account is, but I think is managed.
Where can I check?

See a capture of my account..

Hi andrei2987,

I also run on a VPS but I do all upgrades/updates myself since I have un-managed VPS so I am just wondering shouldn't you keep your VPS up to date yourself or do you use a managed service?


Regards,
Eric

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Unable to upload images
« Reply #9 on: March 02, 2017, 11:48:45 pm »
Hi,

the image shows Cpanel, did you install it yourself on your VPS or is this your only and main panel to make changes to your system?

On a VPS you are usually able to first choose an OS (Linux or Windows) and then use putty or any other SSH/Telnet client to login on your server. I installed WebMin for example (alternative to CPanel, Plex and others) after selecting a Linux version as OS. I use WebMin to do some regular checks/changes on my system. But when I add new packages ie. phpMyAdmin / MariaDB (alternative for MySQL) / PHP / PHP-FPM or anything else I either use 'YUM' or do a manual download / make&&install of the latest version available.
This way you are fully in control of your system and you can decide what version of software to use. For example, installing Apache using yum (or through CPanel/Plex/Webmin) will usually not get you the latest stable version available. To be able to use the latest stable version you would have to do a manual download and install plus configuration. All this is done on system level ie. using Putty terminal in my case. At least this is what I've learned from experience using a CentOS 7 install.

SO in case you own a VPS you should be able to make system changes and other softwares as a 'root' user besides having the option of making changes through a Visual Tool like CPanel. CPanel is just a tool to make it easier for users to make changes to their hosting environment. I've had CPanel when hosting a website, not being a VPS. If the CPanel is all you have available and you are unable to login to your VPS as root (or admin on Windows) to uninstall CPanel for instance and start using some other visual server tool I doubt it if you're on a true VPS but could be:)


Regards,
Eric

andrei2987

  • Newbie
  • *
  • Posts: 40
Re: Unable to upload images
« Reply #10 on: March 03, 2017, 10:29:46 am »
Thank you SmaRTeY for these details.
In my case I have access only to Cpanel.
I had a new discussion with the hosting company and they said they would fix the problem this weekend.
Thanks again for your help.


Hi,

the image shows Cpanel, did you install it yourself on your VPS or is this your only and main panel to make changes to your system?

On a VPS you are usually able to first choose an OS (Linux or Windows) and then use putty or any other SSH/Telnet client to login on your server. I installed WebMin for example (alternative to CPanel, Plex and others) after selecting a Linux version as OS. I use WebMin to do some regular checks/changes on my system. But when I add new packages ie. phpMyAdmin / MariaDB (alternative for MySQL) / PHP / PHP-FPM or anything else I either use 'YUM' or do a manual download / make&&install of the latest version available.
This way you are fully in control of your system and you can decide what version of software to use. For example, installing Apache using yum (or through CPanel/Plex/Webmin) will usually not get you the latest stable version available. To be able to use the latest stable version you would have to do a manual download and install plus configuration. All this is done on system level ie. using Putty terminal in my case. At least this is what I've learned from experience using a CentOS 7 install.

SO in case you own a VPS you should be able to make system changes and other softwares as a 'root' user besides having the option of making changes through a Visual Tool like CPanel. CPanel is just a tool to make it easier for users to make changes to their hosting environment. I've had CPanel when hosting a website, not being a VPS. If the CPanel is all you have available and you are unable to login to your VPS as root (or admin on Windows) to uninstall CPanel for instance and start using some other visual server tool I doubt it if you're on a true VPS but could be:)


Regards,
Eric

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Unable to upload images
« Reply #11 on: March 03, 2017, 05:32:32 pm »
Yw, I was just being my curious self ;)

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Unable to upload images
« Reply #12 on: March 12, 2017, 01:45:57 pm »
And to add, I thought I had my image upload fixed (see other thread about error 500) but it seems I also still have image upload issue using 3.7.1.

I know my setup is OK since I am running a 3.6.1 dev version without any issues. (This version does have core changes though I did in the past.)

Regards,
Eric

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Unable to upload images
« Reply #13 on: March 12, 2017, 03:55:30 pm »
Manage to fix it, see other thread regarding same issue (error 500 also in this forum)

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work