Probleme! beim Schreiben von beiträgen!

Silberfluegel
Warning: Division by zero in /var/www/user/si/silberfluegel/html/throbb/thread.php on line 295

Warning: Division by zero in /var/www/user/si/silberfluegel/html/throbb/thread.php on line 296

Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/si/silberfluegel/html/throbb/thread.php:295) in /var/www/user/si/silberfluegel/html/throbb/acp/lib/functions.php on line 82

Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/si/silberfluegel/html/throbb/thread.php:295) in /var/www/user/si/silberfluegel/html/throbb/acp/lib/functions.php on line 82

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
   $counter=$attachmentsinfo[$posts['postid']][$i]['counter'];
  if($wbbuserdata['showimages']==1 && $wbbuserdata['candownloadattachments']==1 && ($fileextension=="gif" || $fileextension=="png" || $fileextension=="jpg" || $fileextension=="jpeg")) {
   list($width,$height,$type,$attr)=@getimagesize("attachments/attachment-$attachmentid.$fileextension");
   $picmaxheight=intval($picmaxheight);
   $picmaxwidth=intval($picmaxwidth);
   $hscale=$height/$picmaxheight;
   $wscale=$width/$picmaxwidth;
   if(($hscale>1) || ($wscale>1)) $scale=($hscale>$wscale)?$hscale:$wscale;
   else $scale=1;
   if($scale!=1) {


code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
 else return $returnfalse;
}

function bbcookie($name, $value, $time) {
 global $cookiepath, $cookiedomain;

 if($cookiedomain) setcookie($name, $value, $time, $cookiepath, $cookiedomain);
 elseif($cookiepath) setcookie($name, $value, $time, $cookiepath);
 else setcookie($name, $value, $time);

}

function mailer($email,$subject,$text,$sender="",$other="") {
 global $frommail, $master_board_name;

 if($sender) return @mail($email,$subject,$text,"From: $sender".$other);
 else return @mail($email,$subject,$text,"From: $frommail".$other);
}


woran liegt das ?
Seraphine
Bitte immer 5 Zeilen vor und nach der Zeile zusätzlich posten....

Außerdem aussagekräftiger Titel.
Segaja
ich vermute mal, dass die folgenden beiden zeilen die angesprochenen zeilen 295 und 296 sind.

code:
1:
2:
$hscale=$height/$picmaxheight;
$wscale=$width/$picmaxwidth;


mit einem @ vor einer action kannst du die fehlermeldungen unterdrücken.

ich würde es mal so versuchen:

code:
1:
2:
$hscale=@($height/$picmaxheight);
$wscale=@($width/$picmaxwidth);


kann aber gerade nicht garantieren, dass das richtig ist.

mfg
Segaja