Solved

Class 'XSLTProcessor' not found (PHP 5)

Posted on 2007-03-28
6
4,084 Views
Last Modified: 2013-12-13
The solutions to the earlier question regarding this topic didn't help me, unfortunately.  Either they don't apply to my situation or I'm implementing them incorrectly . . . but, anyway, here are the pertinent facts:
We're running PHP  5.2.1 and Apache HTTP Server 2.2.4 on a Windows 2000 machine.  Our application was originally written in PHP 4.2.3.  It includes a lot of XML-related code and XSL transformations.  I have adapted the XML-related code to the new version of PHP successfully but the XSLT stuff doesn't want to work.  We keep getting a "Class 'XSLTProcessor' not found" error when we try to create a Word document out of our XML.
 
- I've checked that the extension .DLLs are in the folder specified in the extension_dir line of the php.ini file.
- I put the iconv.dll, expat.dll, and sablot.dll files in the same folder.  I'm not sure if they're actually supposed to be in the same place but that's where I put them.  I threw in libxslt.dll for good measure.
- I made sure the folder containing the extensions was inside the folder listed in the PATH environment variable.  Next, I even added the folder explicitly to the PATH.
- I've restarted both Windows and Apache.

I keep getting the same error . . . PHP just can't find what it needs and I don't know how to tell it where to look.  Any suggestions anyone can provide here would be much appreciated.  Thanks.
0
Comment
Question by:Xon70
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 

Author Comment

by:Xon70
ID: 18809939
Oh, yeah, I also uncommented the extension=php_xsl.dll line.  Tried that already.
0
 
LVL 48

Expert Comment

by:hernst42
ID: 18809988
Do you get any errors in the error-log of the webserver when you stop and start the webserver? Does a phpinfo-page show you the correct Path to the php.ini you edited?
0
 

Author Comment

by:Xon70
ID: 18810266
I'll have to check the phpinfo page, though I only edited the php.ini file without moving it from its original location.
I'm getting this error from the log:
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_xsl.dll' - The specified procedure could not be found.
 in Unknown on line 0
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Xon70
ID: 18810312
I just checked phpinfo() and the Configuration File Path value is as expected . . . I'm unfamiliar with the Configure Command listed a few lines above, though.  (Well, I'm unfamiliar with PHP generally, to be honest!)  Is there anything that needs to be added here, I wonder?
0
 

Author Comment

by:Xon70
ID: 18810325
Forgot to include what the Configure Command says right now:  
cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"

0
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 18814067
As you get "Unable to load dynamic library 'C:\Program Files\PHP\ext\php_xsl.dll" not all lib can be loaded correctly. So either a dll you have is not compatible (to old or to new) to work with that extension or a lib can't be found.
To track such errors down on windows I use http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx and what for which files in which places is searched and why such fles can't be loaded.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
check mysql insert 12 39
Codeigniter Query Help Returning JSON 4 46
Inserting results of While loop to sql server 5 34
PHP mail() function not working... 8 32
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question