I have the exact same message except on line 342. This is with version 4.3.3.
Same for me on line 342. I thought i would be solved, not……and i was waiting till now to give my reaction.
Maybe someone has the solution?
I am having this same issue – please advise asap.
Error message: php_code_error:1:/…/public_html/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php:342:Cannot use string offset as an array
Deleting comment due to early morning confusion. Same problem as described above.
Same problem here!
Looking forward to a solution.
Same for me, line 342. Any solutions?
SAME HERE:
Fatal error: Cannot use string offset as an array in /home/content/75/10741975/html/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php on line 342
I made a change that seems to fix the issue.
Download.
Gist – Diffs.
Upload to [wordpress dir]/wp-content/plugins/google-analytics-for-wordpress/admin/ – then go to [WordPress Address]/wp-admin/options-general.php?page=google-analytics-for-wordpress – it should load without the string offset error. Click “Re-authenticate with Google”. After re-authenticating, the plugin should now be using the newer https://www.googleapis.com/analytics/v2.4/management/accounts. You may need to create an API key:
@stoutyhk: man you’re great – works perfectly!
@stoutyhk: You are awesome – thank you
Die Lösung von “stoutyhk” funktioniert :). DANKE! Habe auf der Seite meiner Frau (http://pudding-girl.de/) gleiches Problem gehabt.
Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in D:\hosting\10425721\html\wp-content\plugins\jetpack\jetpack.php on line 4453
This is my error.
Alas, not a programmer.