News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Getting errors in error log

Started by ACAMS, April 12, 2011, 07:20:16 PM

Previous topic - Next topic

ACAMS


I have SMF 2.0 RC3 with the RC4 security patch
I am getting this error hundreds of times a day....it is the only error I am getting now, except the occaisional user error.



http://gametechmods.com/forums/index.php?action=who


8: Undefined index: member


File: /home/gametechmods/gametechmods.com/forums/Sources/Who.php
Line: 200






197:         // Send the information to the template.
198:         $context['members'][$row['session']] = array(
199:            'id' => $row['id_member'],
==>200:            'ip' => (allowedTo('view_ip_address_any') || ($row['member'] == $context['user']['id'] && allowedTo('view_ip_address_own'))) ? $row['ip'] : '',
201:            // It is *going* to be today or yesterday, so why keep that information in there?
202:            'time' => strtr(timeformat($row['log_time']), array($txt['today'] => '', $txt['yesterday'] => '')),
203:            'timestamp' => forum_time(true, $row['log_time']),
204:            'query' => $actions,
205:            'is_hidden' => $row['show_online'] == 0,
206:            'id_spider' => $row['id_spider'],
207:            'color' => empty($row['online_color']) ? '' : $row['online_color']
208:         );
209:   
210:         $url_data[$row['session']] = array($row['url'], $row['id_member']);
211:         $member_ids[] = $row['id_member'];
212:      }
213:      $smcFunc['db_free_result']($request);



Does anybody have any idea what I can do to fix it, I disabled users seeing their own Ip, but the errors still appear.
I really need help with this as my error log fills up quickly.

Arantor

Use $row['id_member'] rather than $row['member']
Holder of controversial views, all of which my own.


ACAMS

WOW.....THANKS, that fixed it.


It sure is nice not seeing errors in my error log   :D

Arantor

FWIW, it's a bug in the mod you're using for IP permissions... one that I never found when I first wrote the mod. But it was written for RC1.2 originally rather than current RCs.
Holder of controversial views, all of which my own.


Advertisement: