MyBB Community Forums

Full Version: SQL Warning in Functions.php on line 634
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I am new to mybb and I am currently using a free web host, so that may be my problem. Instead of reopening my website and paying however much a month for no reason doesn't make much sense, so a free webhost to get a design and begin the forum...

Anyways I just installed mybb, everything went fine, until I logged in, then it gave me this error.

I haven't touched a thing, added forums, or anything. Just logged in and I recieved this error.

I have a screenshot.

Also I have translated that message, so maybe I should post it here.

Warning: The function php_uname(), which your Script uses, was deactivated for safety reasons and cannot not be used. in /usr/export/www/hosting/omnim2k/forum/inc/functions.php on LINE 634

Thanks,
Kent
That isn't an SQL error, it is due to MyBB 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.
Ty so much. No I don't have that error anymore.

I appreciate it.

Kent