【发布时间】:2022-11-11 02:24:46
【问题描述】:
从字面上看,在网站上什么都不做,几天不使用后,尝试登录时,出现这样的错误:
Fatal error: Uncaught ReflectionException: Method get_site_editor_type does not exist in /usr/home/midas/domains/mydomain.com/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:45
主题文档.php:
protected static function get_site_editor_type_bc() {
static $types = [];
$class_name = static::get_class_full_name();
$reflection = new \ReflectionClass( $class_name ); //45 line
$method = $reflection->getMethod( 'get_site_editor_type' );
// It's own method, use it.
if ( $class_name === $method->class ) {
return static::get_site_editor_type();
}
// _deprecated_function( 'get_name', '3.0.0', 'get_site_editor_type' );
// Fallback, get from class instance name (with caching).
if ( isset( $types[ $class_name ] ) ) {
return $types[ $class_name ];
}
$instance = new static();
$types[ $class_name ] = $instance->get_name();
return $types[ $class_name ];
}
我该如何解决这个问题?
【问题讨论】:
-
你设法解决这个问题吗?我在这里挣扎。我尝试回滚 elementor 版本,并注释掉这些行...我可以在 elementor 主题编辑器中按原样查看我的页面,但是在我的实时站点上,它显示 404 not found 页面:(