From 52ede20ee27184d5d78ecac01a88c07aa32ce9a7 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 18 Jan 2015 13:25:18 +0100 Subject: [PATCH] Added a lot debug infos. Signed-off-by: Roland Haeder --- classes/File.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- 2.39.5