outofcontrol / mediawiki-to-gfm

Converts Mediawiki format to Github Flavoured Markdown format
85 stars 21 forks source link

"unexpected end of input" while converting #8

Closed XaaT closed 3 years ago

XaaT commented 5 years ago

Environment (Debian Sid)

Error

While converting, using user@xat:~/work/projects/markdown/mediawiki-to-gfm$ ./convert.php --filename=./sysadmin-20190408122828.xml --output=./sortie error : Converted: ./sortie/AD_Role [...] Converted: ./sortie/Creation_compte_Windows

Error at "source" (line 213, column 1): unexpected end of input expecting "<"

^ Pandoc could not convert successfully, error code: 65. Tried to run the following command: /usr/bin/pandoc --from=mediawiki --to=gfm /tmp/pandoc5cab3f8624803

I'll try to use php 7.2

outofcontrol commented 5 years ago

I've not tested in PHP 7.3 yet. Something on my list to attempt.

XaaT commented 5 years ago

I'm setting up another environment using php7.0

XaaT commented 5 years ago

Environment test php7.0 @ ubuntu 16.04

Go

Error at "source" (line 213, column 1): unexpected end of input expecting "<"

^ Pandoc could not convert successfully, error code: 65. Tried to run the following command: /usr/bin/pandoc --from=mediawiki --to=gfm /tmp/pandoc5cab5e718531a

Edit : Wrong page, it's the next page that's crashing the script. Deleting entry resulting in good behaviour and no crash.

XaaT commented 5 years ago

So it's running well (see previous edit) on PHP 7.3 without the faulty entry.