From geeklog-users-admin at lists.geeklog.net Fri Aug 1 06:25:50 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Fri, 1 Aug 2003 20:25:50 +1000 Subject: [geeklog-users] Installation error Message-ID: <0308012025500D.04440@slinky.exmosys.com> Hi, I am new to PHP and MySQL, so I have probably brought this error on myself. I have installed geeklog 1.3.8 on a linux box running Apache 1.3.14, php4.0.4, and MySQL 3.23.36. I am fairly sure the installation has not succeeded, but I get neither error message nor success message. phpMyAdmin shows my geeklog database has 39 tables, all of which have 0 records in them. When I try opening my geeklog site in a browser, I get the following error: "1064: You have an error in your SQL syntax near ')' at line 1. The full SQL, from error.log is: SELECT DISTINCT ft_name FROM gl_access,gl_features WHERE ft_id = acc_ft_id AND acc_grp_id IN () It would seem that the list at the end is not supposed to be empty. However, I am at a loss as to how to fix it. I have tried dropping the database, and re-running install.php, but again, I get neither error nor success message from that. There are no errors in error.log from the installation. Does anyone have any suggestions please? Thanking you in advance for any and all help, Cheers! Nik. From geeklog-users-admin at lists.geeklog.net Fri Aug 1 07:04:28 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Fri, 1 Aug 2003 13:04:28 +0200 Subject: [geeklog-users] Installation error In-Reply-To: <0308012025500D.04440@slinky.exmosys.com> References: <0308012025500D.04440@slinky.exmosys.com> Message-ID: <20030801110428.8638@smtp.haun-online.de> Nik wrote: >I am fairly sure the installation has not succeeded, but I get neither error >message nor success message. Did you get to the success page (success.php)? Or what exactly do you get when you run the install script? >phpMyAdmin shows my geeklog database has 39 tables, all of which have 0 >records in them. 39 tables is correct for Geeklog 1.3.8, but they should not be empty (which explains your other problems). bye, Dirk P.S. I had to approve your post manually. Please make sure you're subscribed to the list and that you're posting from the address you've used to subscribe. Thanks. -- http://www.geeklog.net/ http://geeklog.info/ From geeklog-users-admin at lists.geeklog.net Fri Aug 1 07:32:10 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Fri, 1 Aug 2003 21:32:10 +1000 Subject: [geeklog-users] Installation error In-Reply-To: <20030801110428.8638@smtp.haun-online.de> References: <0308012025500D.04440@slinky.exmosys.com> <20030801110428.8638@smtp.haun-online.de> Message-ID: <0308012132100E.04440@slinky.exmosys.com> On Fri, 1 Aug 2003 21:04, you wrote: > Nik wrote: > >I am fairly sure the installation has not succeeded, but I get neither > > error message nor success message. > > Did you get to the success page (success.php)? Or what exactly do you get > when you run the install script? After I click the "Next >>" button on the page entitled "Geeklog Database Settings (Step 2 of 2)", I get a blank page. My browser (Netscape 7) status line says: "Document: Done (0.202 secs)", and the "N" icon has stopped spinning. Looking at the page source, I have: "
" > P.S. I had to approve your post manually. Please make sure you're > subscribed to the list and that you're posting from the address you've > used to subscribe. Thanks. oops: sorry, my emailer was set to an address different to my subscription address - now fixed. From geeklog-users-admin at lists.geeklog.net Fri Aug 1 07:43:03 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Fri, 1 Aug 2003 13:43:03 +0200 Subject: [geeklog-users] Installation error In-Reply-To: <0308012132100E.04440@slinky.exmosys.com> References: <0308012132100E.04440@slinky.exmosys.com> Message-ID: <20030801114303.22003@smtp.haun-online.de> >After I click the "Next >>" button on the page entitled "Geeklog Database >Settings (Step 2 of 2)", I get a blank page. Hmm, something's happening there. If you have access to the php.ini, can you try changing the error_reporting? Or you could try adding some debug output in function INST_createDatabaseStructures() in the install script. It does three things: 1. create the tables (seems to do that) 2. check which MySQL version you have and add indexes, if possible 3. fill the tables It seems to fail at either step 2 or 3 there. No idea why it would fail there, though ... bye, Dirk -- http://www.haun-online.de/ http://www.tinyweb.de/ From geeklog-users-admin at lists.geeklog.net Fri Aug 1 07:57:14 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Fri, 01 Aug 2003 07:57:14 -0400 Subject: [geeklog-users] Moderator Problem.. Message-ID:\n"; ? ? if ($_DB_dbms == 'mysql') { ? ? ? ? @mysql_connect ($_DB_host, $_DB_user, $_DB_pass); ? ? ? ? $mysqlv = ''; ? ? ? ? $mysqlv = @mysql_get_server_info(); ? ? ? ? if (!empty ($mysqlv)) { ? ? ? ? ? ? preg_match ('/^([0-9]+).([0-9]+).([0-9]+)/', $mysqlv, $match); ? ? ? ? ? ? $mysqlmajorv = $match[1]; ? ? ? ? ? ? $mysqlminorv = $match[2]; ? ? ? ? ? ? $mysqlrev = $match[3]; ? ? ? ? } else { ? ? ? ? ? ? $mysqlmajorv = 0; ? ? ? ? ? ? $mysqlminorv = 0; ? ? ? ? ? ? $mysqlrev = 0; ? ? ? ? } ? ? ? ? @mysql_close(); ???????? echo "MySQL: " . $mysqlmajorv . "." . $mysqlminorv . "." . $mysqlrev; ???????? echo "
\n";
? ? ? ? if ((($mysqlmajorv == 3) && ($mysqlminorv >= 23) && ($mysqlrev >= 2))
||
? ? ? ? ? ? ?($mysqlmajorv > 3)) {
? ? ? ? ? ? // http://www.mysql.com/doc/en/Problems_with_NULL.html
? ? ? ? ? ? // Note that you can only add an index on a column that can have
? ? ? ? ? ? // NULL values if you are using MySQL Version 3.23.2 or newer
? ? ? ? ? ? for ($i = 1; $i <= count ($_INDEX); $i++) {
???????? ??????? echo current($_INDEX) . "
\n";
? ? ? ? ? ? ? ? DB_query (current ($_INDEX));
? ? ? ? ? ? ? ? next ($_INDEX);
? ? ? ? ? ? }
? ? ? ? }
? ? }
? ? // Now insert mandatory data and a small subset of initial data
? ? for ($i = 1; $i <= count($_DATA); $i++) {
? ? ? ? $progress .= "executing " . current($_DATA) . "
\n";
???????? echo current($_DATA) . "
\n";
? ? ? ? DB_query(current($_DATA));
? ? ? ? next($_DATA);
? ? }
? ? return true;
}
================== end func ============================
The output contains a whole lot of lines beginning with "CREATE TABLE" (which
I can send you, if you wish), then finally the following line, which I
presume is significant, since it implies that the mysql_connect( ... ) is
going to fail?
MySQL access: @:
There is no further output after this.
I have checked my config.php file, and there are values for
$_DB_host, $_DB_name, $_DB_user, $_DB_pass
(The password *did* have punctuation chars in there, but I have changed that
in both this file, and in MySQL, just in case).
Thanks again for all your time and help so far.
Cheers!
Nik
From geeklog-users-admin at lists.geeklog.net Fri Aug 1 09:05:33 2003
From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net)
Date: Fri, 1 Aug 2003 15:05:33 +0200
Subject: [geeklog-users] Installation error
In-Reply-To: <0308012246230F.04440@slinky.exmosys.com>
References: <0308012246230F.04440@slinky.exmosys.com>
Message-ID: <20030801130533.1462@smtp.haun-online.de>
>[...] then finally the following line, which I
>presume is significant, since it implies that the mysql_connect( ... ) is
>going to fail?
>
>MySQL access: @:
Damn.
> global $_CONF, $_DB_dbms, $_TABLES;
[...]
> @mysql_connect ($_DB_host, $_DB_user, $_DB_pass);
Question of the day: What is missing here?
Yep, the "global" statement is missing the $_DB_host, $_DB_user,
$_DB_pass variables, hence the mysql_connect will fail.
Not sure why this hasn't been noticed earlier. Maybe it's because you're
running MySQL 4 - it may be handling this differently.
In any case, it's a bug in the install script. Add those three variables
to the "global" statement in function INST_createDatabaseStructures() and
see if that helps.
Thanks for your help finding this.
bye, Dirk
--
http://www.haun-online.de/
http://www.macosx-faq.de/
From geeklog-users-admin at lists.geeklog.net Fri Aug 1 09:54:28 2003
From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net)
Date: Fri, 1 Aug 2003 23:54:28 +1000
Subject: [geeklog-users] Installation error
In-Reply-To: <20030801130533.1462@smtp.haun-online.de>
References: <0308012246230F.04440@slinky.exmosys.com> <20030801130533.1462@smtp.haun-online.de>
Message-ID: <0308012354280G.04440@slinky.exmosys.com>
Hi Dirk,
I was just checking out the formula-1 pre-qualifying when you latest
advice came in :o)
On Fri, 1 Aug 2003 23:05, you wrote:
>
> Not sure why this hasn't been noticed earlier. Maybe it's because you're
> running MySQL 4 - it may be handling this differently.
Actually, I'm running MySQL 3.23.36.
> In any case, it's a bug in the install script. Add those three variables
> to the "global" statement in function INST_createDatabaseStructures() and
> see if that helps.
Well, yes and no...
Here is a snippet from my latest install.php:
================ begin snippet ===========================
function INST_createDatabaseStructures() {
? ? global $_CONF, $_DB_dbms, $_TABLES, $_DB_host, $_DB_user, $_DB_pass;
? ? // Because the create table syntax can vary from dbms-to-dbms we are
? ? // leaving that up to each database driver (e.g. mysql.class.php,
? ? // postgresql.class.php, etc)
? ? // Get DBMS-specific create table array and data array
? ? require_once($_CONF['path'] . 'sql/' . $_DB_dbms . '_tableanddata.php');
? ? $progress = '';
? ? for ($i = 1; $i <= count($_SQL); $i++) {
???????? echo current($_SQL) . "
\n";
? ? ? ? DB_query(current($_SQL));
? ? ? ? next($_SQL);
? ? }
? ? echo "connecting to " . $_DB_host . "
\n";
? ? if ($_DB_dbms == 'mysql') {
? ? ? ? @mysql_connect ($_DB_host, $_DB_user, $_DB_pass);
???????? echo "connected to " . $_DB_host . "
\n";
? ? ? ? $mysqlv = '';
? ? ? ? $mysqlv = @mysql_get_server_info();
???????? echo "mysqlv = " . $mysqlv . "
\n";
? ? ? ? if (!empty ($mysqlv)) {
? ? ? ? ? ? preg_match ('/^([0-9]+).([0-9]+).([0-9]+)/', $mysqlv, $match);
? ? ? ? ? ? $mysqlmajorv = $match[1];
? ? ? ? ? ? $mysqlminorv = $match[2];
? ? ? ? ? ? $mysqlrev = $match[3];
? ? ? ? } else {
? ? ? ? ? ? $mysqlmajorv = 0;
? ? ? ? ? ? $mysqlminorv = 0;
? ? ? ? ? ? $mysqlrev = 0;
? ? ? ? }
? ? ? ? @mysql_close();
???????? echo "MySQL: " . $mysqlmajorv . "." . $mysqlminorv . "." . $mysqlrev;
???????? echo "
\n";
======================== end of snippet =====================
which produces the following final output:
connecting to localhost
connected to localhost
The connect is working correctly, and the $_DB_user and $_DB_pass are correct
(I did check), but the mysql_get_server_info() is terminating the script, it
appears.
Just a reminder that I am running MySQL 3.23.36 (according to phpMyAdmin).
> Thanks for your help finding this.
Not at all - thank you for your quick help.
Cheers!
Nik
From geeklog-users-admin at lists.geeklog.net Fri Aug 1 10:23:03 2003
From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net)
Date: Fri, 1 Aug 2003 16:23:03 +0200
Subject: [geeklog-users] Installation error
In-Reply-To: <0308012354280G.04440@slinky.exmosys.com>
References: <0308012354280G.04440@slinky.exmosys.com>
Message-ID: <20030801142303.27691@smtp.haun-online.de>
Nik,
>Actually, I'm running MySQL 3.23.36.
Oops. I had something like "4.0.4" in the back of my mind - but that was
your PHP version. Which is quite old, btw. See also below ...
>The connect is working correctly, and the $_DB_user and $_DB_pass are
correct
>(I did check), but the mysql_get_server_info() is terminating the script, it
>appears.
Bingo.
>From