johnpbloch / wordpress

A fork of WordPress with Composer support added. Branches, tags, and trunk synced from upstream every 15 minutes.
https://packagist.org/packages/johnpbloch/wordpress
602 stars 102 forks source link

Update to 5.6.1 Not works. -> Uncaught Error: Class 'WP_Site_Health' not found in #51

Open esipavicius opened 3 years ago

esipavicius commented 3 years ago

I fixed it like

Screenshot 2021-02-09 at 14 38 30

Trace:

Screenshot 2021-02-09 at 14 40 17

`

          array (size=13)
            0 => 
              array (size=3)
                'file' => string '/home/backend/html/public/wp/wp-includes/class-wp-hook.php' (length=58)
                'line' => int 287
                'function' => string 'create_initial_rest_routes' (length=26)
            1 => 
              array (size=5)
                'file' => string '/home/backend/html/public/wp/wp-includes/class-wp-hook.php' (length=58)
                'line' => int 311
                'function' => string 'apply_filters' (length=13)
                'class' => string 'WP_Hook' (length=7)
                'type' => string '->' (length=2)
            2 => 
              array (size=5)
                'file' => string '/home/backend/html/public/wp/wp-includes/plugin.php' (length=51)
                'line' => int 484
                'function' => string 'do_action' (length=9)
                'class' => string 'WP_Hook' (length=7)
                'type' => string '->' (length=2)
            3 => 
              array (size=3)
                'file' => string '/home/backend/html/public/wp/wp-includes/rest-api.php' (length=53)
                'line' => int 521
                'function' => string 'do_action' (length=9)
            4 => 
              array (size=3)
                'file' => string '/home/backend/html/public/wp/wp-includes/rest-api.php' (length=53)
                'line' => int 109
                'function' => string 'rest_get_server' (length=15)
            5 => 
              array (size=3)
                'file' => string '/home/backend/html/modules/Redirections/Services/RegisterRedirectsRestApi.php' (length=77)
                'line' => int 21
                'function' => string 'register_rest_route' (length=19)
            6 => 
              array (size=5)
                'file' => string '/home/backend/html/networks/BestWebHosting/Functions/functions.php' (length=66)
                'line' => int 34
                'function' => string 'init' (length=4)
                'class' => string 'Backend\Modules\Redirections\Services\RegisterRedirectsRestApi' (length=62)
                'type' => string '::' (length=2)
            7 => 
              array (size=4)
                'file' => string '/home/backend/html/public/themes/7bestwebhosting/functions.php' (length=62)
                'line' => int 11
                'args' => 
                  array (size=1)
                    0 => string '/home/backend/html/networks/BestWebHosting/Functions/functions.php' (length=66)
                'function' => string 'include_once' (length=12)
            8 => 
              array (size=4)
                'file' => string '/home/backend/html/public/wp/wp-settings.php' (length=44)
                'line' => int 525
                'args' => 
                  array (size=1)
                    0 => string '/home/backend/html/public/themes/7bestwebhosting/functions.php' (length=62)
                'function' => string 'include' (length=7)
            9 => 
              array (size=4)
                'file' => string '/home/backend/html/public/wp-config.php' (length=39)
                'line' => int 30
                'args' => 
                  array (size=1)
                    0 => string '/home/backend/html/public/wp/wp-settings.php' (length=44)
                'function' => string 'require_once' (length=12)
            10 => 
              array (size=4)
                'file' => string '/home/backend/html/public/wp/wp-load.php' (length=40)
                'line' => int 42
                'args' => 
                  array (size=1)
                    0 => string '/home/backend/html/public/wp-config.php' (length=39)
                'function' => string 'require_once' (length=12)
            11 => 
              array (size=4)
                'file' => string '/home/backend/html/public/wp/wp-admin/admin.php' (length=47)
                'line' => int 34
                'args' => 
                  array (size=1)
                    0 => string '/home/backend/html/public/wp/wp-load.php' (length=40)
                'function' => string 'require_once' (length=12)
            12 => 
              array (size=4)
                'file' => string '/home/backend/html/public/wp/wp-admin/index.php' (length=47)
                'line' => int 10
                'args' => 
                  array (size=1)
                    0 => string '/home/backend/html/public/wp/wp-admin/admin.php' (length=47)
                'function' => string 'require_once' (length=12)

`

jumxxxx commented 2 years ago

some probleme