Class ‘Elementor\Scheme_Color’ not found
-
Hello
I know this error or something similar has been posted before, but I have not found a solution in those posts.
Our website was working fine up until very recently and now just fails with: “There has been a critical error on the website”. I have been pulling my hair out trying to fix it. I am a volunteer for a non-profit and have little experience with WordPress or Elementor. I’ve been learning as I go…
If I go into the site as admin and try to view a page using Elementor, I get the following error:
Uncaught Error: Class 'Elementor\Scheme_Color' not found in /var/www/wp-content/plugins/navmenu-addon-for-elementor/modules/branding/widgets/elementor-branding.php:108 Stack trace: #0 /var/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2313): ElementorMenus\Modules\Branding\Widgets\Elementor_Branding->_register_controls() #1 /var/www/wp-content/plugins/elementor/includes/base/controls-stack.php(496): Elementor\Controls_Stack->init_controls() #2 /var/www/wp-content/plugins/elementor/includes/base/widget-base.php(177): Elementor\Controls_Stack->get_stack() #3 /var/www/wp-content/plugins/elementor/includes/base/controls-stack.php(300): Elementor\Widget_Base->get_stack() #4 /var/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2402): Elementor\Controls_Stack->get_controls() #5 /var/www/wp-content/plugins/elementor/includes/base/controls-stack.php(1107): Elementor\Controls_Stack->sanitize_settings(Array) #6 /var/www/wp-content/plugins/elementor/includes/base/controls-stack.php
After a bunch of searching, and found a solution which involves hand-editing a couple of the php files to replace the class specifiers as follows:
Scheme_Color::... --> \Elementor\Core\Schemes\Color::... Scheme_Typography::... --> \Elementor\Core\Schemes\Typography::...
So this gets rid of the problem, but I’m concerned about the hand-editing being a bit of a hack. I’m using NavMenu add-on version 1.1.6. When I click on the link to “Visit plugin site”, that site doesn’t have any mention of this add-on. Additionally, there are no links or notification in WordPress or Elementor indicating that an update is available or needed.
Any suggestions on a “proper” way of solving this issue (versus the hack), or is this the only option?
The page I need help with: [log in to see the link]
- The topic ‘Class ‘Elementor\Scheme_Color’ not found’ is closed to new replies.