WordPress Fatal Error: Call to Undefined Function
This error means code calls a function that does not exist, often because a plugin is missing, disabled or too old.
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.
Read the message
The log line names the function, the file and the line. The file path tells you whether a plugin, theme or core is involved.
Common causes
- A theme depends on a plugin that is now deactivated or removed.
- A plugin update needs a newer PHP or WordPress version, or an old version of an add-on.
- A partial update left mixed old and new files.
- A function from PHP extensions (such as mbstring or curl) is not installed.
Fix
- Rename the named plugin or theme folder to deactivate it.
- Reinstall it from a clean copy, or restore the previous version. See rolling back a plugin.
- Install or enable the missing PHP extension in your hosting panel.
See WordPress debug mode to read the log.
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.