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

Zubair Amin

Helping You Be Your Own Boss!

  • WordPress
  • SEO
  • Blogging
  • Business
    • Ecommerce
  • Domains

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

June 28, 2022 by Zubair Amin 2 Comments

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

Comments

  1. Test says

    November 21, 2022 at 10:41 am

    Missing a > at the end of your code

    Reply
    • Zubair Amin says

      February 17, 2023 at 3:50 pm

      Thanks for the correction. I have fixed that now in the post.

      Reply

Leave a Reply Cancel reply

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

  • Facebook
  • LinkedIn
  • Medium
  • RSS
  • Twitter

Recommended Posts

  • How Artificial Intelligence Works with Web Design?
  • 10 Ways to Improve Your Website’s Speed
  • How to Master Social Media Marketing for Your Business?
  • What Happens When Your Domain Expires?
  • Godaddy acquires DAN for $71.4 million

Categories

  • Blogging
  • Business
  • Crypto Currency
  • Domains
  • 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

Copyright © 2023 · Zubair Amin