installed jcms 6.2.0 with no problem, created forums, but cant see the posts, not even as sv. in forums folder error log shows the next:
PHP Warning: array_merge(): Argument #2 is not an array in /home/changed/public_html/incfiles/classes/functions.php on line 605
[24-Dec-2015 22:44:27 UTC] PHP Warning: strtr(): The second argument is not an array in /home/changed/public_html/incfiles/classes/functions.php on line 605
[24-Dec-2015 22:44:27 UTC] PHP Warning: array_merge(): Argument #2 is not an array in /home/changed/public_html/incfiles/classes/functions.php on line 610
[24-Dec-2015 22:44:27 UTC] PHP Warning: strtr(): The second argument is not an array in /home/changed/public_html/incfiles/classes/functions.php on line 610
[24-Dec-2015 22:45:32 UTC] PHP Warning: array_merge(): Argument #2 is not an array in /home/changed/public_html/incfiles/classes/functions.php on line 605
[24-Dec-2015 22:45:32 UTC] PHP Warning: strtr(): The second argument is not an array in /home/changed/public_html/incfiles/classes/functions.php on line 605
[24-Dec-2015 22:45:32 UTC] PHP Warning: array_merge(): Argument #2 is not an array in /home/changed/public_html/incfiles/classes/functions.php on line 610
line 605 show this:
return strtr($str, ($adm ? array_merge($smileys_cache['usr'], $smileys_cache['adm']) : $smileys_cache['usr']));
line 610 show this:
return strtr($str, ($adm ? array_merge($smileys_cache['usr'], $smileys_cache['adm']) : $smileys_cache['usr']));
this is what i see as sv, only added file.
also same problem when writing mail...
PHP Warning: array_merge(): Argument #2 is not an array in /home/changed/public_html/incfiles/classes/functions.php on line 610
[24-Dec-2015 23:34:59 UTC] PHP Warning: strtr(): The second argument is not an array in /home/changed/public_html/incfiles/classes
this is the whole code on functions:
public static function smileys($str, $adm = FALSE)
{
static $smileys_cache = array();
if (empty($smileys_cache)) {
$file = ROOTPATH . 'files/cache/smileys.dat';
if (file_exists($file) && ($smileys = file_get_contents($file)) !== FALSE) {
$smileys_cache = unserialize($smileys);
return strtr($str, ($adm ? array_merge($smileys_cache['usr'], $smileys_cache['adm']) : $smileys_cache['usr']));
} else {
return $str;
}
} else {
return strtr($str, ($adm ? array_merge($smileys_cache['usr'], $smileys_cache['adm']) : $smileys_cache['usr']));
}
}