I just couple of hours ago went through the same hassle of having no php errors while getting white page. I discovered the .htaccess turned off the display_errors. Open the .htaccess file and search for the line:
php_value display_errors 0
Change it to this:
# php_value display_errors 0
And you'll get the PHP error messages.
Ah, no... the problem was that I gave my initial user the username "admin". That should be restricted somehow... that's a stupid problem to even be allowed to have.
Anyway, thanks for "Just Trying". :)
Jededitor, which external pages and php files you mean? For me, it is sure the elgg php files get picked up. When either settings.php or .htaccess is missing (I did the experiment with renaming temporarily either of them), I get the page that says correspondingly, what I am missing. From that I can conlcude with certainty three things:
It is just, that if both settings.php and .htaccess are in place, I get the empty white screen.
I narrowed down to the line of code in site initialization, where the death happens. It is in database.php, function establish_db_link($dblinkname = "readwrite"), the line:
// Connect to database
if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
It just drops there. No catchable exception is thrown, nothing comes to apache error.log, it just cuts here. The execution of the code don't reach beyond that line. That's it.
The $dblinkname has the value "readwrite", the variables that go as arguments to mysql_connect contain exact proper values as ought to be -- I tested with mysql command-line terminal -- those host, user and pass are valid credentials. If I copy that mysql_connect command with the same parameter values to a separate php-file with only this line, and run it from command-line through php, it works.
Any idea, how to debug it further?
Got it fixed. I discovered the .htaccess turned off the display_errors. Turning it back on helped me further -- the error said the function was undefined. Googling the error message, I found that I had to uncomment the line in php.ini file to load mysql extension. That solved it.
Jededitor, which external pages and php files you mean? For me, it is sure the elgg php files get picked up. When either settings.php or .htaccess is missing (I did the experiment with renaming temporarily either of them), I get the page that says correspondingly, what I am missing. From that I can conlcude with certainty three things:
It is just, that if both settings.php and .htaccess are in place, I get the empty white screen.
I narrowed down to the line of code in site initialization, where the death happens. It is in database.php, function establish_db_link($dblinkname = "readwrite"), the line:
// Connect to database
if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
It just drops there. No catchable exception is thrown, nothing comes to apache error.log, it just cuts here. The execution of the code don't reach beyond that line. That's it.
The $dblinkname has the value "readwrite", the variables that go as arguments to mysql_connect contain exact proper values as ought to be -- I tested with mysql command-line terminal -- those host, user and pass are valid credentials. If I copy that mysql_connect command with the same parameter values to a separate php-file with only this line, and run it from command-line through php, it works.
Any idea, how to debug it further?
Got it fixed. I discovered the .htaccess turned off the display_errors. Turning it back on helped me further -- the error said the function was undefined. Googling the error message, I found that I had to uncomment the line in php.ini file to load mysql extension. That solved it.
Jededitor, which external pages and php files you mean? For me, it is sure the elgg php files get picked up. When either settings.php or .htaccess is missing (I did the experiment with renaming temporarily either of them), I get the page that says correspondingly, what I am missing. From that I can conlcude with certainty three things:
It is just, that if both settings.php and .htaccess are in place, I get the empty white screen.
I narrowed down to the line of code in site initialization, where the death happens. It is in database.php, function establish_db_link($dblinkname = "readwrite"), the line:
// Connect to database
if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
It just drops there. No catchable exception is thrown, nothing comes to apache error.log, it just cuts here. The execution of the code don't reach beyond that line. That's it.
The $dblinkname has the value "readwrite", the variables that go as arguments to mysql_connect contain exact proper values as ought to be -- I tested with mysql command-line terminal -- those host, user and pass are valid credentials. If I copy that mysql_connect command with the same parameter values to a separate php-file with only this line, and run it from command-line through php, it works.
Any idea, how to debug it further?
Got it fixed. I discovered the .htaccess turned off the display_errors. Turning it back on helped me further -- the error said the function was undefined. Googling the error message, I found that I had to uncomment the line in php.ini file to load mysql extension. That solved it.
Jededitor, which external pages and php files you mean? For me, it is sure the elgg php files get picked up. When either settings.php or .htaccess is missing (I did the experiment with renaming temporarily either of them), I get the page that says correspondingly, what I am missing. From that I can conlcude with certainty three things:
It is just, that if both settings.php and .htaccess are in place, I get the empty white screen.
I narrowed down to the line of code in site initialization, where the death happens. It is in database.php, function establish_db_link($dblinkname = "readwrite"), the line:
// Connect to database
if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
It just drops there. No catchable exception is thrown, nothing comes to apache error.log, it just cuts here. The execution of the code don't reach beyond that line. That's it.
The $dblinkname has the value "readwrite", the variables that go as arguments to mysql_connect contain exact proper values as ought to be -- I tested with mysql command-line terminal -- those host, user and pass are valid credentials. If I copy that mysql_connect command with the same parameter values to a separate php-file with only this line, and run it from command-line through php, it works.
Any idea, how to debug it further?
Got it fixed. I discovered the .htaccess turned off the display_errors. Turning it back on helped me further -- the error said the function was undefined. Googling the error message, I found that I had to uncomment the line in php.ini file to load mysql extension. That solved it.
Jededitor, which external pages and php files you mean? For me, it is sure the elgg php files get picked up. When either settings.php or .htaccess is missing (I did the experiment with renaming temporarily either of them), I get the page that says correspondingly, what I am missing. From that I can conlcude with certainty three things:
It is just, that if both settings.php and .htaccess are in place, I get the empty white screen.
I narrowed down to the line of code in site initialization, where the death happens. It is in database.php, function establish_db_link($dblinkname = "readwrite"), the line:
// Connect to database
if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
It just drops there. No catchable exception is thrown, nothing comes to apache error.log, it just cuts here. The execution of the code don't reach beyond that line. That's it.
The $dblinkname has the value "readwrite", the variables that go as arguments to mysql_connect contain exact proper values as ought to be -- I tested with mysql command-line terminal -- those host, user and pass are valid credentials. If I copy that mysql_connect command with the same parameter values to a separate php-file with only this line, and run it from command-line through php, it works.
Any idea, how to debug it further?
Got it fixed. I discovered the .htaccess turned off the display_errors. Turning it back on helped me further -- the error said the function was undefined. Googling the error message, I found that I had to uncomment the line in php.ini file to load mysql extension. That solved it.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.