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

Fixed and closed topics
Locked
ix6tech
User
Posts: 48
Joined: Thu Jun 01, 2006 6:09 pm
Location: Dallas, TX
Contact:

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

Post 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.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

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

Post 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.
ix6tech
User
Posts: 48
Joined: Thu Jun 01, 2006 6:09 pm
Location: Dallas, TX
Contact:

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

Post by ix6tech »

Yeah, I have tried with and without. I'm testing on my linux box to see if i get the same result.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

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

Post 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.
ix6tech
User
Posts: 48
Joined: Thu Jun 01, 2006 6:09 pm
Location: Dallas, TX
Contact:

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

Post 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.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

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

Post 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;
ix6tech
User
Posts: 48
Joined: Thu Jun 01, 2006 6:09 pm
Location: Dallas, TX
Contact:

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

Post 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.
Locked