Author: mohamed.m.k
Description:
Hi,
Three issues:
It isn't saving files to disk (in $IP/images/thumb).. I think that's because $fileName (ltrim( substr( $foreignUrl, strrpos( $foreignUrl, '/' ) ), '/' );) is never echoed in the other variables (but if I add wfDebug( METHOD . " $fileName \n" ), it is shown in the debug file);) (in if ( !is_writable( ... and $localUrl ... and file_put_contents($wgUploadDi ...). I have no idea why. example*.
hashLevels is set to zero by default (I think), so $this->getHashPath( $name ) (line 161) isn't giving anything. I had to add
'hashLevels' => 2, so that it gets set (shouldn't it detect that or I am wrong at that assumption).
It isn't working in Windows because of the different slashes style.
Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AGnome-face-sad.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&format=json&action=query
FileCache MISS for Gnome-face-sad.svg
Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AGnome-face-sad.svg&iiprop=url&iiurlwidth=48&iiurlheight=-1&prop=imageinfo&format=json&action=query
ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Gnome-face-sad.svg/48px-Gnome-face-sad.svg.png
ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path
Version: 1.15.x
Severity: normal