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

Stadistics + Preview addon = Crash

edited July 2006 in Vanilla 1.0 Help
So, the Topic title says all :) Here's the error: al error: Call to a member function on a non-object in /web/htdocs/www.portalforos.net/home/extensions/Statistics/default.php on line 28 I can't find why, any one with the same problem ?

Comments

  • Options
    If that happens when you attempt to view a preview of a post then the Statistics extension might not be properly checking if variables exist before attempting to use them.
  • Options
    HI! The error is something related with the style.css that comes with the plugin, but don't understand why!
  • Options
    MarkMark Vanilla Staff
    edited July 2006
    Where and when exactly do you see this error?

    A screenshot might be particularly useful.
  • Options
    NickENickE New
    edited July 2006
    Looking over the Statistic extension, I think it is because it's not checking for variables before using them. At line 28 it makes a reference to $Head, but when init_ajax is used instead of init_vanilla there is no $Head variable. Adding this:if(!in_array($Context->SelfUrl, array('index.php', 'settings.php'))) return; before all the $Context->Dictionary... stuff should probably fix it.
  • Options
    MarkMark Vanilla Staff
    Yeah, I think sirnot is on it.
  • Options
    Yesssss It's what you say! Now works great. Will be interesting to add this to the future versions of this addons to prevent this error. Great find sirNot!
This discussion has been closed.