Page MenuHomePhabricator

Internal error on uploading file/multiple files
Closed, DeclinedPublic

Description

Author: eduard

Description:
MediaWiki 1.17wmf1
PHP 5.2.12 (apache)
MySQL 5.0.90-log

I changed the location of my wiki site from /domainname.com/www/wiki to /domainname.com/www to have my site accessible just from the domainname.com address. After that I run webinstall again and /maintenance/rebuildall.php. I changed links in LocalSettings.php
Everything seems to work fine except two things:

  1. When Upload a file or try to upload multiple files I have got the following internal error:

key 'nr18v590ge8l35sttb090ccpr65s77q.' is not in a proper format

Backtrace:

#0 /home/u19329/hdlwiki.com/www/includes/upload/UploadBase.php(634): UploadStash->stashFile('/home/u19329/hd...', Array, NULL)
#1 /home/u19329/hdlwiki.com/www/includes/upload/UploadBase.php(646): UploadBase->stashSessionFile(NULL)
#2 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(367): UploadBase->stashSession()
#3 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(461): SpecialUpload->showUploadWarning(Array)
#4 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(192): SpecialUpload->processUpload()
#5 /home/u19329/hdlwiki.com/www/includes/SpecialPage.php(579): SpecialUpload->execute(NULL)
#6 /home/u19329/hdlwiki.com/www/includes/Wiki.php(250): SpecialPage::executePath(Object(Title))
#7 /home/u19329/hdlwiki.com/www/includes/Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#8 /home/u19329/hdlwiki.com/www/index.php(114): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#9 {main}

  1. I checked the site log file provided by my host company and found the following error:

[Wed Mar 2 09:27:49 2011] [error] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for /home/u19329/hdlwiki.com/www/wiki/extensions/WikiEditor/modules/./images/toc/grip.png in /home/u19329/hdlwiki.com/www/includes/resourceloader/ResourceLoaderFileModule.php on line 363

There were more lines regarding different files.
In fact the WikiEditor extension works fine and I don't understand where and why does this error come from. It seems that there is a problem with a path since it changed from /wiki to /*.

I would appreciate any help to solve these problems?
Thanks in advance


Version: 1.17.x
Severity: major
Whiteboard: aklapper-moreinfo

Details

Reference
bz27819

Event Timeline

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

The key you're getting seems very odd. Does this problem still happen after you clear your cookies?

Bryan.TongMinh wrote:

This happens when stashing an upload for which no matching extension for the mimetype can be found.

Eduard, What is the name of the file you're uploading?

eduard wrote:

(In reply to comment #3)

Eduard, What is the name of the file you're uploading?

In fact, I tried different files png, jpg, svg. What is more interesting is that this error appears occasionally. First I had installed Multiupload extension. Tried to upload from 5 to 10 files and failed. Then I stopped this extension and tried embedded upload file feature. And uploading were several times successful as well as failed. I guess that it can cause the memory limit. I have only 32Mb available. Another reason could be the temporary folder problem I have.
See another post http://www.mediawiki.org/w/index.php?title=Project:Support_desk&offset=20110302175814&limit=20#upload_tmp_dir__-_MediaWiki_ignores_php_specified_path_2699
All of these happened when I upgraded MW to 1.17wmf1 from 1.16.2 and changed the location from domainname.com/wiki/ to domainname.com/
Extensions I also upgraded.
Sorry, I cannot provide more technical details, since I am not familiar with programming. It is my first experience.
Best regards,
Eduard

There was another bug recently where an upload problem was caused by the hoster when they changed out of the /wiki/ directory. Does the problem happen when the site is hosted in /wiki/ instead of the root?

Also, removing the 1.17 blocker from this since, upon closer inspection, it looks like it is local to the installation.

Thehelpfulonewiki wrote:

Reassigning to wikibugs-l per bug 37789

Eduard: If this is still an issue, could you answer comment 5, please?

1.17 was a long time ago. Is this still an issue to you?

Unfortunately closing this report as no further information has been provided.

Eduard: Please feel free to reopen this report if you can provide the information asked for in comment 8 and comment 9 and if this still happens. Thanks!

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:11 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM