AWS

WordPress White page error – Call to undefined function imagecreatefromstring

JJ
Jobin Joseph · Founder and CEO
·Published 12 February 2018·1 min read

If you ever get a white page on your WordPress, the best way to troubleshoot is to check the apache error log first. It will have enough information about the issue happening now.

In my case, the error was showing as below in the /var/log/httpd/error_log file.

PHP Fatal error: Uncaught Error: Call to undefined function imagecreatefromstring() 

Solution

The issue turned to be a package missing issue, i was missing the php gd package. So i ran the below command to fix this issue

 yum install -y php70w-gd && systemctl restart httpd

If you are usung webtatic repo, you might need to add the version to the package name.

 yum install -y php-gd  && systemctl restart httpd 
Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →