Page 1 of 1

(Win32) NJB 5.29 Multiple mysqli.inc.php Errors

Posted: Wed Jul 27, 2011 5:29 am
by ix6tech
Operating System: Windows 7 Professional 32bit
UAC: Disabled
Firewall: Disabled
NJB Version: 5.29
XAMPP Version: 1.7.4, 26.1.2011
MySQL 5.5.8
PHP 5.3.5
phpMyAdmin 3.3.9

Error Outputs:


Warning: feof() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\netjukebox\5.29\include\mysqli.inc.php

This is just one of several error outputs that come back when executing 5.29.

Re: (Win32) NJB 5.29 Multiple mysqli.inc.php Errors

Posted: Wed Jul 27, 2011 9:07 am
by wbartels
Can you give me a detailed error message with the line numbers?

Have you tried the config file with: $cfg['mysqli_port'] = '';
Port number doesn't work good in php with my setup.

Re: (Win32) NJB 5.29 Multiple mysqli.inc.php Errors

Posted: Wed Jul 27, 2011 11:03 am
by ix6tech
Yeah, I have tried with and without. I'm testing on my linux box to see if i get the same result.

Re: (Win32) NJB 5.29 Multiple mysqli.inc.php Errors

Posted: Sun Jul 31, 2011 2:42 pm
by wbartels
I think the server has to less access rights to the sql directory.
Maybe you can try out the updated netjukebox version witch now checks if the sql files can be read.

[RESOLVED]: (Win32) NJB 5.29 Multiple mysqli.inc.php Errors

Posted: Sun Jul 31, 2011 3:42 pm
by ix6tech
I used the same config convention as the one in version 5.28.3 by removing the following from config.inc.php:

$cfg['mysqli_port'] = "'';
$cfg['mysqli_auto_create_db'] = false;

This allowed the script to function properly with the manual setup process.

Re: [RESOLVED]: (Win32) NJB 5.29 Multiple mysqli.inc.php Err

Posted: Sun Jul 31, 2011 4:42 pm
by wbartels
ix6tech wrote:I used the same config convention as the one in version 5.28.3 by removing the following from config.inc.php:

$cfg['mysqli_port'] = "'';
$cfg['mysqli_auto_create_db'] = false;

This allowed the script to function properly with the manual setup process.
You can't remove any $cfg variables from the config file!!!
If you will manual install the sql file you can leave the $cfg['mysqli_auto_create_db'] = false; setting from the config file as it is.
The database section from the config file should look something like this:

Code: Select all

//  +------------------------------------------------------------------------+
//  | MySQLi configuration                                                   |
//  +------------------------------------------------------------------------+
$cfg['mysqli_host']                 = '127.0.0.1';
$cfg['mysqli_db']                   = 'netjukebox';
$cfg['mysqli_user']                 = 'root';
$cfg['mysqli_password']             = '';
$cfg['mysqli_port']					= '';
$cfg['mysqli_socket']               = '';
$cfg['mysqli_auto_create_db']       = false;

Re: (Win32) NJB 5.29 Multiple mysqli.inc.php Errors

Posted: Sun Jul 31, 2011 4:50 pm
by ix6tech
ah gotcha. Interesting thing.. The script somehow still works without them on this version, however, I get what you are saying on the $cfg lines.

I found out what was causing previous issues with the original configuration I had before my previous post.

Thanks for the heads up.