Reflection Object error?

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
TurboPT
Member of TestLink Community
Posts: 343
Joined: Sun Dec 10, 2006 4:51 am

Reflection Object error?

Post by TurboPT »

Unsure what is causing this error:

Fatal error: Trying to clone an uncloneable object of class ReflectionObject in /var/www/html/testlink/lib/functions/object.class.php on line 54

Thanks for any insight.
TurboPT
Member of TestLink Community
Posts: 343
Joined: Sun Dec 10, 2006 4:51 am

Re: Reflection Object error?

Post by TurboPT »

TurboPT wrote: Fatal error: Trying to clone an uncloneable object of class ReflectionObject in /var/www/html/testlink/lib/functions/object.class.php on line 54
...a little more info. This happens immediately after clicking 'proceed' on the license screen.
TurboPT
Member of TestLink Community
Posts: 343
Joined: Sun Dec 10, 2006 4:51 am

Figured out the error...

Post by TurboPT »

After trudging through php.net, for the ReflectionClass, an anonymous user's comment [similar in nature, but not exactly the same] had this:
If you are getting

Fatal error: Trying to clone an uncloneable object of class ReflectionClass in …

Ensure that this is set.
zend.ze1_compatibility_mode=Off in php.ini
Thanks to anil who posted this on www.tecpages.com
...and sure enough, that setting WAS enabled in my php.ini file:
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
;zend.ze1_compatibility_mode = On // causes 'Reflection' class problems.
zend.ze1_compatibility_mode = Off

Hope this helps others that might encounter the same problem.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

thanks for your help!
Post Reply