Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to initialize XsltProcessor object #8

Closed
jimmyboy101 opened this issue Jul 30, 2012 · 6 comments
Closed

Unable to initialize XsltProcessor object #8

jimmyboy101 opened this issue Jul 30, 2012 · 6 comments
Labels

Comments

@jimmyboy101
Copy link

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?

@garlik-gag
Copy link
Owner

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.

@jimmyboy101
Copy link
Author

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

@garlik-gag
Copy link
Owner

Hi,

I'm back after holidays.

Are you still having problems?

@jimmyboy101
Copy link
Author

Hi Greg,

I haven’t actually tested it yet, busy couple of weeks ill give it a shot today though

@Gforce3FG
Copy link

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"
  1. Swapped the two lines -> same error
  2. xsl.ini contains
  3. Ubuntu Version 10.04.4

Other sugestions?

@garlik-gag
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants