hallowelt / migrate-confluence

Tool to migrate content from Confluence export files into a MediaWiki compatible import source
GNU General Public License v3.0
35 stars 8 forks source link

migrate-confluence help #85

Open erhan-k opened 1 year ago

erhan-k commented 1 year ago

Hi Osnard, has there been an update of your software? Do you have a version what should work with XML output of Confluence? I tried what you provided above but run into an error. Here is the error message:

(py3) erhan@remote1:~/tmp/confluence$ migrate-confluence analyze --src input/ --dest workspace/ Source: /home/erhan/tmp/confluence/input Destination: /home/erhan/tmp/confluence/workspace

Fetching file list ...done. PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in phar:///usr/local/bin/migrate-confluence/src/Analyzer/ConfluenceAnalyzer.php:119 Stack trace:

0 phar:///usr/local/bin/migrate-confluence/vendor/hallowelt/mediawiki-lib-migration/src/AnalyzerBase.php(67): HalloWelt\MigrateConfluence\Analyzer\ConfluenceAnalyzer->doAnalyze()

https://github.com/hallowelt/migrate-confluence/issues/1 phar:///usr/local/bin/migrate-confluence/src/Analyzer/ConfluenceAnalyzer.php(107): HalloWelt\MediaWiki\Lib\Migration\AnalyzerBase->analyze() https://github.com/hallowelt/migrate-confluence/pull/2 phar:///usr/local/bin/migrate-confluence/vendor/hallowelt/mediawiki-lib-migration/src/Command/Analyze.php(50): HalloWelt\MigrateConfluence\Analyzer\ConfluenceAnalyzer->analyze() https://github.com/hallowelt/migrate-confluence/pull/3 phar:///usr/local/bin/migrate-confluence/vendor/hallowelt/mediawiki-lib-migration/src/CliCommandBase.php(84): HalloWelt\MediaWiki\Lib\Migration\Command\Analyze->doProcessFile() https://github.com/hallowelt/migrate-confluence/pull/4 phar:///usr/local/bin/migrate-confluence/vendor/hallowelt/mediawiki-lib-commandline-tools/src/Commands/BatchFileProcessorBase.php(122): HalloWelt\MediaWiki\Lib\Migration\CliCommandBase->process in phar:///usr/local/bin/migrate-confluence/src/Analyzer/ConfluenceAnalyzer.php on line 119 (py3) erhan@remote1:~/tmp/confluence$

osnard commented 5 months ago

You will need to install the dom extension for PHP. On Ubuntu based Linux distributions this can be done using sudo apt-get install php-dom