Title: error Illegal string offset &#8216;template&#8217;
Last modified: July 9, 2021

---

# error Illegal string offset ‘template’

 *  Resolved [ali abdi](https://wordpress.org/support/users/aliabdi7496/)
 * (@aliabdi7496)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-illegal-string-offset-template/)
 * Hello, I moved WordPress to root folder, then I replaced the old links with new
   link with the Better Search Replace plugin, the following error occurs!
 * Warning: Illegal string offset ‘template’ in /home/firuzgolkh/public_html/wp-
   content/plugins/elementor/core/settings/page/manager.php on line 242
 * Fatal error: Uncaught TypeError: Argument 1 passed to Elementor\Controls_Stack::
   sanitize_settings() must be of the type array, string given, called in /home/
   firuzgolkh/public_html/wp-content/plugins/elementor/includes/base/controls-stack.
   php on line 987 and defined in /home/firuzgolkh/public_html/wp-content/plugins/
   elementor/includes/base/controls-stack.php:2038 Stack trace: #0 /home/firuzgolkh/
   public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(987):
   Elementor\Controls_Stack->sanitize_settings(‘_elementor_page…’) #1 /home/firuzgolkh/
   public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(1787):
   Elementor\Controls_Stack->get_data(‘settings’) #2 /home/firuzgolkh/public_html/
   wp-content/plugins/elementor/core/base/base-object.php(142): Elementor\Controls_Stack-
   >get_init_settings() #3 /home/firuzgolkh/public_html/wp-content/plugins/elementor/
   core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings()#
   4 /home/firuzgolkh/public_html/wp-content/plugins/elementor/co in /home/firuzgolkh/
   public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on 
   line 2038
    -  This topic was modified 4 years, 11 months ago by [ali abdi](https://wordpress.org/support/users/aliabdi7496/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-illegal-string-offset-template%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-illegal-string-offset-template/#post-14646343)
 * Looking at your site you are an Elementor Pro v3.3.1 user. The developer can’t
   have a conversation with customers here. That’s not permitted for anyone.
 * For pro or commercial product support please contact the developer directly on
   their site. This includes any pre-sales topics as well.
 * [https://wordpress.org/support/topic/customers-and-elementor-pro-users/](https://wordpress.org/support/topic/customers-and-elementor-pro-users/)
 * As the developer is aware, commercial products are [not supported in these forums](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products).
   I am sure they will have no problem supporting you there.

Viewing 1 replies (of 1 total)

The topic ‘error 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/)

## Tags

 * [illegal string offset](https://wordpress.org/support/topic-tag/illegal-string-offset/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/error-illegal-string-offset-template/#post-14646343)
 * Status: resolved