WordPress White page error – Call to undefined function imagecreatefromstring

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 

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Scroll to Top