Marinus Klasen

Marinus Klasen

  • Development
  • Consultancy
  • Developer Resources
  • Blog
  • Contact

September 12, 2024

The Elementor sanitize_settings error

Marinus Klasen

Another quick, issue specific blog post, this time it’s about Elementor and the Elementor\Controls_Stack::sanitize_settings() error that I’ve seen quite a few times now.

I dug in deep, and realized I could consistently trigger the error by using Elementors’ Regenerate CSS and Data tool.

The issue seems to come from the elementor/css-file/post/parse action being run.

After removing all of these actions, by creating a Must-Use plugin with this content:

// add_action('wp', function() {
//     remove_all_actions('elementor/css-file/post/parse');
// });

The first page load takes about 20 seconds, and the error is gone!

Of course, make sure to remove the must-use plugin after using it once.

Does this solve the issue for you?

Let me know! I’m curious if this solves the issue for others as well.

Does this NOT solve the issue for you?

Let me know as well, I am also curious about that!

Leave a comment below so other visitors know if this might be the solution ๐Ÿ™‚

About Marinus Klasen

Marinus has been working in software/web development for more than a decade. Since 2020 his attention shifted on sharing knowledge and developing products and tools for sharing knowledge.

Marinus Klasen on Twitter

Looking for a WordPress expert?
Hire top notch developers on Codeable!

Consult an expert

Leave a Reply Cancel reply

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

Get in touch

Contact me using the details below

Marinus Klasen

Wilhelmina van Pruisenweg 35, 2595 AN Den Haag

marinus@mklasen.com
twitter.com/marinusklasen
linkedin.com/in/marinusklasen

  • GitHub
  • LinkedIn
  • Twitter

Have you read?

  • Elementor Widget UsageMarch 27, 2025
  • Programmatically showing popups with ElementorMarch 25, 2025
  • The Elementor sanitize_settings errorSeptember 12, 2024
  • Announcing.. Wooping Shop Health!June 13, 2024
  • Swiper setup when using wp-scriptsMarch 14, 2024

Copyright © 2025 ยท Marinus Klasen | Webdesign by Team Rood