Unable to initialize XsltProcessor object
jimmyboy101 opened this issue · 6 comments
Error : odt2dw : er_class_xsltProcessor : Fatal error : Unable to initialize XsltProcessor object
Hi everyone,
Receiving the following error, when trying to upload ODT files, I have dw installed on a Ubuntu server running PHP5
I have installed xmlto and php5-xsl
is there something i am missing?
Hi,
The action.php script stops when it checks existence of the XsltProcessor class.
I use ubuntu too, version 11.04.
with installed packages :
php5
php5-xsl
libapache2-mod-php5
apache2
(some other package of course but I think they're not needed here)
xmlto is not needed.
To solve your issue,
The xsltProcessor control is the first control on classes. Perhaps there's something wrong with the class_exists function on your system. Could you swap in file action.php the line 169 and 170 :
<?
...
if ( ! class_exists( XSLTProcessor ) ) return $this->_msg('er_class_xsltProcessor');
if ( ! class_exists( ZipArchive ) ) return $this->_msg('er_class_zipArchive');
...
?>
To check first the zipArchive class. If you've got the same message, the class_exists function works fine.
If it does, there's some trouble with your xslt processor.
On your php config directory, you must have a file called /etc/php5/conf.d/xsl.ini which contain following lines :
; configuration for php XSL module
extension=xsl.so
Which version of ubuntu server do you use ? I will try it.
Hi Garlik-gag, thanks for the reply,
I am running 12.04 i will have a look into the notes provided today/tomorrow and let you know how it goes
Hi,
I'm back after holidays.
Are you still having problems?
Hi Greg,
I haven’t actually tested it yet, busy couple of weeks ill give it a shot today though
Same problem here.
Pakete:
- Php5
- Php5-xsl
- libapache2-mod-php5
- apache shoud be 2, but aptitude won't show me the version
- dokuwiki Release 2011-05-25c "Rincewind"
- Swapped the two lines -> same error
- xsl.ini contains
- Ubuntu Version 10.04.4
Other sugestions?
Hi @Gforce3FG,
I read your post weeks ago, and want to test it before, but I can't yet.
Currently, I'm lacking time.
Before the end of novembre, I will try and install dokuwiki & odt2dw on a new installation of ubuntu 12 and post a feedback what needed to make it work properly.