473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Fatal error: Class 'XSLTProcessor' not found

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 7847
Markus
6,050 Expert 4TB
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 Expert 4TB
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
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
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 Expert 4TB
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_loaded() 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
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...
3
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...
2
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 =...
1
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...
2
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...
4
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...
0
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 =...
2
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...
17
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.