23-08-2012, 12:18 AM
When i press on a tag then i will go to a url like http://linkert.nl/?option=tag&tag=restroom+bathroom
When i look on tags then i will get keeping the message :
Warning: shuffle() expects parameter 1 to be array, null given in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2040
Warning: array_slice() expects parameter 1 to be array, null given in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2041
Warning: Invalid argument supplied for foreach() in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2043
Please how to solf that ?
Its got somethin to do with this code.
shuffle($kelimeler_arr);
$kelimeler_arr = array_slice($kelimeler_arr, 0, 5);
foreach($kelimeler_arr as $deger) {
$kelimeler=$kelimeler."<br>".$deger;
}
I removed it out of the script and the error is gone
When i look on tags then i will get keeping the message :
Warning: shuffle() expects parameter 1 to be array, null given in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2040
Warning: array_slice() expects parameter 1 to be array, null given in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2041
Warning: Invalid argument supplied for foreach() in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2043
Please how to solf that ?
Its got somethin to do with this code.
shuffle($kelimeler_arr);
$kelimeler_arr = array_slice($kelimeler_arr, 0, 5);
foreach($kelimeler_arr as $deger) {
$kelimeler=$kelimeler."<br>".$deger;
}
I removed it out of the script and the error is gone