Do you want to to fix Fatal error: Uncaught Error: Class ‘Elementor\Scheme_Color’ ?
If you are using Elementor Page Builder and other related plugins that compliments Elementor you may face this fatal error after recent wordpress upgrade.
Below is the full context of this fatal error.
Fatal error: Uncaught Error: Class ‘Elementor\Scheme_Color’ not found
Don’t worry, We have solution for it. You only need to follow the following steps after this your website will start breathing again.
Steps:
- Create a new mplugin.php file in the wp-content/mu-plugins folder (in-case the file does not exist)
- Add the following code snippet to the file you just created
<?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 {} } } ); ?>
All done.
If you still having an issue, don’t forget to post in comments below, I will try my best to provide you a solution.
Test says
Missing a > at the end of your code
Zubair Amin says
Thanks for the correction. I have fixed that now in the post.