EVE-SECURE / evedev-kb

Automatically exported from code.google.com/p/evedev-kb
0 stars 0 forks source link

Db connection #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/evedev-kb/source/detail?r=548

Error with this update. Reverting back to rev 490 allows db connection.

Warning: mysqli_get_server_info() expects parameter 1 to be mysqli, null
given in /killboard/common/includes/db.php  on line 12
EDK 3 requires MySQL version 5.0+. Your version is 0

Original issue reported on code.google.com by christod...@gmail.com on 21 Feb 2010 at 6:01

GoogleCodeExporter commented 9 years ago
Are you sure that common/includes/db.php was updated? Line 12 of the updated 
db.php 
should work with any version of EDK.
'$value = (float) mysqli_get_server_info($conn->id());'

Were there any other errors or warnings?

Original comment by kovellia on 21 Feb 2010 at 9:05

GoogleCodeExporter commented 9 years ago
Updated 2 kbs with same files got the same error on both. Kbs are on 2 different
hosts. Only the 1 error appeared. 
But you are correct the error seems to be coming from
class.dbconnection.php  

db.php in the current version is fine.

Original comment by christod...@gmail.com on 22 Feb 2010 at 10:30

GoogleCodeExporter commented 9 years ago
In that case, are you sure that class.dbconnection.php was updated? :)

I'm not seeing any potential cause of the problem. What is your version of php?

You are safe to use the old class.dbconnection.php and apply all other 
revisions. The 
changes are internal only.

Original comment by kovellia on 22 Feb 2010 at 10:49

GoogleCodeExporter commented 9 years ago
All other files are upto current revision 550. Tested on 3 machines 1st windows 
with
sql 5 and php 5.2.6 and works fine. 2nd Linux host sql 5 and php 5.2.12 doesnt 
work.
3rd Linux host with sql 5 and php 5.2.5 doesnt work. 

I can use all of the other files with no problems but still using old
class.dbconnection.php

Original comment by christod...@gmail.com on 22 Feb 2010 at 4:26

GoogleCodeExporter commented 9 years ago
It works for me on windows with php 5.3.1 and linux with php 5.2.10.

If I can't work out what the problem is I'll revert. Working code before 
aesthetics.

Original comment by kovellia on 22 Feb 2010 at 9:53

GoogleCodeExporter commented 9 years ago
And then I forgot about this. Do you still have the same issue with the more 
recent 
code?

Original comment by kovellia on 29 May 2010 at 3:13

GoogleCodeExporter commented 9 years ago
Closing since there's no feedback and it works on all other tests.

Reopen if you have the problem again.

Original comment by kovellia on 18 Sep 2010 at 6:55