Last modified: 2013-04-25 12:02:20 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 T49175, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47175 - Uploading just spins when 'enableFormData' set to 'false'
Uploading just spins when 'enableFormData' set to 'false'
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
REL1_20-branch
All Linux
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-12 17:56 UTC by Alex deVries
Modified: 2013-04-25 12:02 UTC (History)
3 users (show)

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


Attachments
Version information. (214.47 KB, application/pdf)
2013-04-13 15:21 UTC, Alex deVries
Details

Description Alex deVries 2013-04-12 17:56:39 UTC
I'm having a problem with UploadWizard and I can't figure out what's wrong. UW used to work gloriously, but then it just stopped.
When I upload a file, the thumbnail displays well. Then it just displays the "Uploading..." status and it never proceeds. The file appears in the stash, but never as an actual file.


I enabled some debugging, here's the tail end. Notice the "Class PEAR_Error not found; skipped loading", which is really hard to debug.

I have no uploaded images of value in my database, I can wipe all of those (if I knew what to delete).


MessageCache::load: Loading en... got from global cache
Query develpd7_developingottawa (19) (slave): SELECT /* LCStore_DB::get Another user */  lc_value  FROM `developingottawal10n_cache`  WHERE lc_lang = 'en' AND lc_key = 'messages:filename-prefix-blacklist'  LIMIT 1  
Query develpd7_developingottawa (20) (slave): SELECT /* LocalRepo::findBySha1 Another user */  img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_description,img_user,img_user_text,img_timestamp,img_sha1  FROM `developingottawaimage`  WHERE img_sha1 = 'p039x1u4phm2dfdf3comjz7fsrx1dvh'  ORDER BY img_name 
Query develpd7_developingottawa (21) (slave): SELECT /* ArchivedFile::load Another user */  fa_id,fa_name,fa_archive_name,fa_storage_key,fa_storage_group,fa_size,fa_bits,fa_width,fa_height,fa_metadata,fa_media_type,fa_major_mime,fa_minor_mime,fa_description,fa_user,fa_user_text,fa_timestamp,fa_deleted  FROM `developingottawafilearchive`  WHERE fa_storage_group = 'deleted' AND fa_storage_key = 'p039x1u4phm2dfdf3comjz7fsrx1dvh.png'  ORDER BY fa_timestamp DESC 
FSFile::getProps: Getting file info for /var/tmp/phpqfkyMN
MimeMagic::doGuessMimeType: analyzing head and tail of /var/tmp/phpqfkyMN for magic numbers.
MimeMagic::doGuessMimeType: getimagesize detected /var/tmp/phpqfkyMN as image/png
MimeMagic::guessMimeType: guessed mime type of /var/tmp/phpqfkyMN: image/png
MimeMagic::improveTypeFromExtension: improved mime type for .: image/png
FSFile::getProps: /var/tmp/phpqfkyMN loaded, 4368 bytes, image/png.
UploadStash::stashFile stashing file at '/var/tmp/phpqfkyMN'
MimeMagic::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
MimeMagic::doGuessMimeType: analyzing head and tail of /var/tmp/phpqfkyMN for magic numbers.
MimeMagic::doGuessMimeType: getimagesize detected /var/tmp/phpqfkyMN as image/png
MimeMagic::guessMimeType: guessed mime type of /var/tmp/phpqfkyMN: image/png
UploadStash::stashFile key for '/var/tmp/phpqfkyMN.png': 11ct563cos90.m93qmf.6.png
UploadStash::stashFile inserting mwrepo://local/temp/2/26/20130412173310!phpqfkyMN.png under 11ct563cos90.m93qmf.6.png
DatabaseBase::query: Writes done: INSERT  INTO `developingottawauploadstash` (us_id,us_user,us_key,us_orig_path,us_path,us_size,us_sha1,us_mime,us_media_type,us_image_width,us_image_height,us_image_bits,us_source_type,us_timestamp,us_status) VALUES (NULL,'6','11ct563cos90.m93qmf.6.png','/var/tmp/phpqfkyMN.png','mwrepo://local/temp/2/26/20130412173310!phpqfkyMN.png','4368','p039x1u4phm2dfdf3comjz7fsrx1dvh','image/png','BITMAP','231','92','8','file','20130412173310','finished')
Query develpd7_developingottawa (22) (slave): INSERT /* UploadStash::stashFile Another user */  INTO `developingottawauploadstash` (us_id,us_user,us_key,us_orig_path,us_path,us_size,us_sha1,us_mime,us_media_type,us_image_width,us_image_height,us_image_bits,us_source_type,us_timestamp,us_status) VALUES (NULL,'6','11ct563cos90.m93qmf.6.png','/var/tmp/phpqfkyMN.png','mwrepo://local/temp/2/26/20130412173310!phpqfkyMN.png','4368','p039x1u4phm2dfdf3comjz7fsrx1dvh','image/png','BITMAP','231','92','8','file','20130412173310','finished')
FSFile::getProps: Getting file info for /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png
MimeMagic::doGuessMimeType: analyzing head and tail of /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png for magic numbers.
MimeMagic::doGuessMimeType: getimagesize detected /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png as image/png
MimeMagic::guessMimeType: guessed mime type of /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png: image/png
MimeMagic::improveTypeFromExtension: improved mime type for .png: image/png
FSFile::getProps: /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png loaded, 4368 bytes, image/png.
FSFile::getProps: Getting file info for /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png
MimeMagic::doGuessMimeType: analyzing head and tail of /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png for magic numbers.
MimeMagic::doGuessMimeType: getimagesize detected /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png as image/png
MimeMagic::guessMimeType: guessed mime type of /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png: image/png
MimeMagic::improveTypeFromExtension: improved mime type for .png: image/png
FSFile::getProps: /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png loaded, 4368 bytes, image/png.
MimeMagic::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
MimeMagic::doGuessMimeType: analyzing head and tail of /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png for magic numbers.
MimeMagic::doGuessMimeType: getimagesize detected /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png as image/png
MimeMagic::guessMimeType: guessed mime type of /home3/develpd7/public_html/images/temp/2/26/20130412173310!phpqfkyMN.png: image/png
Query develpd7_developingottawa (23) (slave): SELECT /* LCStore_DB::get Another user */  lc_value  FROM `developingottawal10n_cache`  WHERE lc_lang = 'en' AND lc_key = 'specialPageAliases'  LIMIT 1  
Class PEAR_Error not found; skipped loading
Query develpd7_developingottawa (24) (slave): COMMIT
Comment 1 Alex deVries 2013-04-12 18:12:05 UTC
A couple more things to add:

- Special:Version shows me this is Upload Wizard (Version 1.3) and MediaWiki 1.20.3


- I see the same problem in Safari 6.0.3 and Chrome 26.0.1410.65 for Mac.
Comment 2 Nischay Nahata 2013-04-13 04:34:03 UTC
What is your PHP and MySQL version?
Comment 3 Alex deVries 2013-04-13 15:21:30 UTC
Created attachment 12095 [details]
Version information.

This is version information from the affected website.
Comment 4 Alex deVries 2013-04-13 15:22:58 UTC
From Special:Version:

Mediawiki: 1.20.3
PHP: 5.4.12 (cgi-fcgi)
MySQL: 5.5.30-log

Also, I attached full version information. I have the Semantic extensions, not sure that makes a difference.

Thanks.
Comment 5 Nischay Nahata 2013-04-13 16:47:27 UTC
Currently I don't know the reason behind this, but this doesn't look like a UW error and something is apparently wrong with your configuration.

Does these help?
http://www.mwusers.com/forums/showthread.php?21392-quot-Error-creating-thumbnail-Unable-to-save-thumbnail-to-destination-quot
Comment 6 Alex deVries 2013-04-13 16:51:46 UTC
Okay, I'll pick through my LocalSettings.php and turn off a bunch of things to see if that's it. And I'll report back.

If that turns up nothing, how can I debug it?

- A
Comment 7 Alex deVries 2013-04-14 19:05:17 UTC
Well, I think I narrowed down the configuration item that causes the problem.

As per the documentation, I'd set:
'enableFormData' => false;

When I switch that back to true, it all works. I'm not sure why. I don't understand the downside (is there one?) to this workaround.
Comment 8 Nischay Nahata 2013-04-15 07:10:30 UTC
There isn't any downside of this and it is supposed to be this way.

Can you point to the documentation that suggested to set it false?

I will now set this as WORKSFORME as I think setting it to false should also work in some manner.
Comment 9 Alex deVries 2013-04-15 12:51:56 UTC
The default was set to 'false' here:

http://www.mediawiki.org/wiki/Extension:UploadWizard#Other_configuration

I made the change on that wiki which needs to be reviewed before it is accepted.

Thank you so much for your help, Nischay. I was worried I'd have to drop use of UW.
Comment 10 Nischay Nahata 2013-04-15 15:25:02 UTC
Welcome :)

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


Navigation
Links