Jump to content

Recommended Posts

Posted

Hi, i installed php-nuke on my hosting. But php-nuke use deprecated functions on current php (as eregi())... and it can be resolved if put on php.ini the error_reporting = E_ALL^E_NOTICE^E_DEPRECATED

 

 

It's possible make this change please?

 

 

Sorry my english!

 

Best regards

Posted

You could try to set it in the .htaccess file:

php_value error_reporting 22519

though when I try to test it on Stevie I got error 500, so that would mean that it's impossible to change it through .htaccess.

 

Other way - which works fine for me in my test on Stevie - is changing the error_reporting value directly in the PHP script:

ini_set("error_reporting", E_ALL & ~E_NOTICE & ~E_DEPRECATED);

I don't know where exactly in PHP-Nuke files you would have to put this, but I can imagine that in the configuration file - which is most likely included every time - would be most easy.

 

 

However I can see on my Stevie's account that default error_reporting setting is now exactly 22519 so deprecation alerts should be ignored. If not, then most likely PHP-Nuke itself inside of its code is changing this value.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...