Title: Illegal string offset &#8216;template&#8217;
Last modified: January 27, 2025

---

# Illegal string offset ‘template’

 *  Resolved [br123123](https://wordpress.org/support/users/br123123/)
 * (@br123123)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-template/)
 * Good evening, I have a critical error after the latest update. The error persists
   regardless of PHP version 7.4 or 8.2. With version 8.2. However, the error message
   is much longer. I’m posting the error message with PHP 7.4 here
 * WordPress and all plugins and themes are up to date.
 * I use the Novo theme.
 * If further information is required, please let us know. Thank you.
 * **Warning**: Illegal string offset ‘template’ in **/var/www/vhosts/xxx/wordpress/
   wp-content/plugins/elementor/core/settings/page/manager.php** on line **255**
   **
   Fatal error**: Uncaught TypeError: Argument 1 passed to Elementor\Controls_Stack::
   sanitize_settings() must be of the type array, string given, called in /var/www/
   vhosts/afxxx/wordpress/wp-content/plugins/elementor/includes/base/controls-stack.
   php on line 1158 and defined in /var/www/vhosts/xxx/wordpress/wp-content/plugins/
   elementor/includes/base/controls-stack.php:2514 Stack trace: #0 /var/www/vxxx/
   benroits.com/wordpress/wp-content/plugins/elementor/includes/base/controls-stack.
   php(1158): Elementor\Controls_Stack->sanitize_settings(‘d:14:{s:32:”col…’) #1/
   var/www/vhosts/xxxx/wordpress/wp-content/plugins/elementor/includes/base/controls-
   stack.php(2259): Elementor\Controls_Stack->get_data(‘settings’) #2 /var/www/vhosts/
   xxxx/wordpress/wp-content/plugins/elementor/core/base/base-object.php(142): Elementor\
   in **/var/www/vhosts/xxx/wordpress/wp-content/plugins/elementor/includes/base/
   controls-stack.php** on line **2514**
 * Es gab einen kritischen Fehler auf deiner Website.
 * [Erfahre mehr über die Problembehandlung in WordPress.](https://wordpress.org/documentation/article/faq-troubleshooting/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fillegal-string-offset-template%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [br123123](https://wordpress.org/support/users/br123123/)
 * (@br123123)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-template/#post-18275372)
 * Good evening, doesn’t anyone have an idea? I also tried it again with the standard
   WordPress theme. As soon as the Elementor plugin is activated, the error appears.
   Another one here in the forum has so far been unsuccessful :/
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [1 year, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-template/#post-18289925)
 * [@br123123](https://wordpress.org/support/users/br123123/) Please do not create
   multiple topics for the same thing. Your 2 new topics have been archived.
 *  Thread Starter [br123123](https://wordpress.org/support/users/br123123/)
 * (@br123123)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-template/#post-18289946)
 * [@jdembowski](https://wordpress.org/support/users/jdembowski/) Of course I understand
   that, but there were different error messages in different situations. And since
   there hasn’t been an answer to my post for days, I tried to solve the error myself
   but kept getting different error messages and for this reason I created a new
   topic. And was able to provide different information about the problem. Unfortunately,
   now the new information/findings are all gone through the archive :/
 *  [Sandra Abreu](https://wordpress.org/support/users/sabreu/)
 * (@sabreu)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/illegal-string-offset-template/#post-18518312)
 * Apologies for the delay in getting back to you for your query.
   Are you still 
   facing this issue on your end?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Illegal string offset ‘template’’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Sandra Abreu](https://wordpress.org/support/users/sabreu/)
 * Last activity: [11 months, 3 weeks ago](https://wordpress.org/support/topic/illegal-string-offset-template/#post-18518312)
 * Status: resolved