Sunday 31 March 2013

SQL Warning in Functions.php on line .....The function php_uname()

You get the following error when trying to access your site which uses database :

Warning: The function php_uname(), which your Script uses, was deactivated for safety reasons and cannot not be used.

That isn't an SQL error, it is due to your application is trying to determine the server load and is using a function which your web host must have disabled.

On that line, you should find:

elseif(substr(php_uname()...

Change it to

elseif(substr(@php_uname()..

And you shouldn't receive that message anymore.

No comments:

Post a Comment