Title: [ERROR] WP Debug &gt; PHP Deprecated: Array and string offset access syntax &#8230;
Last modified: January 11, 2021

---

# [ERROR] WP Debug > PHP Deprecated: Array and string offset access syntax …

 *  Resolved [Fabio Perri](https://wordpress.org/support/users/fabioperri/)
 * (@fabioperri)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-wp-debug-php-deprecated-array-and-string-offset-access-syntax/)
 * **ERRORS & SOLUTION**
 * Error severity: _Very Low_
 * PHP version affected: _From PHP v7.4.x_
 * Cause of the error: _PHP deprecated syntax_
 * Reference: _[https://wiki.php.net/rfc/deprecate\_curly\_braces\_array\_access](https://wiki.php.net/rfc/deprecate_curly_braces_array_access)_
 * System specifications: _WordPress v5.6 with PHP v7.4.13_
 * Affected plugin: _Heroic Favicon Generator_
 * Affected file: _phpthumb.functions.php_
 * Path of file: _…/wp-content/plugins/favhero-favicon-generator/phpthumb/phpthumb.
   functions.php_
 * Affected lines of codes: _212, 989_
 * **ERRORS:**
 * PHP Deprecated: Array and string offset access syntax with curly braces is deprecated
   in /my-website.com/httpdocs/wp-content/plugins/favhero-favicon-generator/phpthumb/
   phpthumb.functions.php on line 212
 * PHP Deprecated: Array and string offset access syntax with curly braces is deprecated
   in /my-website.com/httpdocs/wp-content/plugins/favhero-favicon-generator/phpthumb/
   phpthumb.functions.php on line 989
 * **SOLUTIONS:**
 * LINE 212
    Change this value: $output .= ‘ 0x’.str_pad(dechex(ord($string{$i})),
   2, ‘0’, STR_PAD_LEFT); With this value: $output .= ‘ 0x’.str_pad(dechex(ord($
   string[$i])), 2, ‘0’, STR_PAD_LEFT);
 * LINE 989
    Change this value: $strtr_preg_quote[$escapeables{$i}] = $delimiter.
   $escapeables{$i}; With this value: $strtr_preg_quote[$escapeables[$i]] = $delimiter.
   $escapeables{$i};
 * I have tested this solution several times and it appears to be correct.
 * Hoping to have been useful, however, I await confirmation from you.
 * _Good day and good work._
    -  This topic was modified 5 years, 4 months ago by [Fabio Perri](https://wordpress.org/support/users/fabioperri/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Chris Hadley](https://wordpress.org/support/users/chrishadley/)
 * (@chrishadley)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-wp-debug-php-deprecated-array-and-string-offset-access-syntax/#post-13896242)
 * Hi [@fabioperri](https://wordpress.org/support/users/fabioperri/)
 * Thanks for your bug report, I appreciate it. I’ve added it to the development
   tracker for the team to address in the next update.
 * All the best,
 * Chris

Viewing 1 replies (of 1 total)

The topic ‘[ERROR] WP Debug > PHP Deprecated: Array and string offset access syntax…’
is closed to new replies.

 * ![](https://ps.w.org/favhero-favicon-generator/assets/icon.svg?rev=2400193)
 * [Heroic Favicon Generator](https://wordpress.org/plugins/favhero-favicon-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/favhero-favicon-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/favhero-favicon-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/favhero-favicon-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/favhero-favicon-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/favhero-favicon-generator/reviews/)

## Tags

 * [log](https://wordpress.org/support/topic-tag/log/)
 * [nginx](https://wordpress.org/support/topic-tag/nginx/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [php-fpm](https://wordpress.org/support/topic-tag/php-fpm/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chris Hadley](https://wordpress.org/support/users/chrishadley/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/error-wp-debug-php-deprecated-array-and-string-offset-access-syntax/#post-13896242)
 * Status: resolved