Skip to main content
Topic: errors in the log (Read 2183 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

errors in the log

Code: [Select]
Guest
http://www.elkarte.net/community/index.php?PHPSESSID=s9e370jf50bq5jpd671od7sll5&?scheduled=task;ts=1403438400
File: /.../community/sources/subs/Boards.subs.php
Line: 1622
This is rather odd.

There is no IP, no type of error, no error message, so it's a bit difficult to track it down.

Line 1622 is the query of the functions boardsModerated.
This is called probably from memberQuerySeeBoard that is used in a scheduled task: user_access_mentions.

The only thing that I could trigger an error there I think it's a wrong $id_member passed.
A 0 should not trigger an error (the query would return an empty result I think).
So a false/null? Or a string? But why? And why an error without anything else?
No idea. :(

ETA: okay, I did some more tests.
Running the scheduled task manually I can see a query error and an undefined index in the scheduled task class, though... it's even more odd.

Code: [Select]
				$user_see_board = memberQuerySeeBoard($row['id_member']);
log_error(implode(', ', array_keys($row)) . '<br />' . implode(', ', array_values($row)) . '<br />' . $row['id_member']);
This code, logs properly $row['id_member'], but the line just above generates an undefined index error 'id_member'
And it fails only when re-counting [SiNaN]'s mentions... LOL
Last Edit: June 23, 2014, 02:27:59 pm by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: errors in the log

Reply #1

Is using $request on the outer loop and then creating a new $request on the inner loop intended ?

Re: errors in the log

Reply #2

 emanuele feels pretty dumb... :-[ LOL
Bugs creator.
Features destroyer.
Template killer.

Re: errors in the log

Reply #3

LOL I kept looking for references and then saw that and was like hummm, that does not seem right :P


Re: errors in the log

Reply #5

Quote from: emanuele – And it fails only when re-counting [SiNaN]'s mentions... LOL

That's what you get for using me as a test subject all the time. :P

It seems like I finally have my mentions counter fixed though. Thanks!

 

Re: errors in the log

Reply #6

YAY! :D
Bugs creator.
Features destroyer.
Template killer.