Title: illegal string offset in api.php
Last modified: July 2, 2021

---

# illegal string offset in api.php

 *  [lindarog](https://wordpress.org/support/users/lindarog/)
 * (@lindarog)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/illegal-string-offset-in-api-php/)
 * I am getting this error message and a Quettara warning about the api.php file
 * Warning: illegal string offset ‘pro_widgets’ in …/wp-content/plugins/elementor/
   includes/api.php on line 160
 * There are several 1 and 2 year old topics on this issue marked as resolved. This
   started for me after the last update affecting two sites built on the JupiterX
   theme.

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

 *  [MaxCode](https://wordpress.org/support/users/mswebworld/)
 * (@mswebworld)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/illegal-string-offset-in-api-php/#post-14621774)
 * I am getting the same error on elementor editor page when WordPress debug mode
   is “true”.
 *  [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/illegal-string-offset-in-api-php/#post-14621852)
 * Getting same with default theme and no other plugin active.
    Elementor panel 
   footer is not visible, so we cannot edit the page.
 * Warning: Undefined array key “pro_widgets” in ….\wp-content\plugins\elementor\
   includes\api.php on line 160
 * More info for reference:
    For PHP 8 – It stays even if debug mode false. So page
   edit is not possible. For PHP 7x – it goes off when debug mode false.
 * Thanks.
    -  This reply was modified 5 years, 1 month ago by [coolcoder](https://wordpress.org/support/users/coolcoder/).

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

The topic ‘illegal string offset in api.php’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/illegal-string-offset-in-api-php/#post-14621852)
 * Status: not resolved