473,804 Members | 3,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fatal error: Class 'XSLTProcessor' not found

3 New Member
dear friends,

i am using visual studio php from jcx software (version 5.2.5) and apache from apache friends.com (version 1.6.6a),

now i am trying to transform a xml document to a xsl file, i create a xsltporcessor class for processing, and when i try to run, i will get a fatal error

"Fatal error: Class 'XSLTProcessor' not found", i also checked my phpinfo(), xsl is enabled on,

XSL --------- enabled
libxslt Version --------- 1.1.17
libxslt compiled against libxml Version --------- 2.6.26
EXSLT --------- enabled
libexslt Version ------- 0.8.13

these are the information i found in phpinfo();

but it not run correctly, i searched a lot for more than two days, and changed many dlls and insert many dlls, nothing happend,

if any know, how to included the xsltprocessor class, kindly reply me, i need it urgently

waiting for ur reply

with thanks and regards,
ramanathan.ct
Apr 3 '08 #1
5 7889
Markus
6,050 Recognized Expert Expert
Hey there!
Unfortunately we are not able to help you if we can't see the code you're using.
Is the class you are using one you have created yourself?

Please post ALL RELEVANT code - and post it in the correct code tags.

Regards.
Apr 3 '08 #2
Atli
5,058 Recognized Expert Expert
Hi. Welcome!

Is the class you are using created by a 3rd party? That is; they are not a part of the original PHP installation? If so, you may simply need to include the files in which they are defined.

You could also check out the XSLT Functions at php.net.

If none of this is helping, please post your code so we can try to help debug it.
Apr 3 '08 #3
phpbilder
3 New Member
Hi. Welcome!

Is the class you are using created by a 3rd party? That is; they are not a part of the original PHP installation? If so, you may simply need to include the files in which they are defined.

You could also check out the XSLT Functions at php.net.

If none of this is helping, please post your code so we can try to help debug it.

hello thanks for ur quick reply, below is my code
Expand|Select|Wrap|Line Numbers
  1. $xslt = new XSLTProcessor(); // the error comes in that line
  2.  
  3. $xml = new domDocument();
  4. $xml -> load('description.xml');
  5.  
  6.  
  7. $xsl = new domDocument();
  8. $xsl -> load('aod.xsl');
  9.  
  10.  
  11. $xslt -> importStylesheet($xsl);
  12.  
  13. echo $xslt -> transformToXml($xml);
  14.  
i also searched a lot but nothing is helpful for me, please help if u know

thanks and regards
ram
Apr 4 '08 #4
phpbilder
3 New Member
Hey there!
Unfortunately we are not able to help you if we can't see the code you're using.
Is the class you are using one you have created yourself?

Please post ALL RELEVANT code - and post it in the correct code tags.

Regards.

hello thanks for ur quick reply,

the xsltprocessor() class is not created by me, below is my code

Expand|Select|Wrap|Line Numbers
  1. $xslt = new XSLTProcessor(); // the error comes in that line
  2.  
  3. $xml = new domDocument();
  4. $xml -> load('description.xml');
  5.  
  6.  
  7. $xsl = new domDocument();
  8. $xsl -> load('aod.xsl');
  9.  
  10.  
  11. $xslt -> importStylesheet($xsl);
  12.  
  13. echo $xslt -> transformToXml($xml);
  14.  

i also searched a lot but nothing is helpful for me, please help if u know

thanks and regards
ram
Apr 4 '08 #5
Atli
5,058 Recognized Expert Expert
This isn't making much sense.

If your phpinfo() is telling you that XLS is in fact enabled, the XSLTProcessor class should be loaded...

Was the phpinfo() function called from a file in the same directory as the file that is failing to load the XLS classes?

It is possible that PHP is loading different php.ini configurations for each directory, so you should make sure that the configuration for that directory is in fact loading the XSL library.

Which version of PHP are you using?
Is it possible that the XSL library you are loading is an outdated version?
How exactly did you install the library?

Try using the extension_loade d() function to see if the library is in fact loaded...
Like, adding this to the top of your code:
Expand|Select|Wrap|Line Numbers
  1. if(extension_loaded("xsl")) {
  2.   if(class_exists("XSLTProcessor")) {
  3.     trigger_error("XSL loaded and ready", E_USER_NOTICE);
  4.   }
  5.   else {
  6.     trigger_error("XSL extension loaded but class could not be found", E_USER_ERROR);
  7.   }
  8. }
  9. else {
  10.   trigger_error("XSL extension has not been loaded", E_USER_ERROR);
  11. }
  12.  
That should give you a clearer picture of what is actually going on.
Apr 5 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
16540
by: Daniel Hansen | last post by:
I am getting a "Fatal error: Call to undefined function: imagecreatefromjpeg() in..." error in one of my scripts, and after doing a bit of searching on the 'net I found various messages relating to a failure to have the GD library installed. However, my phpinfo() reports (in the Apache GD section): GD Support enabled GD Version bundled (2.0 compatible) GIF Read Support enabled PNG Support enabled
3
2449
by: PeterF | last post by:
Hello, what is wrong here? the purpose is to create an array of objects and then interate over it, calling some method from all of them. I get just the following at the marked line ("// FATAL ERROR"): Fatal error: Call to a member function on a non-object See the code:
2
4692
by: Phil Powell | last post by:
Actually the client is saying it sometimes happens and sometimes doesn't happen, and when they refresh their screen it clears itself (I assume the memory clears). Here is line 1135: $result = mysql_query($this->query, $this->dbcnx) or die(@include("$DOCUMENT_ROOT${devpath}errors/query_error.php")); It is found here in this class method:
1
4005
by: Dave Smithz | last post by:
Hi, My PHP application for a client uses the publicly available "PHPMailer - PHP email class" which is very good. However, my client recently complained about the following error when sending out over 4000 emails. (Note that each email is customised so needs to be sent individually - not using Bcc). The application reported to have sent the 4000 emails successfully (it sends each one as part of a loop and then when completed gives a...
2
2953
by: Itjalve | last post by:
This gives me a fatal error. I'm using .NET VC7.1 and made a win32 consol app, I have no problems with VC6. Debug build. I have removed nearly all my code this is whats left. From the beginning the template was defined in a .h file, but that has no effect, same error. I have seen when searching for fatal error that there are some problems with templates and optimization, but nothing as simple like this. I'm i doing something wrong?
4
5651
by: ARF | last post by:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm getting fatal compiler errors. I start with a default C++/CLR class library project and modify it by adding the following references: acdbmgd.dll acmgd.dll the entire source for the default library header file is:
0
1886
by: BG Mahesh | last post by:
hi I have installed Tidy on Fedore Core 4.0 using RPM. I have a very simple script that uses tidy, ------------tidy.php------------------ <html>a html document</html> <? $html = ob_get_clean(); // Specify configuration
2
2055
by: leisablu | last post by:
Hello, Im not good in scrpting, its like readind jibberish...lol...My problem is im trying to convert my phpbb 2.0 to phpbb 3.0 and im getting 1 500 internal error and to check my PHP error log. whrn i do im getting this reading: PHP Fatal error: Class 'acm' not found in /hermes/bosweb/web272/b2724/ipw.bashment/public_html/phpBB3/includes/cache.php on line 23 PHP Warning: include() : Failed opening './../includes/acm/acm_file.php' for...
17
11306
by: pranavb85 | last post by:
Hi, I have searched around for the solution to this problem, but I am trying to call a perl script from php, and get a fatal error:Class perl not found I am using php 5.1.6 and apache 2.0 , php and apache is configured fine, as i am able to run <phpinfo()?> with out any problem. I have added php_perl.dll into my php.ini extensions ... and copied it to php/ext folder. The scripts are very basic (from the...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9572
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10303
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10070
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.