admin管理员组文章数量:1025227
Fatal error: Uncaught Error: Class "WP_Block_Metadata_Registry" not found in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php:391
Stack trace:
#0 H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks\index.php(174): wp_register_block_metadata_collection()
#1 H:\root\home\heritageenergy-002\www\fce\wp-includes\class-wp-hook.php(324): wp_register_core_block_metadata_collection()
#2 H:\root\home\heritageenergy-002\www\fce\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters()
#3 H:\root\home\heritageenergy-002\www\fce\wp-includes\plugin.php(517): WP_Hook->do_action()
#4 H:\root\home\heritageenergy-002\www\fce\wp-settings.php(700): do_action()
#5 H:\root\home\heritageenergy-002\www\fce\wp-config.php(106): require_once('H:\\root\\home\\he...')
#6 H:\root\home\heritageenergy-002\www\fce\wp-load.php(50): require_once('H:\\root\\home\\he...')
#7 H:\root\home\heritageenergy-002\www\fce\wp-login.php(12): require('H:\\root\\home\\he...')
#8 {main} thrown in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php on line 391
What I did to try to solve the problem:
- Rename both plugins and themes folders and tested
- Remove 'wp-includes' and 'wp-admin' folders and replaced with fresh downloads from WordPress.
- upgraded PHP Version to 8.1.
But none of the above solution could solve the problem.
Update: I manage to solve the problem by reinstalling a fresh copy of WordPress in the hosting server.
Fatal error: Uncaught Error: Class "WP_Block_Metadata_Registry" not found in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php:391
Stack trace:
#0 H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks\index.php(174): wp_register_block_metadata_collection()
#1 H:\root\home\heritageenergy-002\www\fce\wp-includes\class-wp-hook.php(324): wp_register_core_block_metadata_collection()
#2 H:\root\home\heritageenergy-002\www\fce\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters()
#3 H:\root\home\heritageenergy-002\www\fce\wp-includes\plugin.php(517): WP_Hook->do_action()
#4 H:\root\home\heritageenergy-002\www\fce\wp-settings.php(700): do_action()
#5 H:\root\home\heritageenergy-002\www\fce\wp-config.php(106): require_once('H:\\root\\home\\he...')
#6 H:\root\home\heritageenergy-002\www\fce\wp-load.php(50): require_once('H:\\root\\home\\he...')
#7 H:\root\home\heritageenergy-002\www\fce\wp-login.php(12): require('H:\\root\\home\\he...')
#8 {main} thrown in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php on line 391
What I did to try to solve the problem:
- Rename both plugins and themes folders and tested
- Remove 'wp-includes' and 'wp-admin' folders and replaced with fresh downloads from WordPress.
- upgraded PHP Version to 8.1.
But none of the above solution could solve the problem.
Update: I manage to solve the problem by reinstalling a fresh copy of WordPress in the hosting server.
Share Improve this question edited Dec 27, 2024 at 9:57 Sandet asked Nov 18, 2024 at 18:40 SandetSandet 274 bronze badges2 Answers
Reset to default 3I got this solution from a site
I’d same challenge. Adding the following solved to wp-settings.php line 353 solved it.
require ABSPATH . WPINC . ‘/class-wp-block-metadata-registry.php’;
I had the same error, in my case between a Friday and it was working perfectly, in the afternoon I touched a couple of plugins and the following Tuesday it no longer worked. I have tried to delete the plugins that I touched from the terminal. It hasn't worked for me but maybe it will for you. In the end I reinstalled wordpress and started from scratch Feedback
Fatal error: Uncaught Error: Class "WP_Block_Metadata_Registry" not found in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php:391
Stack trace:
#0 H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks\index.php(174): wp_register_block_metadata_collection()
#1 H:\root\home\heritageenergy-002\www\fce\wp-includes\class-wp-hook.php(324): wp_register_core_block_metadata_collection()
#2 H:\root\home\heritageenergy-002\www\fce\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters()
#3 H:\root\home\heritageenergy-002\www\fce\wp-includes\plugin.php(517): WP_Hook->do_action()
#4 H:\root\home\heritageenergy-002\www\fce\wp-settings.php(700): do_action()
#5 H:\root\home\heritageenergy-002\www\fce\wp-config.php(106): require_once('H:\\root\\home\\he...')
#6 H:\root\home\heritageenergy-002\www\fce\wp-load.php(50): require_once('H:\\root\\home\\he...')
#7 H:\root\home\heritageenergy-002\www\fce\wp-login.php(12): require('H:\\root\\home\\he...')
#8 {main} thrown in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php on line 391
What I did to try to solve the problem:
- Rename both plugins and themes folders and tested
- Remove 'wp-includes' and 'wp-admin' folders and replaced with fresh downloads from WordPress.
- upgraded PHP Version to 8.1.
But none of the above solution could solve the problem.
Update: I manage to solve the problem by reinstalling a fresh copy of WordPress in the hosting server.
Fatal error: Uncaught Error: Class "WP_Block_Metadata_Registry" not found in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php:391
Stack trace:
#0 H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks\index.php(174): wp_register_block_metadata_collection()
#1 H:\root\home\heritageenergy-002\www\fce\wp-includes\class-wp-hook.php(324): wp_register_core_block_metadata_collection()
#2 H:\root\home\heritageenergy-002\www\fce\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters()
#3 H:\root\home\heritageenergy-002\www\fce\wp-includes\plugin.php(517): WP_Hook->do_action()
#4 H:\root\home\heritageenergy-002\www\fce\wp-settings.php(700): do_action()
#5 H:\root\home\heritageenergy-002\www\fce\wp-config.php(106): require_once('H:\\root\\home\\he...')
#6 H:\root\home\heritageenergy-002\www\fce\wp-load.php(50): require_once('H:\\root\\home\\he...')
#7 H:\root\home\heritageenergy-002\www\fce\wp-login.php(12): require('H:\\root\\home\\he...')
#8 {main} thrown in H:\root\home\heritageenergy-002\www\fce\wp-includes\blocks.php on line 391
What I did to try to solve the problem:
- Rename both plugins and themes folders and tested
- Remove 'wp-includes' and 'wp-admin' folders and replaced with fresh downloads from WordPress.
- upgraded PHP Version to 8.1.
But none of the above solution could solve the problem.
Update: I manage to solve the problem by reinstalling a fresh copy of WordPress in the hosting server.
Share Improve this question edited Dec 27, 2024 at 9:57 Sandet asked Nov 18, 2024 at 18:40 SandetSandet 274 bronze badges2 Answers
Reset to default 3I got this solution from a site
I’d same challenge. Adding the following solved to wp-settings.php line 353 solved it.
require ABSPATH . WPINC . ‘/class-wp-block-metadata-registry.php’;
I had the same error, in my case between a Friday and it was working perfectly, in the afternoon I touched a couple of plugins and the following Tuesday it no longer worked. I have tried to delete the plugins that I touched from the terminal. It hasn't worked for me but maybe it will for you. In the end I reinstalled wordpress and started from scratch Feedback
本文标签: phpHow to Solve 39Uncaught Error Class “WPBlockMetadataRegistry”39 in WordPress siteStack Overflow
版权声明:本文标题:php - How to Solve 'Uncaught Error: Class “WP_Block_Metadata_Registry”' in WordPress site - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745601249a2158469.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论