// Class Control
if ( ! class_exists( XSLTProcessor ) ) return $this->_msg('er_class_xsltProcessor');
if ( ! class_exists( ZipArchive ) ) return $this->_msg('er_class_zipArchive');
if ( ! class_exists( DOMDocument ) ) return $this->_msg('er_class_domDocument');
// Create instance of needed class
$this->XSLT = new XSLTProcessor;
$this->ZIP = new ZipArchive;
$this->XSL = new DOMDocument;
$this->XML = new DOMDocument;
and my tests - small edition - adding quotes to XSLTProcessor, ZipArchive and DOMDocument in class_exists statement fixes the problem.
Can you add this fix? Without it, I have to manually patch our file.
Hello @Stikus ,
I'm not working in this plugin (or even using Dokuwiki) anymore, but I don't mind making changes if they are useful to anyone. I hope the problem is fixed now.
Hello @qky666 , I understand that plugin development have stopped years ago, but it was working fine for me.
But after update to php 8+ I got this error:
According to code https://github.com/qky666/dokuwiki-plugin-odtplus2dw/blob/master/action.php#L214-L216:
and my tests - small edition - adding quotes to
XSLTProcessor
,ZipArchive
andDOMDocument
inclass_exists
statement fixes the problem.Can you add this fix? Without it, I have to manually patch our file.