Jump to content
xt:Commerce Community Forum

Fehler Beim Bildupload


symbiont1

Recommended Posts

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

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

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

  • 2 weeks later...

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...