Link to home
Start Free TrialLog in
Avatar of Xon70
Xon70

asked on

Class 'XSLTProcessor' not found (PHP 5)

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.
Avatar of Xon70
Xon70

ASKER

Oh, yeah, I also uncommented the extension=php_xsl.dll line.  Tried that already.
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?
Avatar of Xon70

ASKER

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
Avatar of Xon70

ASKER

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?
Avatar of Xon70

ASKER

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

ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial