Title: Fatal error: Uncaught Error: Call to undefined function register_widget()
Last modified: November 18, 2020

---

# Fatal error: Uncaught Error: Call to undefined function register_widget()

 *  [Spidersaw](https://wordpress.org/support/users/spidersaw/)
 * (@spidersaw)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-register_widget/)
 * Hello, I get this error:
 * Fatal error: Uncaught Error: Call to undefined function register_widget() in /
   home/innerspaoi/www/wp-includes/widgets.php:1730 Stack trace: #0 /home/innerspaoi/
   www/wp-includes/class-wp-hook.php(287): wp_widgets_init(”) #1 /home/innerspaoi/
   www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #
   2 /home/innerspaoi/www/wp-includes/plugin.php(478): WP_Hook->do_action(Array)#
   3 /home/innerspaoi/www/wp-settings.php(546): do_action(‘init’) #4 /home/innerspaoi/
   www/wp-config.php(110): require_once(‘/home/innerspao…’) #5 /home/innerspaoi/
   www/wp-load.php(37): require_once(‘/home/innerspao…’) #6 /home/innerspaoi/www/
   wp-blog-header.php(13): require_once(‘/home/innerspao…’) #7 /home/innerspaoi/
   www/index.php(17): require(‘/home/innerspao…’) #8 {main} thrown in /home/innerspaoi/
   www/wp-includes/widgets.php on line 1730
 * I tried many times to reinstall wordpress, I used the console or even reinstalled
   manually the latest version by uploading manually the files.
    I tried also to
   deactivate every plugin and theme, with no success and I only managed to fix 
   this by re-uploading the widgets.php file in : www/wp-includes/widgets.php
 * Everytime I fix this, it just stays 1 day error free and I get again that fatal
   error
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-error-call-to-undefined-function-register_widget%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Prabhat](https://wordpress.org/support/users/prabhatrai/)
 * (@prabhatrai)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-register_widget/#post-13677947)
 * Hey [@spidersaw](https://wordpress.org/support/users/spidersaw/),
    You can follow
   the below link regarding the issue: [https://wordpress.stackexchange.com/questions/355429/uncaught-error-call-to-undefined-function-wp-get-current-user-in](https://wordpress.stackexchange.com/questions/355429/uncaught-error-call-to-undefined-function-wp-get-current-user-in)
 *  Thread Starter [Spidersaw](https://wordpress.org/support/users/spidersaw/)
 * (@spidersaw)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-register_widget/#post-13677992)
 * The error is different and it comes by wp-incudes, not wp-plugin

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

The topic ‘Fatal error: Uncaught Error: Call to undefined function register_widget()’
is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [widgets.php](https://wordpress.org/support/topic-tag/widgets-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Spidersaw](https://wordpress.org/support/users/spidersaw/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-register_widget/#post-13677992)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
