Advertisement:

Author Topic: PHP upgrade to 7.0.10 issue  (Read 1201 times)

Syed

  • Sr. Member
  • ****
  • Posts: 254
PHP upgrade to 7.0.10 issue
« 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
« Last Edit: September 23, 2017, 09:25:53 am by Syed »

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: PHP upgrade to 7.0.10 issue
« Reply #1 on: September 23, 2017, 10:17:29 am »
try to install GD2 library in your new php version if it isnt

Syed

  • Sr. Member
  • ****
  • Posts: 254
Re: PHP upgrade to 7.0.10 issue
« Reply #2 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
« Last Edit: September 23, 2017, 03:54:23 pm by Syed »

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: PHP upgrade to 7.0.10 issue
« Reply #3 on: September 24, 2017, 02:48:11 am »
thanks, i was thinking about the right library, if it was GD2 or ImageMagick  ;D