Technology Insights

CentOS Linux: PHP Fatal error: Call to undefined function imagetypes()

After moving a WordPress site from one server to a brand new server I ran into an issue with one of the WordPress plugins called MM-Forms. The MM-Forms WordPress plugin allows you to easily create contact forms that will either email filled out forms to you, store those forms in the MySQL database, or both email you and store the results in the database. The issue was the fact that the contact form was not displaying on the page it was configured to display on. After digging around a bit I located the issue by looking in the Apache logs. The issue ended up being with the PHP function called imagetypes. Below I describe the actual error noticed in the Apache logs, the CentOS RPM package that will provide the PHP function that was missing, and the yum logs from installing the package.

Technology Errors

MM-Forms WordPress Plugin Not Working Over HTTPS After FORCE_SSL_ADMIN Set

I have had FORCE_SSL_ADMIN set for quite awhile now in my wp-config.php file which forces all traffic to /wp-admin/ to be HTTPS. When I initially configured this setting it broke numerous WordPress plugins which I fixed however I missed MM-Forms being broken. The issue was the exact same as previous plugins that had the issue so it wasn’t to hard to fix but I wanted to share in case anyone else is having trouble getting the MM-Forms plugin working over SSL. Below I will explain what lines need to be changed to get MM-Forms working over HTTPS including syntax, line numbers, and old code.