• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

Zubair Amin

Helping You Be Your Own Boss!

  • WordPress
  • SEO
  • Blogging
  • Business
    • Ecommerce

How To Fix – “Fatal error: Uncaught Error: Class ‘Elementor\Scheme_Color’”

June 28, 2022 by Zubair Amin Leave a Comment

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:

  1. Create a new mplugin.php file in the wp-content/mu-plugins folder (in-case the file does not exist)
  2. 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.

Filed Under: Wordpress Tagged With: Elementor, Fatal error

Leave a Reply Cancel reply

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

  • Facebook
  • LinkedIn
  • Medium
  • RSS
  • Twitter

Recommended Posts

  • Godaddy acquires DAN for $71.4 million
  • How To Fix – “Fatal error: Uncaught Error: Class ‘Elementor\Scheme_Color’”
  • How to Create Shine Effects on Your Website Logo With CSS
  • How to Check Your Laptop’s Battery Health on Windows 10
  • How to Change Checkout Form Heading in WooCommerce

Categories

  • Blogging
  • Business
  • Crypto Currency
  • Domain News
  • Ecommerce
  • Make Money Online
  • Programming
  • SEO
  • Tech Tips
  • Technology
  • Web Design
  • Wordpress

Subscribe via Email

Sign up and receive make money online tips, blogging and travel tips right in your inbox.

  • About
  • Work
  • Contact me

Copyright © 2022 · Zubair Amin