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 ๐
Leave a Reply