Page 1 of 1

There's no DB server input.

Posted: Thu Dec 07, 2006 3:21 am
by trampoline
Mac OS X server 10.4
PHP 5.1
sql 4.1.1
Ihave lots of php /sql stuff running but cannot install this one ?
I get
There's no DB server input.
on install
globals off etc safe mode off....
any ideas ?
I have chmod the whole FAQ directory ...
any help realy appreciated...

Posted: Thu Dec 07, 2006 3:32 am
by Thorsten
Hi,

do you see the databases in a phpinfo() page?

bye
Thorsten

Posted: Thu Dec 07, 2006 3:40 am
by trampoline
Thorsten wrote:Hi,

do you see the databases in a phpinfo() page?

bye
Thorsten
which page is that ? i mean i can load phpinfo if you mean the default html config page but non of my databases are listed there all work and are used for php web sites though ??....

Posted: Thu Dec 07, 2006 3:41 am
by Thorsten
Hi,

I found the bug and I'm working on a fix.

bye
Thorsten

Posted: Thu Dec 07, 2006 3:43 am
by trampoline
Thorsten wrote:Hi,

I found the bug and I'm working on a fix.

bye
Thorsten
Oh that's good thanks for telling me I thought I had gone mad there for a moment, thanks for your very prompt support, let me know when you find a fix,
best wishes,
Trampoline

Posted: Thu Dec 07, 2006 3:45 am
by Thorsten
Hi,

here's the patch:

Please open the file install/installer.php and go to line 317. Just change the following code from

Code: Select all

<?php
	// check what extensions are loaded in PHP
    foreach ($supported_databases as $extension => $database) {
        if (extension_loaded($extension) && version_compare(PHP_VERSION, $database[0]) >= 0) {
            if ($extension = 'mysqli' && ini_get('zend.ze1_compatibility_mode')) {
                continue;
            }
            printf('<option value="%s">%s</option>', $extension, $database[1]);
        }
    }
?>
to

Code: Select all

<?php
	// check what extensions are loaded in PHP
    foreach ($supported_databases as $extension => $database) {
        if (extension_loaded($extension) && version_compare(PHP_VERSION, $database[0]) >= 0) {
            if ($extension == 'mysqli' && ini_get('zend.ze1_compatibility_mode')) {
                continue;
            }
            printf('<option value="%s">%s</option>', $extension, $database[1]);
        }
    }
?>
and try it.

bye
Thorsten

Posted: Thu Dec 07, 2006 3:57 am
by trampoline
Nope no go

Posted: Thu Dec 07, 2006 4:00 am
by Thorsten
Hi,

it has to work, I tested it here. Did you really added the patch, You have to add a "=" in the line 321.

bye
Thorsten

Posted: Thu Dec 07, 2006 4:05 am
by trampoline
Thorsten wrote:Hi,

it has to work, I tested it here. Did you really added the patch, You have to add a "=" in the line 321.

bye
Thorsten
yes i patched it just as you suggested, saved the patched file, I even restarted the web server....
its 3.00 in the morning here so I'm off to bed any moment, but I'll reply if I'm up,
Thanks,
Trampoline

Posted: Thu Dec 07, 2006 3:04 pm
by trampoline
Well I don't get it, it worked first time today and I've done nothing new since last night !
So your fix worked !
Thanks,
Trampoline