Server Error After PHP Extension or Module Missing (mbstring, curl, gd, zip)
Plugins fail with fatal errors when a needed PHP extension is not installed.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Typical messages
Call to undefined function mb_strlen(), curl_init, imagecreatefromjpeg, or ZipArchive not found.
Fix
- In the hosting panel, find PHP Extensions (or Select PHP Version) and enable the extension for your PHP version.
- On a VPS, install the package for your PHP version with the system package manager and restart the PHP service.
- Check the extension appears in a phpinfo page, then remove that page from the server.
- If the panel has no option, ask the host.
Extensions are enabled per PHP version, so if you changed versions, set them again. See Which PHP Version Should You Use, and How to Change It Safely.
Related guides
- YouTube Video Embed Not Working or Showing an Error on Your Website
- Yoast SEO or Rank Math Sitemap Shows 404 or Is Empty
- WordPress XML Sitemap Gives 404 or Is Not Generating
- Changed the WordPress Address (URL) and Now the Site or Login Is Broken
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.