Topic on Project:Support desk

importImages.php hangs if file doesn't already exist

4
Bob.spencer (talkcontribs)

in importImages.php it hangs when trying to import. I am running in windows, my command is:
C:\inetpub\wwwroot\mediawiki>php maintenance\importImages.php maintenance\images\ svg png jpg jpeg gif bmp SVG PNG JPG JPEG GIF BMP

I have debugged it to this code on line 167. if ( $image->exists() ) {

The previous line checks for the file, but in my case the file does not exist.
I fear that a null object is being referenced for an action, exists().

What can we do to allow for this to work?

This post was posted by Bob.spencer, but signed as Sdsolutions.

Southparkfan (talkcontribs)

Thanks for spotting that! If you have a working patch to fix this, could you please submit your patch so the MediaWiki developers can review this? See Gerrit and this for more information.

Bob.spencer (talkcontribs)

I have no fix, I have only identified the problem. Do I need to submit a bug report?

This post was posted by Bob.spencer, but signed as Sdsolutions.

Reply to "importImages.php hangs if file doesn't already exist"