Как убрать ошибку после обновления WordPress Fatal error Elementor
У меня возникла эта ошибка после того, как клиент решил обновить свой WordPress и у него возникла ошибка выше.
В админ панель выдало ошибку
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Идем в файл в корне сайта wp-config.php
Открываем файл и включаем WP_DEBUG меняя в строке
88 define( ‘WP_DEBUG’, false );
на меняем
88 define( ‘WP_DEBUG’, true );
далее увидим ошибки
Deprecated: Function get_create_new_post_url is deprecated since version 3.3.0! Use Plugin::$instance->documents->get_create_new_post_url() instead. in /usr/www/users/ttgmgm/wp-includes/functions.php on line 5383
Fatal error: Uncaught ReflectionException: Method get_site_editor_type does not exist in /usr/www/users/ttgmgm/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:48 Stack trace: #0 /usr/www/users/ttgmgm/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(48): ReflectionClass->getMethod(‘get_site_editor…’) #1 /usr/www/users/ttgmgm/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(129): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document::get_site_editor_type_bc() #2 /usr/www/users/ttgmgm/wp-content/plugins/elementor/core/common/modules/finder/categories/create.php(94): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document::get_create_url() #3 /usr/www/users/ttgmgm/wp-content/plugins/elementor/core/common/modules/finder/categories/create.php(67): Elementor\Core\Common\Modules\Finder\Categories\Create->create_item_url_by_document_class(‘ElementorPro\\Mo…’) #4 /usr/www/users/ttgmgm/wp-content/plugins/elementor/co in /usr/www/users/ttgmgm/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php on line 48
Переходим в кореневую папку и далее по пути:
public_html/ww/wp-content/plugins/elementor
и переименновуем файл
Elementor.php добавляя к нему любое название, например на Elementor1.php
далее идем в соседнюю папку
public_html/ww/wp-content/plugins/elementor-pro
И переименновуем файл
elementor-pro.php в elementor-pro1.php
Далее, наш клиент обновил плагины Elementor — до последней версии, но его сайт делали с Elementor Pro, но Про версия не обновилась.
Обновите Elementor Pro до актуальной версии или сделайте откат Elementor(а) до версии Про.
Надеюсь эта небольшая инструкция смогла помочь твоей проблеме.