PDA

View Full Version : Strange Error on Forum Homepage


zert
03-19-2014, 06:25 PM
This error is recently appearing, we haven't made any changes so not sure what has triggered it.

Warning: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array in ..../rss.php on line 13

Warning: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array in ..../rss.php on line 13

Warning: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array in ..../rss.php on line 13

Warning: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array in ..../rss.php on line 13

The error shows 4 times in a row and it only shows up on the homepage.

Lynne
03-19-2014, 06:38 PM
What version of the site? If 4.2.2, notices and warnings are no longer suppressed by default like in previous versions of the software. This means that on some servers, you may see warnings that you never saw before. In order to stop them from showing, please add the following line to your config.php file under the <?php line:


define('SKIP_ALL_ERRORS', true);

zert
03-19-2014, 06:58 PM
Resolved. Thank you so much Lynne!