Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Fatal Error in WhosOnlineModule.ToString();

clethrillclethrill ✭✭
edited December 2011 in Vanilla 2.0 - 2.8

Undefined property: stdClass::$Invisible

The error occurred on or near: /var/www/plugins/WhosOnline/class.whosonlinemodule.php

<div class="PhotoGridSmall">
<?php
    if ($this->_OnlineUsers->NumRows() > 0) { 
    foreach($this->_OnlineUsers->Result() as $User) {
    echo UserPhoto(UserBuilder($User),($User->Invisible == 1 ? 'Invisible' : 'ProfilePhotoMedium'));
    //echo Gdn_Format::Date($User->Timestamp);
    }
    }
?>          

Plugin works perfectly fine on localhost, and still 'works' on live site, however it produces this error.

Best Answer

  • 422422 Developer MVP
    Answer ✓

    email me at sales[at]vanillaskins[dot]com and I will zip and send mate.

    There was an error rendering this rich post.

Answers

  • 422422 Developer MVP
    edited December 2011

    Hi @clethrill where is the error ? The above is the code.

    My bad, ops stdClass::$Invisible

    There was an error rendering this rich post.

  • The only visible places it shows up is on most of the dashboard pages. (which screws up a lot of it and makes it mostly unusable). However it also 'appears' on all other pages with the WhoOnline plugin showing in the panel. I quoted appears as it is only noticeable in the console (in chrome [haven't looked at other browsers yet])

  • 422422 Developer MVP

    which version are you using ? 1.3 or Aoles version ?

    There was an error rendering this rich post.

  • clethrillclethrill ✭✭
    edited December 2011

    Well, it's 0.8, I think I was using Aolee's version, to be honest, can't remember though. Okay so I worked out I am using Aolee's and I redownloaded his version, and I still get error

  • 422422 Developer MVP
    edited December 2011

    Ok do you want my version ? I am using his... kinda

    There was an error rendering this rich post.

  • Sure

  • 422422 Developer MVP
    Answer ✓

    email me at sales[at]vanillaskins[dot]com and I will zip and send mate.

    There was an error rendering this rich post.

Sign In or Register to comment.