Page MenuHomePhabricator

PHP Notice when uploading a file: "Undefined property: SpecialUpload::$mUploadDescription"
Open, Needs TriagePublic

Description

I did a mass export and import of pages between two wikis (MW 1.28). The pages in NS_IMAGE were created without their files, so I re-uploaded them manually with the same name. At this stage, the extension generated this notice:
`
Notice : Undefined property: SpecialUpload::$mUploadDescription in .../extensions/SelectCategory/SelectCategory_body.php on line 165
`

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 6 2017, 9:41 PM
Aklapper renamed this task from PHP Notice when uploading a file to PHP Notice when uploading a file: "Undefined property: SpecialUpload::$mUploadDescription".Jun 7 2017, 9:58 AM
Kizule added a subscriber: Kizule.

I can't find related line in code, this should be tested.

I can't find related line in code

@Zoranzoki21: Huh, why not? Did you actually check the source code?
https://phabricator.wikimedia.org/diffusion/ESLC/browse/REL1_28/SelectCategory_body.php$165 is already mentioned in the task description and has that line.
It is the same in the master branch at https://phabricator.wikimedia.org/diffusion/ESLC/browse/master/SelectCategory_body.php$145

I can't find related line in code

@Zoranzoki21: Huh, why not? Did you actually check the source code?
https://phabricator.wikimedia.org/diffusion/ESLC/browse/REL1_28/SelectCategory_body.php$165 is already mentioned in the task description and has that line.
It is the same in the master branch at https://phabricator.wikimedia.org/diffusion/ESLC/browse/master/SelectCategory_body.php$145

Uhh, my mistake.