Error with Zend

Permalink 1 user found helpful
Hi everyone

I have been expecting and waiting for the new Internationalization extension for some while now.

So I just downloaded it and ran the install at my localhost (xampp)

However when I try to use it from my backend of my 5.4.2 version C5, it comes up with this error:
Fatal error: Cannot redeclare class Zend_Locale in C:\xampp\php\PEAR\Zend\Locale.php on line 31


And if I open the file "Locale.php" and find line 31, all it has is this " { "

Does anyone know how to solve this problem ?

//Carsten

sabumnimdk
 
Mac65 replied on at Permalink Best Answer Reply
Mac65
Hi Carsten,

the solution is pretty easy (and mentioned somewhere else here).
You need to modify the order of the loaded libraries.
Open:
...\concrete5.4.2\concrete\config\base.php

Search for the line
ini_set('include_path', get_include_path() . PATH_SEPARATOR . DIR_LIBRARIES_3RDPARTY . PATH_SEPARATOR . DIR_LIBRARIES_3RDPARTY_CORE);


and change it to this
ini_set('include_path', DIR_LIBRARIES_3RDPARTY . PATH_SEPARATOR . DIR_LIBRARIES_3RDPARTY_CORE . PATH_SEPARATOR . get_include_path());


And everything will work fine now.

Marc
sabumnimdk replied on at Permalink Reply
sabumnimdk
Hi Marc

It would seem that you are so right :0)

It appears to work like a charm, so thx a lot for this Marc.

//Carsten
zanedev replied on at Permalink Reply
zanedev
Sorry to revive this old thread but I was having the same issue with the latest C5 on a server and it already had this ini_set fix in it.

Turns out I had to add the c5 "/concrete/libraries/3rdparty" directory to my php include path. This server must be more locked down or something to require this.

Just in case someone else runs into this or me again after an upgrade and I forgot what I did :)