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();
clethrill
✭✭
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.
Tagged:
0
Best Answer
-
422 MVP
email me at sales[at]vanillaskins[dot]com and I will zip and send mate.
There was an error rendering this rich post.
1
Answers
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])
which version are you using ? 1.3 or Aoles version ?
There was an error rendering this rich post.
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
Ok do you want my version ? I am using his... kinda
There was an error rendering this rich post.
Sure
email me at sales[at]vanillaskins[dot]com and I will zip and send mate.
There was an error rendering this rich post.