Last modified: 2014-10-27 13:23:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49281, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47281 - dumpBackup.php error with --uploads --include-files options: Unable to find the wrapper "mwstore"
dumpBackup.php error with --uploads --include-files options: Unable to find t...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.19.19
All All
: Normal normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-16 09:37 UTC by jerome
Modified: 2014-10-27 13:23 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---
aklapper: Backport_to_Stable+


Attachments

Description jerome 2013-04-16 09:37:24 UTC
The error is about the files attached to pages. When I execute : 

php dumpBackup.php --full --uploads --include-files --output=file:dump.xml

I get the following error : 

PHP Warning:  file_get_contents(): Unable to find the wrapper "mwstore" - did you forget to enable it when you configured PHP? in /var/www/mediawiki-1.20.3/includes/Export.php on line 802
PHP Warning:  file_get_contents(mwstore://local-backend/local-public/9/9e/file.png): failed to open stream: No such file or directory in /var/www/mediawiki-1.20.3/includes/Export.php on line 802


<file.png> is the file I uploaded on the server. This error is for all images of my wiki

The owner and group of my image folder is apache, and I've already tried to put 777 permissions, but still not working.

Tested on centos 6.4 and debian 6 - none working.

Am-I doing something wrong ?
Comment 1 Andre Klapper 2013-04-17 12:05:43 UTC
I assume this refers to the following line in writeUpload():
chunk_split( base64_encode( file_get_contents( $file->getPath() ) ) ) .

Similar tickets mentioning this error are bug 33878, bug 38505, bug 46391.
Comment 2 John Horne 2013-05-07 15:31:22 UTC
This problem, with the exact same error messages, occurs at 1.20.5 as well.
Comment 3 Witzman 2013-06-06 06:58:06 UTC
Same Behaviour in 1.21.1
Comment 4 David Leaman 2014-03-21 17:58:12 UTC
Looks like this was fixed in https://gerrit.wikimedia.org/r/#/c/67236/.
Comment 5 Tiziano Müller 2014-04-28 14:59:24 UTC
agreed, the mentioned patch fixed it for me.
Comment 6 Rusty Burchfield 2014-09-26 00:42:10 UTC
1.20 and 1.21 aren't supported anymore, and this appears to be fixed in newer versions.  However, the issue is present in 1.19.  Maybe worth backporting?
Comment 7 Andre Klapper 2014-09-26 10:05:15 UTC
(In reply to David Leaman from comment #4)
> Looks like this was fixed in https://gerrit.wikimedia.org/r/#/c/67236/.

(In reply to Tiziano Müller from comment #5)
> agreed, the mentioned patch fixed it for me.

Thanks for the comments. Closing as RESOLVED FIXED.

(In reply to Rusty Burchfield from comment #6)
> However, the issue is present in 1.19.  Maybe worth backporting?

I'v set the Backport_to_Stable request flag in this ticket.
Comment 8 Gerrit Notification Bot 2014-09-26 10:22:47 UTC
Change 163140 had a related patch set uploaded by Nemo bis:
Use getFileContents() instead of incorrect file system call to fetch file contents.

https://gerrit.wikimedia.org/r/163140
Comment 9 Nemo 2014-09-26 10:23:25 UTC
Yep, fits backport policy.
Comment 10 Mark A. Hershberger 2014-10-09 14:19:23 UTC
The patch needs fixing before it can be merged.
Comment 11 Gerrit Notification Bot 2014-10-11 17:23:26 UTC
Change 163140 merged by jenkins-bot:
Use getFileContents() instead of incorrect file system call to fetch file contents.

https://gerrit.wikimedia.org/r/163140
Comment 12 Andre Klapper 2014-10-27 13:23:55 UTC
https://gerrit.wikimedia.org/r/#/c/163140/ was merged into REL1_19.
Closing again.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links