Advanced

Re: Errno 2 in a script that worked well since Dec 2014

Errno 2 in a script that worked well since Dec 2014
June 01, 2016 09:45PM
Hi all,

my script http://project-gc.com/Challenges/GC5AJ72/2787 worked well since December 2014, but now returns this error below. An idea, something changed in API ?

Array
(
[0] => Array
(
[errno] => 2
[errstr] => mysqli_result::free(): Couldn't fetch mysqli_result
[errfile] => /opt/project-gc/project-gc/htdocs/include/lua_callbacks.php
[errline] => 465
)

)

Thanks,
Tof
Re: Errno 2 in a script that worked well since Dec 2014
June 01, 2016 11:16PM
I might have found an issue, but if so, it must have been broken for quite some time. I found something strange in the code, but it's code that hasn't been touched for months.

Anyway. I will release a fix, it's out there in a few minutes. Since the script/tag is disabled, I can't test run it easily.
Re: Errno 2 in a script that worked well since Dec 2014
June 02, 2016 12:35AM
Thanks a lot, Magnus, it's working again ! I re-activated the script and tag.

What was the problem ?
Re: Errno 2 in a script that worked well since Dec 2014
June 02, 2016 01:03AM
A patch made a long time ago that left a $mysqli->free_result() in a place where there was no result anymore. It was related to using descriptions in checkers I think.
Sorry, you do not have permission to post/reply in this forum.