diff --git a/lib/private/image.php b/lib/private/image.php
index 7761a3c7737f3f80722c8f8cb62b0720d4b9c235..314a4216b82dcc5a11fe3602a4962e1d82cde655 100644
--- a/lib/private/image.php
+++ b/lib/private/image.php
@@ -416,7 +416,7 @@ class OC_Image {
 		// exif_imagetype throws "read error!" if file is less than 12 byte
 		if(!@is_file($imagePath) || !file_exists($imagePath) || filesize($imagePath) < 12 || !is_readable($imagePath)) {
 			// Debug output disabled because this method is tried before loadFromBase64?
-			OC_Log::write('core', 'OC_Image->loadFromFile, couldn\'t load: '.$imagePath, OC_Log::DEBUG);
+			OC_Log::write('core', 'OC_Image->loadFromFile, couldn\'t load: ' . (string) $imagePath, OC_Log::DEBUG);
 			return false;
 		}
 		$iType = exif_imagetype($imagePath);