Social forum

Fatal error: Call to undefined function xslt_create()

 
Picture of Tim Williams
Re: Fatal error: Call to undefined function xslt_create()
by Tim Williams - Monday, 4 August 2008, 2:07 PM
 
Catching up after multiple absences ....

As far as i'm aware there are three different XSLT mechanisms available in PHP, depending on the version of PHP you have :

1) PHP 5 DomXML
2) PHP 4 Sablot
3) PHP 4 DomXML

All three are supported in the current AutoView code and there is a detection routine which will test for the presence of all three, in the order listed above and use the first one found. Have a peek at "function process_xsl" in the lib.php and you'll see how this works.

If the code fails to find a suitable XSLT library, you should simply get a message telling you this in the AutoView window. With the current code function_exists('xslt_create') is called before trying to execute xslt_create(), so you should only see the invalid function error message for this method if the function_exists method is giving the wrong result, which is probably indicative of a faulty PHP installation.

Some of the first AutoView releases only had support for PHP 4 sablot, so if you are using an early version of the mod you might get this error, but the other methods were added soon after the initial release. If this is the case, then I strongly reccommend an upgrade to the latest AutoView release.