PDA

View Full Version : Warning error


dha12oks
05-17-2014, 11:16 PM
Hey, well for some reason I am getting a warning message;


Warning: mktime() expects parameter 4 to be long, string given in ..../includes/class_userprofile.php on line 260


now, seeing as it's just a warning, is there any way of hiding it?

Thanks in advance.

tbworld
05-17-2014, 11:38 PM
What version of vb4?
What version of PHP?

This could also be just an invalid data entry, which was not properly validated. Does it happen after anyone is envoking that page?

PHP 5.1.15 and earlier had this bug, but that is a pretty early version of PHP at this point.

It is not the kind of error I would want suppressed.

ForceHSS
05-17-2014, 11:39 PM
add the following line to the top of your /includes/config.php file under the <?php line:
Code:
define('SKIP_ALL_ERRORS', true);

I would not suppress it but will still give you the above code as a temp if needed but you would be best to fix the problem not hide it as the above code does just that

dha12oks
05-18-2014, 09:41 AM
What version of vb4?
What version of PHP?

This could also be just an invalid data entry, which was not properly validated. Does it happen after anyone is envoking that page?

PHP 5.1.15 and earlier had this bug, but that is a pretty early version of PHP at this point.

It is not the kind of error I would want suppressed.

Apologises for late response; Well it's only a warning, not an error which is stopping the forums from functioning, it's the latest version of vB4.