PHP Fatal error: Uncaught Error: Class 'WP_Widget_Hook' not found in /home/terrahom/public_html/wp-includes/class-wp-widget.php:173 - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Thursday, March 30, 2023

PHP Fatal error: Uncaught Error: Class 'WP_Widget_Hook' not found in /home/terrahom/public_html/wp-includes/class-wp-widget.php:173

Good afternoon, thanks in advance for helping me. A client updated the wordpress core to the latest version and the admin panel /wp-admin cannot be accessed. This is not the first time this has happened to me, normally by deactivating the plugins I can now access to downgrade versions. How can I enter the panel and proceed to go back to a previous version?

Wordpress DEBUG

I tried to access the wp admin, deactivating the theme and all the plugins of the site from cpanel and it still doesn't work. From cpanel I tried to modify the file that gives an error in the line of code and I couldn't solve it either so I left it as it was. I also deleted the log and I can not find the solution attached screenshots.

Error LOG

    $this->id_base         = $id_base;
    $this->name            = $name;
    $this->option_name     = 'widget_' . $this->id_base;
    $this->control_options = new WP_Widget_Hook();
    $this->widget_options  = wp_parse_args(
    $widget_options,
        array(
            'classname'                   => str_replace( '\\', '_', $this->option_name ),
                'customize_selective_refresh' => false,
            )
        );

"Code Line 173" - $this->control_options = new WP_Widget_Hook();



source https://stackoverflow.com/questions/75880766/php-fatal-error-uncaught-error-class-wp-widget-hook-not-found-in-home-terra

No comments:

Post a Comment