Xslt_create() Suddenly Fails

liunx

Guest
I wrote this code last year and it has been fine since then. Last time I run it was some two or three weeks ago. Today it failed. What has happened?<br /><br /><br />I got:<br /><br /><br /><br /><b>Fatal error</b>: Call to undefined function: xslt_create() in <b>/home/alexfun/public_html/bank/loadxxl.php</b> on line <b>48</b><br /><br /><br />the php is essentially this:<br /><br />header('Content-Type: text/xml; charset=UTF-8');<br />header('Cache-Control: private, max-age=60');<br />$hXML = xslt_create();<br />$output = xslt_process($hXML, $xml, 'private.xsl', <br /> NULL, NULL, array('id' => $_SESSION['accid']));<br />xslt_free($hXML);<br /><br /><br />I'm on Server 24.<!--content-->
Just an educated guess here: There was a <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=19130" target="_blank">problem</a> on server 24 a couple of days ago. Apache was rebuilt on the server (and I imagine PHP was as well). When PHP was compiled, it was not compiled with support for XSLT functions (configure options --enable-xslt and --with-xslt-sablot). You can see the options PHP was compiled with (and a bunch of other information as well) by browsing to <a href="http://server24.totalchoicehosting.com/phpInfo.php" target="_blank">server 24's phpinfo page</a>.<br /><br />You'll need to submit a ticket to the Help Desk and ask them if they can recompile PHP with support for XSLT functions added back in.<!--content-->
If you could open a support ticket with the URL that you are seeing that error, we can certainly look into it and see if PHP is missing something.<!--content-->
<!--QuoteBegin-TCH-David+Apr 29 2005, 03:27 PM--><div class='quotetop'>QUOTE(TCH-David @ Apr 29 2005, 03:27 PM)</div><div class='quotemain'><!--QuoteEBegin-->Just an educated guess here:  There was a <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=19130" target="_blank">problem</a> on server 24 a couple of days ago.  Apache was rebuilt on the server (and I imagine PHP was as well).  When PHP was compiled, it was not compiled with support for XSLT functions (configure options --enable-xslt and --with-xslt-sablot).  You can see the options PHP was compiled with (and a bunch of other information as well) by browsing to <a href="http://server24.totalchoicehosting.com/phpInfo.php" target="_blank">server 24's phpinfo page</a>.<br /><br />You'll need to submit a ticket to the Help Desk and ask them if they can recompile PHP with support for XSLT functions added back in.<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=127289"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br />You are right!<br />When I saw "--with-dom --with-dom-xslt --with-dom-exslt" I thought it is enabled, but comparing with an older phpinfo I saved, it used to have "'--enable-xslt' '--with-xslt-sablot' " as well, the two flags you mentioned. I'll go get the ticket.<!--content-->
 
Top