WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
[closed] Fatal error opening plugin configuration page (31 posts)

  1. tianlynn
    Member
    Posted 1 year ago #

    Fatal error: Cannot use string offset as an array in wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php on line 344

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

  2. dcwebman
    Member
    Posted 1 year ago #

    I have the exact same message except on line 342. This is with version 4.3.3.

  3. gabberkopf
    Member
    Posted 1 year ago #

    Same problem here

  4. rjjacob
    Member
    Posted 1 year ago #

    Same here.

  5. Pickel L.
    Member
    Posted 1 year ago #

    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?

  6. sleinen
    Member
    Posted 1 year ago #

    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

  7. dcwebman
    Member
    Posted 1 year ago #

    Deleting comment due to early morning confusion. Same problem as described above.

  8. Spikky
    Member
    Posted 1 year ago #

    Same problem here!

    Looking forward to a solution.

  9. Vovastik
    Member
    Posted 1 year ago #

    Same problem here! 342

  10. xmifox
    Member
    Posted 1 year ago #

    Same for me, line 342. Any solutions?

  11. mistasauce
    Member
    Posted 12 months ago #

    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

  12. stoutyhk
    Member
    Posted 12 months ago #

    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:

  13. melonman
    Member
    Posted 11 months ago #

    @stoutyhk: man you're great - works perfectly!

  14. Kramer
    Member
    Posted 11 months ago #

    @stoutyhk: You are awesome - thank you

  15. pro.andriy@gmail.com
    Member
    Posted 11 months ago #

    Die Lösung von "stoutyhk" funktioniert :). DANKE! Habe auf der Seite meiner Frau (http://pudding-girl.de/) gleiches Problem gehabt.

  16. alanwelam
    Member
    Posted 11 months ago #

    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.

  17. Vovastik
    Member
    Posted 11 months ago #

    works perfectly!

  18. stoutyhk
    Member
    Posted 11 months ago #

    @alanwelam - that's an error with a different plugin.

    Maybe try manually updating Jetpack to the latest version: http://downloads.wordpress.org/plugin/jetpack.zip

  19. Sperry77
    Member
    Posted 11 months ago #

    If I deactivate and then delete and reinstall - will that work? I'm getting the same error and I have no idea how to go to [WordPress Address]/wp-admin/options-general.php?page=google-analytics-for-wordpress per your instructions above. Where do I type that in?

  20. Sperry77
    Member
    Posted 11 months ago #

    The deactivate and reinstall worked. After delete... I also removed all orphaned items for yoast before reinstalling. Working again. No fatal error in line 342. Whew!

  21. markemark
    Member
    Posted 10 months ago #

    @stoutyhk same issue here, your fix worked, many thanks

  22. cawalrus
    Member
    Posted 9 months ago #

    I am having the same issue for quite sometime. The fix by Stoutyhk seems to be beyond my expertise, still a novice. Is there another fix available? How do I remove the orphaned items. I've tried many times to delete and re-install, very frustating. Am using the latest V . Any help would be appreciated. Thanks.

  23. OrangeMonkee
    Member
    Posted 9 months ago #

    @stoutyhk

    Thank you SO MUCH! Your post and script was very helpful!

    The plugin is working for me again!

  24. OrangeMonkee
    Member
    Posted 9 months ago #

    Don't mind this post.

  25. SloKenny
    Member
    Posted 8 months ago #

    @stoutyhk - That worked! Thanks for sharing this.

  26. osvme
    Member
    Posted 8 months ago #

    Did what Sperry77 said, didn't work. Now to try... something else!!

  27. osvme
    Member
    Posted 8 months ago #

    And Stoutyhk is a hero :P

  28. mperluss
    Member
    Posted 7 months ago #

    Thanks Stoutyhk!! That fixed the problem.

  29. MrWolf444
    Member
    Posted 7 months ago #

    Thank you problem fixed!

  30. mack28
    Member
    Posted 7 months ago #

    Same problem here. Please fix the plugin. I have it on more than 100 client sites. WP 3.6.1 not all site have the issue. Line 342.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.