Title: Fatal error: Cannot use string offset as an array
Last modified: August 20, 2016

---

# Fatal error: Cannot use string offset as an array

 *  [Erik Harris](https://wordpress.org/support/users/eharris/)
 * (@eharris)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/)
 * This is strange… I’ve got this plugin installed on two sites installed on the
   same server. On my wife’s site, it works fine. I had trouble with another Analytics
   plugin not working, so I nuked it and installed this one, since it’s working 
   for my wife. However, when I go to the plugin’s config page, I get this error:
 * `Fatal error: Cannot use string offset as an array in /(wp_content_path)/plugins/
   google-analytics-for-wordpress/admin/class-admin.php on line 323`
 * Even more strange – when I log into my FTP server and look at my wife’s site,
   her “google-analytics-for-wordpress” directory contains only two subdirectories(
   images and wp-data) and nine files. My site’s non-functional “google-analytics-
   for-wordpress” directory, on the other hand, has **SIX** subdirectories (admin,
   frontend, images, inc, js, and languages) and only four files.
 * Version 4.3.1 is installed on both sites (and both sites are using WP 3.5.1) 
   though they have completely different sets of files, and only one of them works.
   Why the very different sets of files, and what might be causing the problem on
   my site?
 * Possibly relevant: my site’s 4.3.1 is a fresh install of the plugin. My wife 
   has been using the plugin for awhile, so hers is an upgrade from a prior version
   of the plugin.
 * [http://wordpress.org/extend/plugins/google-analytics-for-wordpress/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/?output_format=md)
[2](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/page/2/?output_format=md)
3

 *  [jryser](https://wordpress.org/support/users/jryser/)
 * (@jryser)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/page/3/#post-3552257)
 * Guys, I could really use some help. Stoutyhk’s fix was completely foreign to 
   me. I am simply too unskilled to understand what he is telling me to do. Is there
   anyone who would be willing to help me out? I would be happy to give access to
   my site to get this fixed? Please reach out to me at _[redacted]_ Thank you. 
   Jack
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/page/3/#post-3552258)
 * **Jack** – sorry you’re having difficulty with this but we really, really do 
   not recommend giving access to your site to anyone you don’t know from a public
   forum. It’s just not smart.
 * If you need personal help, you could post a job listing here:
 *  [http://jobs.wordpress.net/](http://jobs.wordpress.net/)
 * Or simply look for another plugin?

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/?output_format=md)
[2](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/page/2/?output_format=md)
3

The topic ‘Fatal error: Cannot use string offset as an array’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 32 replies
 * 24 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-2/page/3/#post-3552258)
 * Status: not resolved