Title: PHP warning and breaking backend functionality
Last modified: March 14, 2020

---

# PHP warning and breaking backend functionality

 *  [webmastermd](https://wordpress.org/support/users/webmastermd/)
 * (@webmastermd)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-warning-and-breaking-backend-functionality/)
 * Hi, with the current version I get this warning on all backend pages printed 
   out at the top: `Deprecated: Array and string offset access syntax with curly
   braces is deprecated in /home/portalleviarto/public_html/wp-content/plugins/toolbar-
   extras/includes/admin/tbex-addons.php on line 96`
 * And some other plugins stop working, like the SG Optimizer which does not load
   the settings anymore if I enter the admin settings screen.
    I get a `SyntaxError:
   Unexpected token < in JSON at position 0 SyntaxError: Unexpected token < in JSON
   at position 0` in JS console after the plugins tries it’s ajax request to get
   the settings. This only happens if your plugin is active.
 * Could be important: I use PHP 7.4

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

 *  [Kaspar Thomann](https://wordpress.org/support/users/ka-tho-ba/)
 * (@ka-tho-ba)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-warning-and-breaking-backend-functionality/#post-12545595)
 * found same issue with “[Query Monitor](https://querymonitor.com/)” Version 3.5.2
   
   and affects also line 97.
 * May I suggest
    line 96 $addons_by_type = “$addons_$type”; line 97 $addons_by_type[
   $addon ] = $addon_data;
 *  [martenti](https://wordpress.org/support/users/martenti/)
 * (@martenti)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-warning-and-breaking-backend-functionality/#post-13048958)
 * I confirm. Still present in error log: “Deprecated: Array and string offset access
   syntax with curly braces is deprecated”
 * Time for some refresh. David, please do not leave us. We like your plugins.
 * Thx!

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

The topic ‘PHP warning and breaking backend functionality’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/toolbar-extras_ab89d8.svg)
 * [Toolbar Extras for Elementor & More - WordPress Admin Bar Enhanced](https://wordpress.org/plugins/toolbar-extras/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/toolbar-extras/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/toolbar-extras/)
 * [Active Topics](https://wordpress.org/support/plugin/toolbar-extras/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/toolbar-extras/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/toolbar-extras/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [martenti](https://wordpress.org/support/users/martenti/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/php-warning-and-breaking-backend-functionality/#post-13048958)
 * Status: not resolved