Jump to content

Recommended Posts

I have downloaded and installed the Orca 1.1 AJAX forum script but it had a few errors, I have fixed a couple but am stuck at this one...

 

Fatal error: Class 'XsltProcessor' not found in /usr/home/mafiaworld/domains/mafia-world.net/public_html/hooligan/forum/classes/BxXslTransform.php on line 91

 

<?php
		if (((int)phpversion()) >= 5)		
		{
			$xml = new DOMDocument();
			$xml->loadXML($this->_xml);

			$xsl = new DomDocument();
			$xsl->load($this->_xsl);

			$proc = new XsltProcessor(); /// line 91
			$proc->importStyleSheet($xsl);
			$res = $proc->transformToXML($xml);
		}
?>

 

I have echoed the PHP version as an integer to check and it came up as 5, any help apperciated... =P

Link to comment
https://forums.phpfreaks.com/topic/121197-solved-xsltprocessor-class/
Share on other sites

NVM lol

 

User Rating: 952  |  Rate This User Report this Post to a Moderator | Link

 

 

 

Sander  Moderator - Web Development  Member since: 4/19/2002  From: Den Bosch, Netherlands

 

 

Posted - 10/31/2005 1:36:42 AM

I think I got it.

 

libxlst needs to be installed on your server (ask your admin) and it needs to be enabled in the PHP configuration. Create a file with only the phpinfo() command and see if the --with-xsl configuration directive is set. If not, then the XLST processor is not available. Bug your admin to enable it.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.