{"id":15333483,"date":"2022-02-06T10:15:54","date_gmt":"2022-02-06T10:15:54","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/class-elementorplugin-not-found-in-3-0-10\/"},"modified":"2022-02-06T10:15:54","modified_gmt":"2022-02-06T10:15:54","slug":"class-elementorplugin-not-found-in-3-0-10","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/class-elementorplugin-not-found-in-3-0-10\/","title":{"rendered":"&#8220;Class &#8216;Elementor\\Plugin&#8217; not found&#8221; in 3.0.10"},"content":{"rendered":"<p>After upgrading from 3.0.9 to 3.0.10 the site failed with a &#8220;There has been a critical error on this site&#8221; message<\/p>\n<p>Logs indicated:<\/p>\n<p><code>PHP Fatal error:  Uncaught Error: Class &#039;Elementor\\Plugin&#039; not found in \/opt\/wordpress\/html\/wp-content\/plugins\/gs-logo-slider\/includes\/gs-logo-scripts.php:397<\/code><\/p>\n<p>editing 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<\/p>\n<p>For anyone needing that quick fix, replace around 397 in gs-logo-scripts.php<\/p>\n<blockquote><p>$document = Plugin::$instance-&gt;documents-&gt;get( $currentPostId );<br \/>\nif ( $document-&gt;is_built_with_elementor() || ! empty( $shortCodeIds ) ) {<br \/>\n    $enqueue = true;<br \/>\n}<\/p><\/blockquote>\n<p>with:<\/p>\n<blockquote><p>\/\/XXX $document = Plugin::$instance-&gt;documents-&gt;get( $currentPostId );<br \/>\n\/\/XXX if ( $document-&gt;is_built_with_elementor() || ! empty( $shortCodeIds ) ) {<br \/>\n    $enqueue = true;<br \/>\n\/\/XXX }<\/p><\/blockquote>\n","protected":false},"template":"","class_list":["post-15333483","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15333483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15333483\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15333483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}