• Resolved radicsf

    (@scidar)


    I tried to upgrade wordpress from 4.9.8 to 5.0.2.

    I downloaded the wordpress-5.0.2.zip file and deactivated all of the plugins, updated wp-includes, wp-admin folders, and checked every other file changes compared to the old version.
    I logged in into the wp-admin and updated the database. The wp-admin is fine but I’m getting a blank page on the front-end of the website. I looked into nginx logs and I’ve got this error message:

    
    2018/12/20 10:49:15 [error] 17846#0: *200 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'WP_Block_Type_Registry' not found in /var/www/html/zz.hu/wp-includes/script-loader.php:2421
    Stack trace:
    #0 /var/www/html/zz.hu/wp-includes/class-wp-hook.php(286): wp_enqueue_registered_block_scripts_and_styles('')
    #1 /var/www/html/zz.hu/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #2 /var/www/html/zz.hu/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /var/www/html/zz.hu/wp-includes/script-loader.php(2405): do_action('enqueue_block_a...')
    #4 /var/www/html/zz.hu/wp-includes/class-wp-hook.php(286): wp_common_block_scripts_and_styles('')
    #5 /var/www/html/zz.hu/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /var/www/html/zz.hu/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/zz.hu/wp-includes/script-loader.php(2231): do_action('wp_enqueue_scri...')
    #8 /var/www/html/zz.hu/wp-includes/class-wp-hook.php(286): wp_enqueue_scripts" while reading response header from upstream, client: 192.168.1.18, server: www.zz.hu, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm-zz.sock:", host: "www.zz.hu"
    
    

    I tried to download the new wordpress once again and tried the tar.gz file too but the problem is still persist.

    I use a centos7 server. My nginx and php version:

    
    [[email protected]]$ nginx -v
    nginx version: nginx/1.12.2
    [[email protected]]$ php -v
    PHP 7.2.13 (cli) (built: Dec  8 2018 12:11:34) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    [[email protected]]$ 
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Try reinstall core from dashboard. This helps for me.

    • This reply was modified 7 years, 5 months ago by betagoo.
    • This reply was modified 7 years, 5 months ago by betagoo.
    Thread Starter radicsf

    (@scidar)

    Thank you, but I can’t reinstall it from the dashboard because it is a LAN server behind a firewall and I cant use an ftp or sftps credential. The manual upgrade is the only option for me, and I tried manual upgrade 3 times. It didn’t solve the problem.

    Thread Starter radicsf

    (@scidar)

    Never mind! You gave me a very good hint! I inserted this line into my wp-config.php:

    
    define('FS_METHOD', 'direct');
    

    The dashboard “re-install now” button worked and the problem resolved!
    Thank you 🙂

    THANK YOU radicsf for coming back and posting the solution!!!! You just saved me hours of frustration and an angry client. So appreciated!

    @betagoo You are a life saver mate!!
    Thank you!

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

The topic ‘Uncaught Error: Class ‘WP_Block_Type_Registry’ not found’ is closed to new replies.