Notice (8): Undefined offset: 0 [APP/controllers/components/product_image.php, line 61]Code |
Context $sql = "SELECT fileId, hash FROM files WHERE fileId = " . Sanitize::escape($imageId);
$file = $this->File->query($sql);
$file = $file[0]["files"];
$imageId = 0
$sql = "SELECT fileId, hash FROM files WHERE fileId = 0"
$file = array()
ProductImageComponent::getFile() - APP/controllers/components/product_image.php, line 61
ProductImageComponent::getImage() - APP/controllers/components/product_image.php, line 23
ProductImageController::product() - APP/controllers/product_image_controller.php, line 32
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 98
Warning (2): mime_content_type() [function.mime-content-type]: Can only process string or stream arguments [APP/controllers/components/product_image.php, line 99]Code |
Context$file = null
mime_content_type - [internal], line ??
ProductImageComponent::getMimeType() - APP/controllers/components/product_image.php, line 99
ProductImageController::product() - APP/controllers/product_image_controller.php, line 34
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 98