1
orwah
error: Call to undefined function: is_a() in /kernel/object.php on line 986
  • 2005/8/26 10:08

  • orwah

  • Just popping in

  • Posts: 17

  • Since: 2005/3/4 9


in my PC every think is OK
when i upload to the server
this message appears:

Fatal error: Call to undefined function: is_a() in /home/httpd/vhosts/orwah.net/httpdocs/kernel/object.php on line 986

every time i tried to change some thing in administrating menu

PHP Version on the server is 4.1.2 ?

help

2
Antoine
Re: error: Call to undefined function: is_a() in /kernel/object.php on line 986
  • 2005/8/26 10:18

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


is_a is only suported from PHP 4.2 and up. Surprised this is actually used in code due to compatibility issues. If you are familiar with PHP you can try and rework the line to somtething to the extent of:
if(strtolower(get_class($<the_class_instance>)) != 'class_name_in_lowercase')


Otherwise you could try to upgrade to PHP >= 4.2

3
Mithrandir
Re: error: Call to undefined function: is_a() in /kernel/object.php on line 986

Quote:
Surprised this is actually used in code due to compatibility issues

Why? PHP 4.2.0 is more than three years old time to move on.
I have updated the system requirements for XOOPS 2.2.x to say minimum 4.2.0, but this really should not be a surprise to anyone.

However, just to beat the rush: XOOPS 4 will be PHP 5 ONLY
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

4
Antoine
Re: error: Call to undefined function: is_a() in /kernel/object.php on line 986
  • 2005/8/26 11:23

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Oh yes, wholeheartedly agree that it is time to leave compatibility with some older PHP versions. But naturally it should be noted in the installation requirements. It's just that I am so used to seeing the get_class type of syntax instead of is_a in the 2.0 kernel and core modules that I half expected that to have carried over to 2.2, which I haven't had much time to take an in depth look at unfortunately.
What other 4.2+ only functions are used in 2.2?

Login

Who's Online

337 user(s) are online (301 user(s) are browsing Support Forums)


Members: 0


Guests: 337


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits