Last modified: 2013-04-25 12:02:20 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
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.
What is your PHP and MySQL version?
Created attachment 12095 [details] Version information. This is version information from the affected website.
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.
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
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
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.
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.
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.
Welcome :)