Loading...
 
Skip to main content

Architecture / Installation


"Warning: Wrong parameter count for mysql_connect() in /var/www/tiki/lib/adodb/drivers/adodb-mysql.i

Well, I've apparently done it.
In trying to get thumbnails working on my Libranet 2.8.1 distro (got php4-gd2 installed, but it's still complaining about unresolved "php_stream_stdio_ops()" sigh) I have really screwed things up.

Barring thumbnails, the system was working fine. Then, in a fit of inspiration, I applied some other PHP4 package; I think it was php4-

I applied the libapache-mod-php4 package, hoping that would clear up the stream issue; and I now get the above error message when I try to browse to the initial tiki page.

I'm fairly convinced this is a relatively-obvious, stupid error. Could someone help me revert back to a working wiki? I'm reluctant to go hunting for a fix myself - that's how I got here in the first place 😑

Thanks!

Tom

Just an idea:
thumbnails are using imagick or the gd (php extension) library (release 2 is better)


Okay, bad form: I'm responding to my own post.
The problem may be version-related, but I don't know what to look for. The error is in the ADODB database-extraction file "adodb-mysql.inc.php"; I print out the parameters and the fourth ($this->forceNewConnect) shows up as an empty string ('') when I try to print it out using ADOConnection:outp(). If I force the value to TRUE or to FALSE, there's no change in the error.

adodb-mysql.inc.php is V4.55 (updated 3 Jan 2005).

If I try commenting out the last two parameters in the call to _connect in adodb-mysql.inc.php (i.e. just leaving host, user, password) I get a segmentation fault in the child reported by apache (error.log) which I presume is the php process.

I am running php 4.3.10-2; Apache 1.3.3; mysql reports "Ver 11.16 Distrib 3.23.49, for pc-linux-gnu (i686)"

Can someone advise what I might need to change/back out?

Thanks!
Tom

I found the problem (or rather, I fixed the problem - "found" implies I know what I did). I uninstalled "libapache-mod-php4" (which uninstalled php4) and reinstalled php4 (leaving libapache-mod-php4 uninstalled). That appeared to fix it - ot at least get me back to where the only thing that fails is gd2 (which errors with a
"PHP Warning: Unable to load dynamic library '/usr/lib/php4/20020429/gd.so' - /usr/lib/php4/20020429/gd.so: undefined symbol: php_stream_stdio_ops in Unknown on line 0"

Which I need to track down now 😑

Tom