https://bugzilla.wikimedia.org/show_bug.cgi?id=18115
--- Comment #2 from ^demon <[email protected]> 2009-03-23 22:49:48 UTC --- (In reply to comment #0) > 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*. Can you rephrase here? $fileName is getting used at several points after I construct it in line 160. > > # 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). > getHashPath should return '' if hashLevels == 0, making $path = 'thumb/imagename.jpg/'. > # 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 > WORKSFORME on Windows && CentOS. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
