Title: Fatal error: Cannot redeclare register_setting()
Last modified: September 7, 2020

---

# Fatal error: Cannot redeclare register_setting()

 *  [maniyip](https://wordpress.org/support/users/maniyip/)
 * (@maniyip)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-register_setting/)
 * Hi,
    My website has a critical error, is there any way to fix this issue? Fatal
   error: Cannot redeclare register_setting() (previously declared in /home/idostuffcom/
   public_html/wp-includes/option.php:2218) in /home/idostuffcom/public_html/wp-
   admin/includes/plugin.php on line 1788
 * Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-register_setting/#post-13369266)
 * Errors like this are logged. Check the error log on your server. If you can’t
   find the log, please contact your host.
 * Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/
   debug.log to see if anything gets logged there. [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 * You can also try this:
    – [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause. – If that does not resolve the issue, 
   access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel, navigate to `/wp-content/
   themes/` and rename the directory of your currently active theme. This will force
   the default theme to activate and hopefully rule-out a theme-specific issue (
   theme functions can interfere like plugins).
 *  Thread Starter [maniyip](https://wordpress.org/support/users/maniyip/)
 * (@maniyip)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-register_setting/#post-13369309)
 * Debug log is the same error message as I sent earlier.
    Error log has additional
   error [07-Sep-2020 01:34:36 UTC] PHP Fatal error: require(): Failed opening required‘/
   home/idostuffcom/public_html/wp-includes/sitemaps/class-wp-sitemaps-index.php’(
   include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) 
   in /home/idostuffcom/public_html/wp-settings.php on line 271
 * I tried resetting the plugins and rename the theme, none of them are working.
   Thank you.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-register_setting/#post-13369334)
 * Try **MANUALLY** updating. [Download WordPress](https://wordpress.org/download/)
   again and unzip it, and use that to copy up. Access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel (consult your hosting
   provider’s documentation for specifics on these), and delete then replace your
   copies of everything on the server EXCEPT the wp-config.php file and the /wp-
   content/ directory with fresh copies from the download. This will effectively
   replace all of your core files without damaging your content and settings. (**
   NOTE: do not delete the wp-content directory or your wp-config.php file**). **
   Please read the [Manual Update](https://wordpress.org/support/article/updating-wordpress/#manual-update)
   directions first.**
 * **Backup: If you haven’t already done, always backup everything (including your
   database) before doing any actions, just in case something really goes wrong.
   You can never have enough backups! See [https://wordpress.org/support/article/wordpress-backups/](https://wordpress.org/support/article/wordpress-backups/)**
 *  Thread Starter [maniyip](https://wordpress.org/support/users/maniyip/)
 * (@maniyip)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-register_setting/#post-13390897)
 * Thank you for that, I will update it manually and see how it goes.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error: Cannot redeclare register_setting()’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [maniyip](https://wordpress.org/support/users/maniyip/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-register_setting/#post-13390897)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
