Users Online

General Chat, Comments
Post Reply
Tangled
Posts: 12
Joined: Wed Oct 01, 2014 5:29 am

Users Online

Post by Tangled »

When I click on Users Online I get these errors, I have not tried to change any source code.

Error: Undefined offset: 0
Error in /home/killersi/public_html/NWE/modules/users_online/content.php
Line 37
Error in /home/killersi/public_html/NWE/libs/common.php
Line 554
Error in /home/killersi/public_html/NWE/index.php
Line 328
SophieEV
Posts: 22
Joined: Sat Aug 02, 2014 1:06 pm

Re: Users Online

Post by SophieEV »

Quickly looking at the code, id say either you have no user roles set up (admin, super_user, player) or you have someone online not assigned to one of the roles.

Other then that i just did a fresh install of the module and it worked for me :(
Tangled
Posts: 12
Joined: Wed Oct 01, 2014 5:29 am

Re: Users Online

Post by Tangled »

I have 5 players 2 are normal players 2 are superusers myself and a coder friend. and one administrator.
I just did a fresh install and came up with this again. Sometimes it works sometimes it doesn't

Error: Undefined offset: 0
Error in /home/killersi/public_html/NWE/modules/users_online/content.php
Line 37
Error in /home/killersi/public_html/NWE/libs/common.php
Line 554
Error in /home/killersi/public_html/NWE/index.php
Line 328
SophieEV
Posts: 22
Joined: Sat Aug 02, 2014 1:06 pm

Re: Users Online

Post by SophieEV »

Ive just managed to create that error myself by adding a user into the user_roles table with role_id that dosnt exist in the roles table.

From the looks of your error you may have people with a role_id of 0 in the user_roles table that need removing. A standard user shouldnt exist in this table, so whenever they log into the game, the users online is going to error until they go offline.

Thats my understanding of your error anyway ;)
Post Reply

Return to “General”