• After I tried to upgrade my website to WordPress 5.0.3, I got an error which was related to wp-config.php and fixed it. Then I found that I can not edit my custom_taxonomy posts. When I try to edit, I get following error message:

    Warning: array_reduce() expects parameter 2 to be a valid callback, function 'rest_preload_api_request' not found or invalid function name in /opt/bitnami/apps/wordpress/htdocs/wp-admin/edit-form-blocks.php on line 75
    
    Fatal error: Uncaught Error: Class 'WP_Block_Type_Registry' not found in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/post.php:2045 Stack trace: #0 /opt/bitnami/apps/wordpress/htdocs/wp-admin/edit-form-blocks.php(112): get_block_editor_server_block_settings() #1 /opt/bitnami/apps/wordpress/htdocs/wp-admin/post.php(168): include('/opt/bitnami/ap...') #2 {main} thrown in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/post.php on line 2045

    Thanks in advance for your help.

    • This topic was modified 6 years, 2 months ago by ardaulusoy.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ardaulusoy

    (@ardaulusoy)

    After I deleted edit-form-blocks.php file, I get following error:

    Warning: include(/opt/bitnami/apps/wordpress/htdocs/wp-admin/edit-form-blocks.php): failed to open stream: No such file or directory in /opt/bitnami/apps/wordpress/htdocs/wp-admin/post.php on line 168
    
    Warning: include(): Failed opening '/opt/bitnami/apps/wordpress/htdocs/wp-admin/edit-form-blocks.php' for inclusion (include_path='.:/opt/bitnami/php/lib/php') in /opt/bitnami/apps/wordpress/htdocs/wp-admin/post.php on line 168
    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    When you updated, did you update all the files? Including the WordPress root files, like wp-settings.php?

    If you didn’t update all the files, then not everything is loaded, and you’re missing classes and such. Do a complete manual update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Uncaught Error’ is closed to new replies.