Support > Installation
Fatal error
tib0:
Fatal error: Call to undefined function: array_change_key_case() in /home/httpd/vhosts/MYSite/httpdocs/cms/includes/Core/security.php on line 24
Can somebody help me out here please
At my home server everything works greath but on my site host i get this error
Greets tib0
datahell:
Έχεις παλιά έκδοση της php (μικρότερη της 4.2). To Elxis απαιτεί ίση ή μεγαλύτερη της 4.3. Κάνε αναβάθμιση στην php ή πρόσθεσε την function στο php4.2 compatibility αρχείο.
Haic:
Plz datahell speak to us with english :)
datahell:
Oups, sorry! I did nt realized that I answered in Greek! I said that he seems to have an outdated version of PHP (less than 4.2). Elxis requires you have installed php 4.3 or greater. There are 2 options to solve this issue: a. update your php installation, b. add the missing function (array_change_key_case) to the php4.2 compatibility file (requires that you find an equivelant function and place it in that file).
datahell:
Ok I searched the internet and found an equivalent function to array_change_key_case. Place the code bellow in php4.2 compatibility file or somewhere above the line that produces that error in the includes/Core/security.php file:
--- Code: (php) ---if (!function_exists('array_change_key_case')) {
define("CASE_UPPER",1);
define("CASE_LOWER",0);
function array_change_key_case($array,$case=CASE_LOWER) {
if ($case=CASE_LOWER) { $cmd=strtolower; }
elseif ($case=CASE_UPPER) { $cmd=strtoupper; }
foreach($array as $key=>$value) {
$output[$cmd($key)]=$value;
}
return $output;
}
}
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version