Appearance–>Widgets page won’t load. Don’t think there have been any changes. Tried deactivating every single plugin and nothing helped. Also having trouble updating plugins.
Hello @gjamesmoore,
Thanks for writing in!
Trying to open login page but I am getting Error establishing a database connection
. You can refer following tutorial for possble solution:
Also you can get in touch with hosting provider and ask for log files and see if there is any entry related with this problem.
Thanks.
Can you try again? I was able to get in there with those credentials just now with no problem.
Hi there,
There is an internal error, we could only find the details by getting debug logs through FTP. Or you can enable WP_DEBUG by setting it to true under your site’s wp-config.php file.
It should display the error when you access the widget page in admin.
Thanks!
Okay, but if I’ve tried disabling all the plugins and it’s still not working, isn’t this a problem with X?
With debug mode on, I receive this error on the widgets page in WP Admin:
Fatal error: Call to undefined function wp_enqueue_editor() in /home/content/p3pnexwpnas03_data02/90/2943790/html/wp-includes/widgets/class-wp-widget-text.php on line 326
This is the php starting on line 319 in class-wp-widget-text.php
/**
- Loads the required scripts and styles for the widget control.
- @since 4.8.0
-
@access public
*/
public function enqueue_admin_scripts() {
wp_enqueue_editor();
wp_enqueue_script( ‘text-widgets’ );
}
Hi There,
I can see you have caching. Did you clear/flush cache after disabling plugins? If not please try that so we can make sure that updated code is in use.
Yes, we tried that. It is godaddy caching and we flushed it. Can someone please help?
Hi There,
We’re sorry you’re still having this issue. See what fatal error means here. First save a backup of your site or setup a staging site so we can do the troubleshooting there without affecting this live site. To check which part is causing that issue, turn all plugins off, and then try switching to default wordpress themes. Clear cache and check again. I cannot duplicate your error on my setup so we need to troubleshoot by using vanilla wordpress. If the issue is fixed after that, then we can say it is either part of child theme or combination of theme and plugins.
I disabled all plugins, switched themes and flushed cache and I’m still getting the issue. What is going on do you think? Does wordpress need to be re-installed?
Hi There,
The declaration of that functions is on this file: \wp-includes\general-template.php
Look for line 3085. It should be:
function wp_enqueue_editor() {
if ( ! class_exists( '_WP_Editors', false ) ) {
require( ABSPATH . WPINC . '/class-wp-editor.php' );
}
_WP_Editors::enqueue_default_editor();
}
If that part is missing on that file, yes, wordpress is corrupted and need to be reinstalled.