久しぶりにログインしたら、Elementor Proが変なエラーを吐きました。
Fatal error: Uncaught ReflectionException: Method get_site_editor_type does not exist in /home/****/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:47
バージョンアップなどはせずに、回避する方法です。
Elementor Proとか使うのやめませんか?
修正前
$reflection = new \ReflectionClass( $class_name );
$method = $reflection->getMethod( 'get_site_editor_type' );
// It's own method, use it.
if ( $class_name === $method->class ) {
return static::get_site_editor_type();
}
修正後
if (method_exists($class_name, “get_site_editor_type”)) {}で囲めばOK
if (method_exists($class_name, "get_site_editor_type")) {
$reflection = new \ReflectionClass( $class_name );
$method = $reflection->getMethod( 'get_site_editor_type' );
// It's own method, use it.
if ( $class_name === $method->class ) {
return static::get_site_editor_type();
}
}
Attention Required! | Cloudflare