symbiont1 Posted March 24, 2005 Report Share Posted March 24, 2005 Hallo! Ich bekomme bei jedem Produkt, was ich einstellen m?chte folgenden Fehler, wenn ich Bild mit hochladen m?chte. Ich habe im Forum noch nichts zu diesem Thema gefunden... in meiner Konfiguration f?r die Bilder habe ich alle GDlib-Effekte ausgeschaltet und f?r jeden Bildtyp feste Breiten vorgegeben. Wenn ich nach der fehlermeldung auf den Back-Button dr?cke, sind Artikel und Bild meist trotzdem drin - machmal aber ohne Preis!! Warning: Division by zero in /var/www/web2/html/asp/02-asp-webshop/admin/includes/classes/image_manipulator.php on line 52 Warning: Division by zero in /var/www/web2/html/asp/02-asp-webshop/admin/includes/classes/image_manipulator.php on line 52 Warning: Division by zero in /var/www/web2/html/asp/02-asp-webshop/admin/includes/classes/image_manipulator.php on line 52 Warning: Cannot modify header information - headers already sent by (output started at /var/www/web2/html/asp/02-asp-webshop/admin/includes/classes/image_manipulator.php:52) in /var/www/web2/html/asp/02-asp-webshop/admin/includes/functions/general.php on line 146 W?rde mich sehr ?ber Hilfe freuen... Danke! Henric Link to comment Share on other sites More sharing options...
webrise Posted March 24, 2005 Report Share Posted March 24, 2005 BIldergr?ssen angeben siehe auch DOCS/FAQs Ich habe seit Providerwechsel folgendes Problem: Fehlermeldung: Warning: getimagesize(): Read error! in /is/htdocs/wp1008963_3OE7TSEL49/www/admin/includes/classes/image_manipulator.php on line 39 Warning: getimagesize(): Read error! in /is/htdocs/wp1008963_3OE7TSEL49/www/admin/includes/classes/image_manipulator.php on line 39 Warning: getimagesize(): Read error! in /is/htdocs/wp1008963_3OE7TSEL49/www/admin/includes/classes/image_manipulator.php on line 39 Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp1008963_3OE7TSEL49/www/admin/includes/classes/image_manipulator.php:39) in /is/htdocs/wp1008963_3OE7TSEL49/www/admin/includes/functions/general.php on line 146 Also an GD 2 kann es nicht liegen, hier die Serverinfo: GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled Hab hier im Forum schon einiges durchforstet...bitte um Hilfe Link to comment Share on other sites More sharing options...
webrise Posted March 24, 2005 Report Share Posted March 24, 2005 Erg?nzung: Die Fehlermeldung kommt nur, wenn ich kein neues Produktbild hochlade. Link to comment Share on other sites More sharing options...
symbiont1 Posted March 24, 2005 Author Report Share Posted March 24, 2005 neues problem -> neuer thread please.... ich habe bei den bildgr??en alles ausprobiert. von "gar nichts angeben" ?ber "nur breite angeben" bis hin zu "breite und h?he angeben"... vielleicht kann jemand helfen..? Link to comment Share on other sites More sharing options...
chpohl Posted March 24, 2005 Report Share Posted March 24, 2005 breite und h?he sollte es tun. Hast du das Image-Processing danach laufen lassen, damit die ?nderungen umgesetzt werden? Link to comment Share on other sites More sharing options...
symbiont1 Posted March 24, 2005 Author Report Share Posted March 24, 2005 Was meinst du mit dem Image-Processing danach laufen lassen? Link to comment Share on other sites More sharing options...
chpohl Posted March 24, 2005 Report Share Posted March 24, 2005 @webrise guck mal hier ... http://www.xt-commerce.com/modules/ipboard...post-11983.html Link to comment Share on other sites More sharing options...
chpohl Posted March 24, 2005 Report Share Posted March 24, 2005 @symbiont Admin --->XT-Module --->Image-Processing Link to comment Share on other sites More sharing options...
webrise Posted March 24, 2005 Report Share Posted March 24, 2005 @chpohl Erstmal danke f?r dein kopfdenken...aber dein link hatte ich schon gefunden... siehe auch: Siehe DOCS/FAQ =) aber was soll ich tun...was da steht trifft bei mir zu...und was h?tte sein k?nnen, habe ich probiert. Link to comment Share on other sites More sharing options...
webrise Posted March 24, 2005 Report Share Posted March 24, 2005 ...trifft bei mir NICHT zu Link to comment Share on other sites More sharing options...
webrise Posted March 24, 2005 Report Share Posted March 24, 2005 Ich habe alle Bilder neu hochgeladen...aber die Fehlermeldung bleibt ... Link to comment Share on other sites More sharing options...
chpohl Posted March 24, 2005 Report Share Posted March 24, 2005 hhhmmm ... hab nochmal gesucht. Warst du hier auch schon? http://www.xt-commerce.com/modules/ipboard...post-12262.html Link to comment Share on other sites More sharing options...
webrise Posted March 25, 2005 Report Share Posted March 25, 2005 @chpohl Das ist evtl. mein Problem: Ich bin "noch" nicht Sponsor. N?heres dazu sp?ter ... Wenn ich auf dein Link klicke -> Du hast keine Erlaubnis zum lesen dieses Beitrages Link to comment Share on other sites More sharing options...
chpohl Posted March 25, 2005 Report Share Posted March 25, 2005 Kann es sein, dass du die Datei overlay.gif aus dem images-Ordner gel?scht hast, aber bei den Bild-Optionen noch versuchst, sie aufzurufen? :grml: Link to comment Share on other sites More sharing options...
webrise Posted March 25, 2005 Report Share Posted March 25, 2005 @chpohl Nein, ich habe eben nachgesehen...alle Bilddaten angeben, also width & height, und der Rest ist leer ... Link to comment Share on other sites More sharing options...
webrise Posted March 25, 2005 Report Share Posted March 25, 2005 Also eben hab ich nochmal ein komplettes Produkt gel?scht... Dann habe ich es neu angelegt...ein dazugeh?riges Bild hochgeladen...dann gespeichert -> keine Fehlermeldung dann den gleiche, eben angelegten Artikel, neu aufgerufen und nichts dran ge?ndert und gespeichert... wieder diese Fehlermeldung ??? Link to comment Share on other sites More sharing options...
chpohl Posted March 25, 2005 Report Share Posted March 25, 2005 Also so richtig f?llt mir dazu nichts weiter ein. Im Download gibt?s noch einen anderen Image-Manipulator. Vielleicht versuchst du es mal mit dem (vorher nat?rlich den anderen sichern) http://www.xt-commerce.com/modules/wfdownl...wcat.php?cid=29 Link to comment Share on other sites More sharing options...
webrise Posted April 3, 2005 Report Share Posted April 3, 2005 Habe auch diese Datei ausprobiert - dann kommen noch mehr Fehlermeldungen. Ich habe auch nach Leerzeichen (zeilen) gesucht, aber konnte keine finden. Kann irgendjemand diese Fehlermeldung deuten: Warning: getimagesize(): Read error! in /is/htdocs/xxxx/www/admin/includes/classes/image_manipulator.php on line 39 Warning: getimagesize(): Read error! in /is/htdocs/xxxx/www/admin/includes/classes/image_manipulator.php on line 39 Warning: getimagesize(): Read error! in /is/htdocs/xxxx/www/admin/includes/classes/image_manipulator.php on line 39 Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/xxxx/www/admin/includes/classes/image_manipulator.php:39) in /is/htdocs/xxxx/www/admin/includes/functions/general.php on line 146 Link to comment Share on other sites More sharing options...
smedder Posted April 5, 2005 Report Share Posted April 5, 2005 Guck mal in image_manipulator.php in der Zeile 39, da muss eine Leerzeile bzw. irgendwelcher Code sein, weshalb dann der Fehler entsteht. Wenn du es selber nicht findest, poste mal die letzten Zeilen der image_manipulator.php. Link to comment Share on other sites More sharing options...
webrise Posted April 6, 2005 Report Share Posted April 6, 2005 Konnte nichts finden...auch mit Brille putzen Hier mal die Zeilen 29 - 63: $this->compile(); if($this->c !== "") { $this->manipulate(); $this->create(); } } function compile() { $this->h = getimagesize($this->a); [COLOR=green]//<<< Das ist Zeile 39[/COLOR] if(is_array($this->h)) { $this->i = $this->h[0]; $this->j = $this->h[1]; $this->k = $this->h[2]; if($this->m == '0'){ $this->z = ($this->j / $this->n); $this->m = ($this->i / $this->z); } $this->o = ($this->i / $this->m); $this->p = ($this->j / $this->n); $this->q = ($this->o > $this->p) ? $this->m : round($this->i / $this->p); // width $this->r = ($this->o > $this->p) ? round($this->j / $this->o) : $this->n; // height } $this->s = ($this->k < 4) ? ($this->k < 3) ? ($this->k < 2) ? ($this->k < 1) ? Null : imagecreatefromgif($this->a) : imagecreatefromjpeg($this->a) : imagecreatefrompng($this->a) : Null; if($this->s !== Null) { $this->t = imagecreatetruecolor($this->q, $this->r); // created thumbnail reference $this->u = imagecopyresampled($this->t, $this->s, 0, 0, 0, 0, $this->q, $this->r, $this->i, $this->j); } } $this->compile(); if($this->c !== "") { $this->manipulate(); $this->create(); } } function compile() { $this->h = getimagesize($this->a); if(is_array($this->h)) { $this->i = $this->h[0]; $this->j = $this->h[1]; $this->k = $this->h[2]; if($this->m == '0'){ $this->z = ($this->j / $this->n); $this->m = ($this->i / $this->z); } $this->o = ($this->i / $this->m); $this->p = ($this->j / $this->n); $this->q = ($this->o > $this->p) ? $this->m : round($this->i / $this->p); // width $this->r = ($this->o > $this->p) ? round($this->j / $this->o) : $this->n; // height } $this->s = ($this->k < 4) ? ($this->k < 3) ? ($this->k < 2) ? ($this->k < 1) ? Null : imagecreatefromgif($this->a) : imagecreatefromjpeg($this->a) : imagecreatefrompng($this->a) : Null; if($this->s !== Null) { $this->t = imagecreatetruecolor($this->q, $this->r); // created thumbnail reference $this->u = imagecopyresampled($this->t, $this->s, 0, 0, 0, 0, $this->q, $this->r, $this->i, $this->j); } } $this->compile(); if($this->c !== "") { $this->manipulate(); $this->create(); } } function compile() { $this->h = getimagesize($this->a); if(is_array($this->h)) { $this->i = $this->h[0]; $this->j = $this->h[1]; $this->k = $this->h[2]; if($this->m == '0'){ $this->z = ($this->j / $this->n); $this->m = ($this->i / $this->z); } $this->o = ($this->i / $this->m); $this->p = ($this->j / $this->n); $this->q = ($this->o > $this->p) ? $this->m : round($this->i / $this->p); // width $this->r = ($this->o > $this->p) ? round($this->j / $this->o) : $this->n; // height } $this->s = ($this->k < 4) ? ($this->k < 3) ? ($this->k < 2) ? ($this->k < 1) ? Null : imagecreatefromgif($this->a) : imagecreatefromjpeg($this->a) : imagecreatefrompng($this->a) : Null; if($this->s !== Null) { $this->t = imagecreatetruecolor($this->q, $this->r); // created thumbnail reference $this->u = imagecopyresampled($this->t, $this->s, 0, 0, 0, 0, $this->q, $this->r, $this->i, $this->j); } } Link to comment Share on other sites More sharing options...
webrise Posted April 6, 2005 Report Share Posted April 6, 2005 hupps.....der Code ist zweimal reingerutscht. Hier nochmal richtig: function compile() { $this->h = getimagesize($this->a); //<<<< Zeile 39 if(is_array($this->h)) { $this->i = $this->h[0]; $this->j = $this->h[1]; $this->k = $this->h[2]; if($this->m == '0'){ $this->z = ($this->j / $this->n); $this->m = ($this->i / $this->z); } () und hier die letzten Zeile der image_manipulator.php function create() { if($this->s !== Null) { if($this->d !== "") { ob_start(); imagejpeg($this->t, $this->d, $this->e); ob_end_clean(); } imagedestroy($this->s); imagedestroy($this->t); } } } ?> Link to comment Share on other sites More sharing options...
smedder Posted April 6, 2005 Report Share Posted April 6, 2005 Wo wird denn $this->a gesetzt? Link to comment Share on other sites More sharing options...
webrise Posted April 7, 2005 Report Share Posted April 7, 2005 Wei? ich leider nicht. Ich setz mal den Code von zeile 18 bis 62 rein, vielleicht erkennst du dann mehr: class image_manipulation { function image_manipulation($resource_file, $max_width, $max_height, $destination_file="", $compression=IMAGE_QUALITY, $transform="") { $this->a = $resource_file; // image to be thumbnailed $this->c = $transform; $this->d = $destination_file; // thumbnail saved to $this->e = $compression; // compression ration for jpeg thumbnails $this->m = $max_width; $this->n = $max_height; $this->compile(); if($this->c !== "") { $this->manipulate(); $this->create(); } } function compile() { $this->h = getimagesize($this->a); if(is_array($this->h)) { $this->i = $this->h[0]; $this->j = $this->h[1]; $this->k = $this->h[2]; if($this->m == '0'){ $this->z = ($this->j / $this->n); $this->m = ($this->i / $this->z); } $this->o = ($this->i / $this->m); $this->p = ($this->j / $this->n); $this->q = ($this->o > $this->p) ? $this->m : round($this->i / $this->p); // width $this->r = ($this->o > $this->p) ? round($this->j / $this->o) : $this->n; // height } $this->s = ($this->k < 4) ? ($this->k < 3) ? ($this->k < 2) ? ($this->k < 1) ? Null : imagecreatefromgif($this->a) : imagecreatefromjpeg($this->a) : imagecreatefrompng($this->a) : Null; if($this->s !== Null) { $this->t = imagecreatetruecolor($this->q, $this->r); // created thumbnail reference $this->u = imagecopyresampled($this->t, $this->s, 0, 0, 0, 0, $this->q, $this->r, $this->i, $this->j); } } Link to comment Share on other sites More sharing options...
smedder Posted April 7, 2005 Report Share Posted April 7, 2005 Haha, ?berpr?f nochmal die Rechte, ob die alle richtig gesetzt sind, daran k?nnte es vielleicht liegen. Link to comment Share on other sites More sharing options...
webrise Posted April 8, 2005 Report Share Posted April 8, 2005 Wo genau soll ich welche Rechte setzen? Und wieso Haha? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.