October 3, 2024
[FIXED] – Fatal Error : Uncaught ReflectionException: Method get_site_editor_type does not exist

About the Issue

If you are using Elementor and Elementor Addons then you may encounter the “Fatal error: Uncaught Error: Class Elementor\Scheme_Color” Issue.

PHP Fatal error: Uncaught Error: Class ‘Elementor\Scheme_Color’ not found

After Elementor 3.6, “Class Elementor\Scheme_Color” is deprecated and throws the Fatal Error “Fatal error: Uncaught Error: Class Elementor\Scheme_Color”.

This error is due to the Elementor Addons plugin, which is outdated.

FIXED – Fatal error: Uncaught Error: Class Elementor\Scheme_Color

How to Get Your Website Back Live?

When you encounter the “Fatal error: Uncaught Error: Class Elementor\Scheme_Color” issue then first you have to find which plugin is causing the issue. To know which plugin is causing this issue, simply go to wp-config and change WP_DEBUG from “false” to “true”.

If you don’t know how to open or navigate to wp-config.php then you can see the steps in the solution. Now, simply rename the plugin which caused the issue. It will re-live the website.

If you want to fix the issue then scroll down to the solutions and follow the steps.

Solution No 1

1- If you can log in to your WordPress admin then install a File Manager Plugin.
2- If you can’t log in to your WordPress admin then you must have FTP or cPanel access.
3- Now access your website via File Manager OR FTP and open the wp-config.php file in the root.
4- Change WP-DEBUG to ‘true’. This will display the error and the file location with a line number.
5- Find “use Elementor\Scheme_Color;” and replace it with “use Elementor\Core\Schemes\Color;”
6- Find all “Scheme_Color::” and change them to “Color::”.

Solution No 2

1- Create a new folder “mu-plugins” in wp-content.
2- Create a new .php file in mu-plugins folder.
3- Add the below code snippet to the .php file you created and save it.
4- Now your issue will be fixed.

<?php
/**
 * Plugin Name: Elementor Scheme_Color
 **/

	namespace Elementor;

	\add_action(
	  'plugins_loaded',
	  function() {
	    if ( ! class_exists( 'Elementor\Scheme_Color' ) ) {
	      class Scheme_Color extends Core\Schemes\Color {}
	    }
	  }
	);
?>

Also read this

FIXED – Fatal error: Uncaught Error: Class Elementor\Scheme_Typography
[FIXED] – Elementor Not Loading Error – 7 Solutions
[FIXED] – Fatal Error : Uncaught ReflectionException: Method get_site_editor_type does not exist

Leave a Reply

Your email address will not be published. Required fields are marked *