“Class ‘Elementor\Plugin’ not found” in 3.0.10
-
After upgrading from 3.0.9 to 3.0.10 the site failed with a “There has been a critical error on this site” message
Logs indicated:
PHP Fatal error: Uncaught Error: Class 'Elementor\Plugin' not found in /opt/wordpress/html/wp-content/plugins/gs-logo-slider/includes/gs-logo-scripts.php:397editing gs-logo-scripts.php and commenting out the call to Plugin, but leaving the $enqueue = true seems to workaround the issue until a real fix is available
For anyone needing that quick fix, replace around 397 in gs-logo-scripts.php
$document = Plugin::$instance->documents->get( $currentPostId );
if ( $document->is_built_with_elementor() || ! empty( $shortCodeIds ) ) {
$enqueue = true;
}with:
//XXX $document = Plugin::$instance->documents->get( $currentPostId );
//XXX if ( $document->is_built_with_elementor() || ! empty( $shortCodeIds ) ) {
$enqueue = true;
//XXX }
The topic ‘“Class ‘Elementor\Plugin’ not found” in 3.0.10’ is closed to new replies.