Elxis CMS Forum

Support => Installation => Topic started by: tib0 on November 05, 2006, 15:05:09

Title: Fatal error
Post by: tib0 on November 05, 2006, 15:05:09
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
Title: Re: Fatal error
Post by: datahell on November 05, 2006, 18:38:02
Έχεις παλιά έκδοση της php (μικρότερη της 4.2). To Elxis απαιτεί ίση ή μεγαλύτερη της 4.3. Κάνε αναβάθμιση στην php ή πρόσθεσε την function στο php4.2 compatibility αρχείο.
Title: Re: Fatal error
Post by: Haic on November 05, 2006, 22:24:37
Plz datahell speak to us with english :)
Title: Re: Fatal error
Post by: datahell on November 06, 2006, 07:40:48
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).
Title: Re: Fatal error
Post by: datahell on November 06, 2006, 07:53:38
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) [Select]
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;
    }

}
Title: Re: Fatal error
Post by: tib0 on November 06, 2006, 11:17:19
I just made a call with my webhost and ask if they will be able to uprade php version and the  mysql  and they did that so im uploading elxis now to my account and hope that the install will work now .

ps is there away to put nuke database in to elxis
nuke7.6
phpbb
greets tib0