Problem When Used In Conjunction With Elementor
-
Hi! When using this plugin in conjunction with “Elementor”, this “FATAL” error occurs with “Elementor”:
[05-Jan-2023 21:31:16 UTC] PHP Fatal error: Uncaught TypeError: str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string in /chroot/home/USER/DOMAIN/html/wp-content/plugins/elementor/includes/controls/groups/base.php:497
And “Elementor” will not let you use the “Elementor Widget Panel” when that error occurs ??
This is the original code on that line:
return str_replace( '{{SELECTOR}}', $args['selector'], $key );
We changed it to this, to temporarily fix the problem:
return str_replace( '{{SELECTOR}}', (string) $args['selector'], $key );
But that is only a temporary solution of course, and there could be other problems that still occur with “widgets”, etc.!
P. S. We are using PHP version 8.0.25 on our server.
- The topic ‘Problem When Used In Conjunction With Elementor’ is closed to new replies.