I have tried everything, I have replaced and added a new code based on what people suggested but nothing has improved. I am still having the same error.
Nothing has working so far... I would appreciate if anyone can help me.
It looks like you have an elementor plugin to the latest version but in your current theme or some other plugins having the old version code which is not compatible with the latest update. Some classes or functions may be deprecated and they have alternatives in the new version. Do one thing if you have a backup available then restore the elementor or plugin to the old version. Else update the code which is outdated.
open this file: wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php
add this code to line 46 file:
if (method_exists($class_name, "get_site_editor_type")) {
then close the if in line 54 with }
the final result is like this:
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();
}
}
I have had this happen on several sites and I comment out the line and it works fine
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.