In the recent days, one of my programmers had to deploy an small application that reads an xslt template and parses it with the content of an xml feed to generate some sporting event results. We decided to use PHP (as usual), and while trying to generate the content we got the error: Trying to clone an uncloneable object of class %s. Read more to find the fix
Ill be very clear, im not sure what the problem is exactly, by looking at the fix we found, probably there is some kind of backward compatibility between the xml or xsl extension and some old zend libraries, but overally the fix is simple. Edit the php.ini file Usually on an rpm installation its on /etc/php.ini or on a compilation from source on /usr/local/lib/php.ini basically go to the end of the file and add the following line: zend.ze1_compatibility_mode=Off Voila! , restart apache and you are done. Ill be writing a small article or blog later on on how to compile php with the xml and xslt support. Cheers. Felipe |