Duplicate Plugin or Theme Files
The same function has been defined twice. This usually happens when two versions of a plugin are installed, or a file has become duplicated or corrupted.
Why this happens
PHP does not allow the same function or class to be defined twice in the same request. This typically happens when a plugin's files get duplicated (for example, two folders for the same plugin), or when custom code copied into functions.php duplicates a function that's already defined elsewhere.
Step-by-step fix
- Check the error message for the file path where the issue is.
- Go to that plugin's folder using File Manager.
- Look for a duplicate copy (e.g. both plugin-name and plugin-name-2).
- Delete or rename the incorrect duplicate.
- If the whole plugin seems to be the problem, uninstall it completely and do a fresh install.
How to prevent it happening again
- Never install two versions or two copies of the same plugin at once.
- If copying code snippets into functions.php, check whether the function already exists in another plugin or the theme.
- Keep a single, current copy of each plugin rather than leaving old backups inside wp-content/plugins.
😩 Still stuck, or want it fixed without doing it yourself?
I fix WordPress errors like this every day. Send me your error and I'll get your site back up - most fixes are completed within 24 hours.