Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorsteviehype
    • CommentTimeSep 9th 2006
     # 1
    There seems to be a problem with the Post Preview 2.1 and the Google Analytics 1.0 add-ons.

    When they are both activated the user sees this message in the preview box instead of their post:

    Fatal error: Call to a member function on a non-object in
    /my/path/to/vanilla/extensions/GoogleAnalytics/default.php on line 17


    What can I do to fix this? It doesn't happen when Google Analytics 1.0 is turned off, but it may be a different conflict, I don't know.

    Thanks
    •  
      CommentAuthorDinoboff
    • CommentTimeSep 9th 2006
     # 2
    replace line 15 with:
    if ( !in_array($Context->SelfUrl, array('settings.php')) && isset($Head) )
    •  
      CommentAuthorsteviehype
    • CommentTimeSep 9th 2006 edited
     # 3
    Nice one Dinoboff, that worked fine.

    Thanks for your speedy reply. :)
    • CommentAuthorithcy
    • CommentTimeSep 9th 2006
     # 4
    updated in the add-ons directory... thanks guys
Add your comments
    Username Password
  • Format comments as