Title: Fatal error: Array and string offset access syntax with curly braces
Last modified: November 2, 2022

---

# Fatal error: Array and string offset access syntax with curly braces

 *  [rebelord](https://wordpress.org/support/users/rebelord/)
 * (@rebelord)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-array-and-string-offset-access-syntax-with-curly-braces/)
 * When trying to “Link your GA Account” coming back to wp gives me:
 * Fatal error: Array and string offset access syntax with curly braces is no longer
   supported in /www/sites/2/site80182/public_html/dev/wp-content/plugins/Google-
   Analytics-Popular-Posts-master/api/src/Google/Utils.php on line 67
 * PHP 8.0.3
    -  This topic was modified 3 years, 7 months ago by [rebelord](https://wordpress.org/support/users/rebelord/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [rebelord](https://wordpress.org/support/users/rebelord/)
 * (@rebelord)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-array-and-string-offset-access-syntax-with-curly-braces/#post-16158171)
 * Also after replacing the brackets with [], a new arror gets reported:
    `Fatal
   error: Uncaught Google_Auth_Exception: Error fetching OAuth2 access token, message:'
   invalid_client' in /www/sites/2/site80182/public_html/dev/wp-content/plugins/
   Google-Analytics-Popular-Posts-master/api/src/Google/Auth/OAuth2.php:120 Stack
   trace: #0 /www/sites/2/site80182/public_html/dev/wp-content/plugins/Google-Analytics-
   Popular-Posts-master/api/src/Google/Client.php(120): Google_Auth_OAuth2->authenticate('
   4/0ARtbsJoV1pRq...') #1 /www/sites/2/site80182/public_html/dev/wp-content/plugins/
   Google-Analytics-Popular-Posts-master/AnalyticBridgeGoogleClient.php(191): Google_Client-
   >authenticate('4/0ARtbsJoV1pRq...') #2 /www/sites/2/site80182/public_html/dev/
   wp-content/plugins/Google-Analytics-Popular-Posts-master/inc/analytic-bridge-
   blog-options.php(181): analytic_bridge_authenticate_google_client('4/0ARtbsJoV1pRq...')#
   3 /www/sites/2/site80182/public_html/dev/wp-includes/class-wp-hook.php(308): 
   analyticbridge_google_authenticate_code_post('') #4 /www/sites/2/site80182/public_html/
   dev/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #
   5 /www/sites/2/site80182/public_html/dev/wp-includes/plugin.php(517): WP_Hook-
   >do_action(Array) #6 /www/sites/2/site80182/public_html/dev/wp-admin/admin.php(
   175): do_action('admin_init') #7 /www/sites/2/site80182/public_html/dev/wp-admin/
   tools.php(40): require_once('/www/sites/2/si...') #8 {main} thrown in /www/sites/
   2/site80182/public_html/dev/wp-content/plugins/Google-Analytics-Popular-Posts-
   master/api/src/Google/Auth/OAuth2.php on line 120`

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Array and string offset access syntax with curly braces’
is closed to new replies.

 * ![](https://ps.w.org/better-analytics/assets/icon.svg?rev=1170242)
 * [Better Google Analytics](https://wordpress.org/plugins/better-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/better-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-analytics/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [rebelord](https://wordpress.org/support/users/rebelord/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-array-and-string-offset-access-syntax-with-curly-braces/#post-16158171)
 * Status: not resolved