Osclass forums

Support forums => Installation / Update help => Topic started by: Syed on September 23, 2017, 09:17:07 am

Title: PHP upgrade to 7.0.10 issue
Post by: Syed on September 23, 2017, 09:17:07 am
I just upgraded my php 5.4.16 to 7.0.10 on my centos 7 VPS and got these errors

1. Images are not uploaded
2. Emails are not sent to admin when new item is published. ... much more...

Here is error log
[Sat Sep 23 09:40:06.586580 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function imagecreatefromstring() in /home/username/public_html/oc-includes/osclass/classes/ImageProcessing.php:75, referer: https://myDomain.tld/item/new

[Sat Sep 23 09:40:06.586665 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr: Stack trace:, referer: https://myDomain.tld/item/new

[Sat Sep 23 09:40:06.586671 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr: #0 /home/username/public_html/oc-includes/osclass/classes/ImageProcessing.php(24): ImageProcessing->__construct('/home/username'), referer: https://myDomain.tld/item/new

[Sat Sep 23 09:40:06.586676 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr: #1 /home/username/public_html/oc-includes/osclass/ItemActions.php(1404): ImageProcessing::fromFile('/home/username'), referer: https://myDomain.tld/item/new

[Sat Sep 23 09:40:06.586681 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr: #2 /home/username/public_html/oc-includes/osclass/ItemActions.php(234): ItemActions->uploadItemResources(Array, 29660), referer: https://myDomain.tld/item/new

[Sat Sep 23 09:40:06.586685 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr: #3 /home/username/public_html/oc-includes/osclass/controller/item.php(151): ItemActions->add(), referer: https://myDomain.tld/item/new

[Sat Sep 23 09:40:06.586690 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr: #4 /home/username/public_html/index.php(97): CWebItem->doModel(), referer: https://myDomain.tld/item/new

[Sat Sep 23 09:40:06.586694 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr: #5 {main}, referer: https://myDomain.tld/item/new

[Sat Sep 23 09:40:06.586698 2017] [fcgid:warn] [pid 5830] [client 43.245.8.114:36049] mod_fcgid: stderr:   thrown in /home/username/public_html/oc-includes/osclass/classes/ImageProcessing.php on line 75, referer: https://myDomain.tld/item/new


Regards
Title: Re: PHP upgrade to 7.0.10 issue
Post by: Liath on September 23, 2017, 10:17:29 am
try to install GD2 library in your new php version if it isnt
Title: Re: PHP upgrade to 7.0.10 issue
Post by: Syed on September 23, 2017, 01:08:20 pm

Thank you Liath your reply helped me, actually I forgot to install ImageMagick module for PHP7.
Every thing is working fine now.

Regards
Title: Re: PHP upgrade to 7.0.10 issue
Post by: Liath on September 24, 2017, 02:48:11 am
thanks, i was thinking about the right library, if it was GD2 or ImageMagick  ;D