1
fatman
when display_error is turned off in php.ini
  • 2004/4/7 4:35

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I couldn't find any thread with info on this. I've run into a situation where the server I need to install a site has php.ini configured with display_error turned off. I don't have access to the php.ini file, and I can't use .htaccess either.

When I run.

ini_set('display_errors', true);
phpinfo();

My Local Value for display_errors is On, and the Master Value remains off.

However I still can't get XOOPS to display php errors.

Ultimately I'm hoping to get .htaccess permission but failing that, does anyone know why XOOPS still doesn't report errors when it is dynamiclly activated for the local site using the ini_set function?


2
Dave_L
Re: when display_error is turned off in php.ini
  • 2004/4/7 8:27

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I did some experimenting (PHP 4.3.2, Apache 2.0.46, Win2K) and found that if display_errors is off in php.ini, then calling ini_set('display_errors', '1') causes runtime errors to be displayed, but not parse errors.

Another option is to try changing the PHP error log file, if you don't have access to the existing one:

ini_set('log_errors', '1');
ini_set('error_log', '/your/path/php_errors.log');

If that works, at least you'll be able to read the errors in the log file.

Login

Who's Online

153 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits