Uncaught Error: Class 'Elementor\\Core\\Schemes\\Color' not found
If you are using Elementor wordpress plugin and its add-ons and you are locked out from the admin dashboard. And in the apache error logs you might have noticed the PHP Fatal error. The error "Uncaught Error: Class 'Elementor\\Core\\Schemes\\Color' not found" might arise when a theme or plugin tries to use the older version of the Elementor code.
Here are the ways to fix it:
Step1: Deactivate all the plugins keeping elementor plugin enabled and try to enable them by one by one to find the plugin causing the above issue.
Step2: If that does not work. Switch the theme to a basic hello theme.
Step3: Always make sure that you are upto date with a wp core, themes and plugins.
Step4: If nothing works, create a new.php file inside wp-content/mu-plugins and add the below code. That should fix the issue.
<?php
/**
* Plugin Name: Elementor Scheme_Color and Scheme_Typography Class Issue
**/
namespace Elementor;
\add_action(
'plugins_loaded',
function() {
if ( ! class_exists( 'Elementor\Scheme_Color' ) ) {
class Scheme_Color extends Core\Schemes\Color {}
}
}
);
\add_action(
'plugins_loaded',
function() {
if ( ! class_exists( 'Elementor\Scheme_Typography' ) ) {
class Scheme_Typography extends Core\Schemes\Typography {}
}
}
);