Joomla 1.0 i PHP 5.3
Napisao Živorad Antonijević petak, 16 april 2010 11:47
Prebacili smo sajt sa Joomla 1.x verzijom na hosting gde je PHP 5.3. Nastaju mnogi problemi.
Evo resenja za bar neka od njih.
I problem: content je nestao. Problem je do pozivanja funkcije call_user_func_array u fajlu includes/Cache/Lite/Function.php
Rešenje:
U redu 74 nakon
$arguments = func_get_args();
dodati sledece redove
$numargs = func_num_args();
for($i=1; $i < $numargs; $i++){
$arguments[$i] = &$arguments[$i];
}
II problem XML greske se pojavljuju u log file-u i nestaju moduli. Ne samo moduli, nestaje sav content posle njih jer dolazi do PHP greske.
Rešenje:
U folderu includes/domit/ menjati redove u kojima se poziva call_user_func_array na sledeci nacin
call_user_func(xxx, $this,yyy) menjati u call_user_func(xxx, &$this, yyy)
(Pre $this dodati &, tj referencu na parametar $this)
Ja sam konkretno to promenio u 2 fajla xml_saxy_shared.php i xml_saxy_parser.php




