Title: error when using widgets
Last modified: January 9, 2024

---

# error when using widgets

 *  [drloanle](https://wordpress.org/support/users/drloanle/)
 * (@drloanle)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/error-when-using-widgets/)
 *  for more information. (This message was added in version 5.8.0.) in **/home/
   drloanle/public_html/wp-includes/functions.php** on line 6031″ I don’t know where
   to edit them. Help me.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-using-widgets%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Alor UX](https://wordpress.org/support/users/jerrymayalor555/)
 * (@jerrymayalor555)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/error-when-using-widgets/#post-17331030)
 * Hi [@drloanle](https://wordpress.org/support/users/drloanle/),
 * I understand the frustration you’re facing. It seems like there might be a conflict
   between the wp-editor script and the new widget editor.
 * Note: Please make sure to have the latest backup of your website before modifying
   your theme’s file.
 * To resolve this, I would like to share a PHP code that will make your widget 
   page work again. This code will revert to the old widget editor, but you can 
   still manage it. I have tried this before, and it works on my end. Just follow
   the steps below:
    - Go to the WordPress Dashboard.
    - Go to Appearance > Theme File Editor.
    - Edit your functions.php file.
    - Copy and paste the code in the functions.php file.
 *     ```wp-block-code
       // deactivate new block editor
       function phi_theme_support() {
           remove_theme_support( 'widgets-block-editor' );
       }
       add_action( 'after_setup_theme', 'phi_theme_support' );
       ```
   
    - Click the Update file.
    - Now refresh your admin page and go to Appearance > Widgets.
    - You should be able to access this page.
 * Recommendation: Using a child theme for your website is a great help. Please 
   try the following suggestion and let me know how it goes.
 * Warm regards,
 * Jerry

Viewing 1 replies (of 1 total)

The topic ‘error when using widgets’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Alor UX](https://wordpress.org/support/users/jerrymayalor555/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/error-when-using-widgets/#post-17331030)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
