How not to display PHP error and warnings

Hi, I'm setting up a site with dolphin 6.1.6, when visite the site , I met two problem.

 

Firstly, PHP error message always are displayed, something like,

 

"( ! ) Deprecated: Function set_magic_quotes_runtime() is deprecated in...”,
"( ! ) Deprecated: Assigning the return value of new by reference is deprecated in” etc.

 

I've set the following in PHP.ini to supress these messages, but  strange enough it dosen't work.

 

display_errors = Off
error_reporting = E_ERROR
display_startup_errors = Off
log_errors = Off
ignore_repeated_errors = On
ignore_repeated_source = On
track_errors = Off

Software installed include,

 

  apache_2.2.11-win32-x86-no_ssl,
  php-5.3.0-Win32-VC6-x86,
  mysql-5.1.30-win32

 

 

Secondly, when wisit pages that seem to need database access, like Members, Blogs, Groups, an error prompt will pop up:

   httpd.exe program failed, "0x0000000" memory can't be read

But static page won't show that, like Links page.

 

Is anyone run across these issues ?

 

Quote · 19 Sep 2009

In inc/header.inc.php   about line 163  find:

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

change to:

error_reporting(0);



Either that, or if you have an option on your server to have php files  processed by php 4.3 .... choose it.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 19 Sep 2009

 Thanks, this works for the error mesages !

 

Can anyone give some hint to the httpd.exe faile related to mysql ?

 

 

In inc/header.inc.php   about line 163  find:

 

 

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

 

 

change to:

 

error_reporting(0);



Either that, or if you have an option on your server to have php files  processed by php 4.3 .... choose it.

 

Quote · 19 Sep 2009

Change to php5.2 ok

Quote · 19 Sep 2009

Change to php5.2 ok

That was the best thing to do.  Most new php scripts require php 5, but not this one.  They wanted to make sure D7 could be used on the most obsolete server technology out there.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 19 Sep 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.