Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Google Analytics and Post Preview Glitch

edited September 2006 in Vanilla 1.0 Help
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

Comments

  • Options
    replace line 15 with:
    if ( !in_array($Context->SelfUrl, array('settings.php')) && isset($Head) )
  • Options
    edited September 2006
    Nice one Dinoboff, that worked fine.

    Thanks for your speedy reply. :)
  • Options
    updated in the add-ons directory... thanks guys
This discussion has been closed.