Skip to content

Instantly share code, notes, and snippets.

@terryupton
Created May 21, 2018 18:14
Show Gist options
  • Save terryupton/a22419c6951f1155170b49cf849bc084 to your computer and use it in GitHub Desktop.
Save terryupton/a22419c6951f1155170b49cf849bc084 to your computer and use it in GitHub Desktop.
Craft\Exception
The transform “twitterLarge” cannot be found!
/home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/services/AssetTransformsService.php(588)
576 {
577 return null;
578 }
579 else if (is_string($transform))
580 {
581 $transformModel = $this->getTransformByHandle($transform);
582
583 if ($transformModel)
584 {
585 return $transformModel;
586 }
587
588 throw new Exception(Craft::t("The transform “{handle}” cannot be found!", array('handle' => $transform)));
589 }
590 else if ($transform instanceof AssetTransformModel)
591 {
592 return $transform;
593 }
594 else if (is_object($transform) || is_array($transform))
595 {
596 return new AssetTransformModel($transform);
597 }
598 else
599 {
600 return null;
Stack Trace
#0
– /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/services/AssetTransformsService.php(320): Craft\AssetTransformsService->normalizeTransform("twitterLarge")
315 *
316 * @return AssetTransformIndexModel
317 */
318 public function getTransformIndex(AssetFileModel $file, $transform)
319 {
320 $transform = $this->normalizeTransform($transform);
321 $transformLocation = $this->_getTransformFolderName($transform);
322
323 // Was it eager-loaded?
324 $fingerprint = $file->id.':'.$transformLocation.(is_null($transform->format) ? '' : ':'.$transform->format);
325
#1
– /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/services/AssetsService.php(1009): Craft\AssetTransformsService->getTransformIndex(Craft\AssetFileModel, "twitterLarge")
1004 $sourceType = craft()->assetSources->getSourceTypeById($file->sourceId);
1005 return AssetsHelper::generateUrl($sourceType, $file);
1006 }
1007
1008 // Get the transform index model
1009 $index = craft()->assetTransforms->getTransformIndex($file, $transform);
1010
1011 // Does the file actually exist?
1012 if ($index->fileExists)
1013 {
1014 return craft()->assetTransforms->getUrlForTransformByAssetAndTransformIndex($file, $index);
#2
– /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/models/AssetFileModel.php(277): Craft\AssetsService->getUrlForFile(Craft\AssetFileModel, "twitterLarge")
272 if ($transform === null && isset($this->_transform))
273 {
274 $transform = $this->_transform;
275 }
276
277 return craft()->assets->getUrlForFile($this, $transform);
278 }
279
280 /**
281 * @inheritDoc BaseElementModel::getThumbUrl()
282 *
#3
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/plugins/seomatic/services/SeomaticService.php(942): Craft\AssetFileModel->getUrl("twitterLarge")
#4
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/plugins/seomatic/services/SeomaticService.php(1151): Craft\SeomaticService->setSocialForMeta(array("seoTitle" => "About Us", "seoDescription" => "As one of the largest surveying companies in the UK, Plowman Cra...", "seoKeywords" => "About Us", "seoImage" => "http://plowmancraven-v4.loc/uploads/images/general/_facebook/Pro...", ...), array("locale" => "en_gb", "siteSeoName" => "Plowman Craven", "siteSeoTitle" => "Integrated measurement and consultancy services", "siteSeoTitleSeparator" => "|", ...), array("locale" => "en_gb", "twitterHandle" => "Plowman_Craven", "facebookHandle" => "plowmancraven", "facebookProfileId" => "312127898967136", ...), array("twitterUrl" => "https://twitter.com/Plowman_Craven", "facebookUrl" => "https://www.facebook.com/plowmancraven", "googlePlusUrl" => "", "linkedInUrl" => "https://www.linkedin.com/company/plowman-craven", ...), ...)
#5
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/plugins/seomatic/twigextensions/SeomaticTwigExtension.php(40): Craft\SeomaticService->getGlobals("about/index", "en_gb")
#6
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/vendor/twig/twig/lib/Twig/Environment.php(1465): Craft\SeomaticTwigExtension->getGlobals()
#7
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/vendor/twig/twig/lib/Twig/Environment.php(1382): Twig_Environment->initGlobals()
#8
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/vendor/twig/twig/lib/Twig/Environment.php(1399): Twig_Environment->getGlobals()
#9
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/vendor/twig/twig/lib/Twig/Template.php(403): Twig_Environment->mergeGlobals(array("entry" => Craft\EntryModel))
#10
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/vendor/twig/twig/lib/Twig/Template.php(411): Twig_Template->display(array("entry" => Craft\EntryModel))
#11
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/vendor/twig/twig/lib/Twig/Environment.php(363): Twig_Template->render(array("entry" => Craft\EntryModel))
#12
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/services/TemplatesService.php(256): Twig_Environment->render("about", array("entry" => Craft\EntryModel))
#13
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/controllers/BaseController.php(74): Craft\TemplatesService->render("about", array("entry" => Craft\EntryModel))
#14
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/controllers/TemplatesController.php(68): Craft\BaseController->renderTemplate("about", array("entry" => Craft\EntryModel))
#15
unknown(0): Craft\TemplatesController->actionRender("about", array("entry" => Craft\EntryModel))
#16
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Craft\TemplatesController, array("about", array("entry" => Craft\EntryModel)))
#17
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Craft\TemplatesController, ReflectionMethod, array("variables" => array("entry" => Craft\EntryModel), "template" => "about"))
#18
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(array("variables" => array("entry" => Craft\EntryModel), "template" => "about"))
#19
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/framework/web/CController.php(286): CController->runAction(CInlineAction)
#20
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
#21
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/framework/web/CWebApplication.php(282): CController->run("render")
#22
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/framework/web/CWebApplication.php(141): CWebApplication->runController("templates/render")
#23
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/etc/web/WebApp.php(290): CWebApplication->processRequest()
#24
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/framework/base/CApplication.php(185): Craft\WebApp->processRequest()
#25
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/index.php(73): CApplication->run()
#26
+ /home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/index.php(19): require_once("/home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment