Page 1 of 1
Fatal error, LoggerPropertySetter.php
Posted: Thu Nov 03, 2005 2:13 pm
by dont
Fatal error: Call to undefined function: is_a() in ***/httpdocs/new/lib/log4php/config/LoggerPropertySetter.php on line 108
someone a solution for this problem, it's when I want to make a new clean install...
Re: Fatal error, LoggerPropertySetter.php
Posted: Fri Nov 04, 2005 6:18 am
by Ted
What version of php are you running?
Re: Fatal error, LoggerPropertySetter.php
Posted: Sat Nov 05, 2005 12:37 pm
by dont
Re: Fatal error, LoggerPropertySetter.php
Posted: Sun Nov 06, 2005 1:58 am
by Ted
Yeah, I think cmsms has slowly had it's minimum version put up to 4.2.0 now....
Between log4php and smarty, I don't have much choice.
Re: Fatal error, LoggerPropertySetter.php
Posted: Sat Nov 26, 2005 10:36 am
by M. Abdul Mannan
I had the same problem trying to run on an old PHP version. In fact is_a()
is not supported until PHP 4.2.0
If you cannot upgrade,here's a snippert of code from the official PHP
documentation that will emulate is_a() :
if (!function_exists('is_a')) {
function is_a( $object, $className ) {
return ((strtolower($className) == get_class($object))
or (is_subclass_of($object, $className)));
}
}
(I have NOT tested it)
M. Abdul Mannan.
abdul.mannan@hotmail.com
http://mannan.zabvision.edu.pk