From: Roland Haeder Date: Sun, 18 Jan 2015 12:25:18 +0000 (+0100) Subject: Added a lot debug infos. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=52ede20ee27184d5d78ecac01a88c07aa32ce9a7;p=quix0rs-gnu-social.git Added a lot debug infos. Signed-off-by: Roland Haeder --- diff --git a/classes/File.php b/classes/File.php index 3bbdcbe990..aee16e132d 100644 --- a/classes/File.php +++ b/classes/File.php @@ -433,7 +433,19 @@ class File extends Managed_DataObject || $box['h'] < 1 || $box['y'] >= $this->height) { // Fail on bad width parameter. If this occurs, it's due to algorithm in ImageFile->scaleToFit common_debug("Boundary box parameters for resize of {$this->filepath} : ".var_export($box,true)); - throw new ServerException('Bad thumbnail size parameters.'); + throw new ServerException('Bad thumbnail size parameters. maxsize=' . + common_config('thumbnail', 'maxsize') . + ',box[width]=' . $box['width'] . + ',box[height]=' . $box['height'] . + ',box[w]=' . $box['w'] . + ',box[h]=' . $box['h'] . + ',box[x]=' . $box['x'] . + ',box[y]=' . $box['y'] . + ',this->width=' . $this->width . + ',this->heigh=' . $this->height . + ',this->filepath=' . $this->filepath . + ',this->filename=' . $this->filename + ); } // Perform resize and store into file