[Mediawiki-l] Blank Page
Mike Dickson
mdickson at entechnologies.ca
Tue Jun 8 13:58:48 UTC 2004
When I remove the @ sign, I get the following:
Fatal error: Call to undefined function: mysql_connect() in /var/www/internal/wiki-new/includes/Database.php on line 95
Which I assume means that the mysql bits used by php aren't loading or whatever. An unfortunate choice of error text suppression.
Thanks to Joshua for the tip on this.
-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org [mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Marian Aldenhövel
Sent: June 8, 2004 4:38 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Blank Page
Hi,
> This is typical of a PHP fatal error with display_errors set to false.
> Turn on error reporting in the PHP configuration
I'd rather not as there are several other PHP-Applications on the system
and I know nothing about their requirements.
I have instead added
ini_set("error_reporting","E_ALL");
ini_set("display_errors",1);
To MediaWikis index.php. I tried several locations down the file, past
some of the configuration-includes to make sure it does not get unset
again.
No change in the result: Still a 200 http-code but no data.
I then put in a million statements of the form
echo __FILE__ . __LINE__ . '<br>';
tracing progress through the code the hard way. Passing through lots
of interesting places I finally reached includes/DataBase.php. The
place where the actual connection to the database is attempted in
function open(). I added my echoes and some more dumping-code:
echo __FILE__ . __LINE__ . '<br>';
var_dump($server); echo '<br>';
var_dump($user); echo '<br>';
var_dump($password); echo '<br>';
@$this->mConn = mysql_connect( $server, $user, $password );
echo __FILE__ . __LINE__ . '<br>';
The first echo and the var_dumps are executed. Servername (localhost)
and user and password are looking OK. The last echo does not execute
(or the output does not reach my client).
I have also tried removing the '@' from the mysql_connect-Line. No
change. I don't think I can follow the path of execution any further.
I can connect to the database fine when using the commandline
mysql-client with the servername, username and password that has been
output by my var_dumps. I can select the correct database and
list tables and data.
What now? What could make the system just die without any indication
of a problem?
Ciao, MM
--
Marian Aldenhövel, Rosenhain 23, 53123 Bonn.
Fon +49 228 624013, Fax +49 228 624031.
http://www.marian-aldenhoevel.de
"Wie trennt man drei Schlampen von zwei Säufern? Cockpittüre zu!"
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list