Page MenuHomePhabricator

The dump doesn't create temp directory
Closed, DeclinedPublic

Description

Author: nagyi

Description:
I wanted to dump my wiki pages when I got the following error:

PHP Warning: file_put_contents(d:\Temp\wiki\temp\TEMP-88261655): failed to open
stream: No such file or directory in E:\Internet\honlapok\htdocs\mediawiki\exte
nsions\DumpHTML\dumpHTML.inc on line 552
Can't open file 'd:\Temp\wiki\articles\m\e\d\MediaWiki_PHP_jav├şt├ísok_437c.html
' for writing.
Check permissions or use another destination (-d).

I found the solution to. I didn't find where you create the temp directory, so I
put the following line in dumpHTML.inc at line 550:

$this->mkdir("{$this->dest}\\temp");

It works but I have to delete the temp directory manually.


Version: unspecified
Severity: major
OS: Windows XP

Details

Reference
bz21923

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:58 PM
bzimport set Reference to bz21923.
bzimport added a subscriber: Unknown Object (MLST).

abxabx wrote:

Just notice same thing. Dump is broken at http://download.wikimedia.org/plwiktionary/20100411/plwiktionary-20100411-pages-articles.xml.bz2. Several entries are existing with empty text field. For example here is real content of [[pl:wikt:til]] article: http://pl.wiktionary.org/w/index.php?title=til&oldid=1279710 while in dump there is:

<page>
  <title>til</title>
  <id>7330</id>
  <revision>
    <id>1279710</id>
    <timestamp>2010-04-01T23:12:41Z</timestamp>
    <contributor>
      <username>Interwicket</username>
      <id>5613</id>
    </contributor>
    <minor />
    <comment>iwiki +[[:sv:til]]</comment>
    <text xml:space="preserve" />
  </revision>
</page>

There are also entries misplaced. Content of [[pl:wikt:ez]] is under <title>bela</title> in this archive.

abxabx wrote:

sorry for the last posting, somehow I put it in wrong thread, I don't know how :(

Reassigning to dumpHTML extension

Who gets dumpHTML bugs anyways?

Aklapper subscribed.

The DumpHTML has been unmaintained and broken for many years. It is being archived. Declining this task per T280185.