Page 1 of 1

White screen in phpmyadmin with display_errors = On

Posted: Thu Nov 13, 2014 4:10 pm
by RichBos
Hi, we are trying to debug our php code for an application and need access to phpmyadmin whilst doing so, however if we set display_errors = On in etc/php5/apache2/php.ini we get a white screen when going to the phpmyadmin screen, set it back to display_errors = Off and all is well again.

Any ideas how we can get round this?

Many thanks

Richard

Re: White screen in phpmyadmin with display_errors = On

Posted: Thu Nov 13, 2014 7:08 pm
by joem
You can add the following code to the top of your php pages,

Code: Select all

<?PHP
error_reporting(E_ALL);
ini_set('display_errors','On');
?>
You can also make a new file named .htaccess add these 2 lines

Code: Select all

php_value display_errors 1
php_value display_startup_errors 1


upload to the new .htaccess file to public_html. MAKE SURE WHEN YOU UPLOAD THE FILE IT READS .htaccess NOT .htaccess.txt

Re: White screen in phpmyadmin with display_errors = On

Posted: Thu Nov 13, 2014 8:15 pm
by RichBos
Hi, many thanks for the workaround, ideally we would like to have the generic option in php.ini so if possible it would still be useful to try and find out why setting display_errors = On leads to a white page for phpmyadamin (and it is phpmyadmin only).

Just for info, if it's relevant, this happens on an Ubuntu 14.04 installation, on our 12.04 installation it is fine.

Re: White screen in phpmyadmin with display_errors = On

Posted: Thu Nov 13, 2014 10:04 pm
by joem
Make a new php file and add this code

Code: Select all

<? phpinfo(); ?>
upload it and post the link or pm me the link also can you please post your error log too.