Seite 1 von 1

Auktions.Mod: Probleme mit Bilder hochladen

Verfasst: 31.12.2004 13:31
von Kiss News
Hallo!
Ich habe mir den Auktionsmod eingebaut. Da scheint es jedoch einen Bug zu geben. Und zwar gibt es einen Error, wenn man ein Foto von einer URL aus dem Internat hochladen möchte. Es kommt dann diese Meldung:
Warning: getimagesize(./auction/upload/37deda2cfe94f6ce334b5417b1fdf6b1.jpg): failed to open stream: No such file or directory in /srv/www/htdocs/web148/html/phpbb2/auction/graphic_files/auction_pic_upload.php on line 282

Warning: getimagesize(./auction/upload/37deda2cfe94f6ce334b5417b1fdf6b1.jpg): failed to open stream: No such file or directory in /srv/www/htdocs/web148/html/phpbb2/auction/graphic_files/auction_pic_upload.php on line 343
Ich habe nachgesehen, das Directory gibt es, das file jedoch nicht...
Es kann jeder gerne selber mal probieren:
http://web148.silverline-s13.de/phpbb2/ ... e=add&ar=1
(einloggen: tester/tester)

Das Hochladen eines Fotos vom PC funktioniert einwandfrei.

Hier die auction/graphic_files/auction_pic_upload.php Zeile 280-282:
/* we have successfully uploaded the picture, now we check its size this time with width and height */

$pic_size = getimagesize($phpbb_root_path . AUCTION_PICTURE_UPLOAD_PATH . $pic_filename);
und Zeilen 242-243:
//get picture size again if it was corrupt we had the wrong size before
$pic_size = getimagesize($phpbb_root_path . AUCTION_PICTURE_UPLOAD_PATH . $pic_filename);
Das file wird also anscheinend bei upload aus dem Internet nicht erstellt...

Dir tpl-Datei sieht so aus:
<!-- BEGIN offer_picture -->
<tr>
<td class="row1"><span class="forumlink">{offer_picture.L_AUCTION_OFFER_PICTURE}</span> </td>
<td colspan="2" class="row1"><input class="post" type="file"
name="auction_offer_picture_file" /> </td>
</tr>
<!-- END offer_picture -->
<!-- BEGIN url_upload -->
<tr>
<td class="row1"><span class="forumlink">{url_upload.L_AUCTION_OFFER_URL_PICTURE}</span> </td>
<td colspan="2" class="row1"><input class="post" type="text" name="auction_offer_url_file"
value="http://" / size="20"> </td>
</tr>
<!-- END url_upload -->
Hat vielleicht jemand eine Ahnung, wo hier der Fehler liegt?
Hier ist meine auction_pic_upload.php:
http://web148.silverline-s13.de/phpbb2/ ... upload.txt
Danke!