Craft\Exception

Not enough memory available to perform this image operation.

/var/www/cofoco/releases/0029a7e75a07cc1a3b8df221c5a102e4ab96c359/plugins/imager/services/ImagerService.php(328)

316             } else {
317                 throw new Exception($msg);
318             }    
319         }
320 
321         if (!craft()->images->checkMemoryForImage($pathsModel->sourcePath . $pathsModel->sourceFilename)) {
322             $msg = Craft::t("Not enough memory available to perform this image operation.");
323 
324             if (craft()->imager->getSetting('suppressExceptions')===true) {
325                 ImagerPlugin::log($msg, LogLevel::Error);
326                 return null;
327             } else {
328                 throw new Exception($msg);
329             }    
330         }
331         
332         /**
333          * Transform can be either an array or just an object.
334          * Act accordingly and return the results the same way to the template.
335          */
336         $r = null;
337 
338         if (isset($transform[0])) {
339             $transformedImages = array();
340             foreach ($transform as $t) {

Stack Trace

#0
+
 /var/www/cofoco/releases/0029a7e75a07cc1a3b8df221c5a102e4ab96c359/plugins/imager/variables/ImagerVariable.php(26): Craft\ImagerService->transformImage(Craft\AssetFileModel, array(array("width" => 360), array("width" => 720, "jpegQuality" => 80)), array("position" => "center-center", "ratio" => 1.7777777777778), null)
21      * @param $configOverrides
22      * @return mixed
23      */
24     public function transformImage($file, $transform, $transformDefaults = null, $configOverrides = null)
25     {
26         $image = craft()->imager->transformImage($file, $transform, $transformDefaults, $configOverrides);
27         return $image;
28     }
29 
30     /**
31      * Takes an array of Imager_ImageModel (or anything else that supports getUrl() and getWidth())
#1
+
 /var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Template.php(690): Craft\ImagerVariable->transformImage(Craft\AssetFileModel, array(array("width" => 360), array("width" => 720, "jpegQuality" => 80)), array("position" => "center-center", "ratio" => 1.7777777777778))
685         // to call is not supported. If ignoreStrictCheck is true, we should return null.
686         try {
687             if (!$arguments) {
688                 $ret = $object->$method();
689             } else {
690                 $ret = call_user_func_array(array($object, $method), $arguments);
691             }
692         } catch (BadMethodCallException $e) {
693             if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
694                 return;
695             }
#2
+
 /var/www/cofoco/craft/app/etc/templating/BaseTemplate.php(64): Twig_Template->getAttribute(Craft\ImagerVariable, "transformImage", array(Craft\AssetFileModel, array(array("width" => 360), array("width" => 720, "jpegQuality" => 80)), array("position" => "center-center", "ratio" => 1.7777777777778)), "method", ...)
59         if (is_object($object) && $object instanceof BaseElementModel)
60         {
61             $this->_includeElementInTemplateCaches($object);
62         }
63 
64         return parent::getAttribute($object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
65     }
66 
67     // Private Methods
68     // =========================================================================
69 
2024-03-28 15:09:56 nginx/1.10.3 / Craft CMS 2.7.4