Our Autumn Sale is on! Join now or renew your subscription with 25% OFF! Read More

Support Forum

Twig_Error_Syntax

Hi,

I have installed Paradise Quickstart package on my mac using MAMP.
But im getting this error:

Twig_Error_Syntax thrown with message "An exception has been thrown during the compilation of a template ("Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`") in "index.html.twig"."

Stacktrace:
#43 Twig_Error_Syntax in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:779
#42 Whoops\Exception\ErrorException in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Node.php:42
#41 Whoops\Run:handleError in /Applications/MAMP/htdocs/thepines/libraries/gantry5/classes/Gantry/Component/Whoops/SystemFacade.php:107
#40 Gantry\Component\Whoops\SystemFacade:handleError in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:444
#39 include in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:444
#38 Composer\Autoload\includeFile in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:322
#37 Composer\Autoload\ClassLoader:loadClass in [internal]:0
#36 spl_autoload_call in [internal]:0
#35 class_exists in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Parser.php:411
#34 include in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:444
#33 Composer\Autoload\includeFile in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:322
#32 Composer\Autoload\ClassLoader:loadClass in [internal]:0
#31 spl_autoload_call in [internal]:0
#30 class_exists in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/TokenParserInterface.php:42
#29 include in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:444
#28 Composer\Autoload\includeFile in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:322
#27 Composer\Autoload\ClassLoader:loadClass in [internal]:0
#26 spl_autoload_call in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/TokenParser.php:17
#25 include in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:444
#24 Composer\Autoload\includeFile in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:322
#23 Composer\Autoload\ClassLoader:loadClass in [internal]:0
#22 spl_autoload_call in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/TokenParser/For.php:26
#21 include in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:444
#20 Composer\Autoload\includeFile in /Applications/MAMP/htdocs/thepines/libraries/vendor/composer/ClassLoader.php:322
#19 Composer\Autoload\ClassLoader:loadClass in [internal]:0
#18 spl_autoload_call in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Extension/Core.php:123
#17 Twig_Extension_Core:getTokenParsers in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:1546
#16 Twig_Environment:initExtension in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:1500
#15 Twig_Environment:initExtensions in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:1422
#14 Twig_Environment:getUnaryOperators in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Lexer.php:385
#13 Twig_Lexer:getOperatorRegex in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Lexer.php:68
#12 Twig_Lexer:__construct in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:674
#11 Twig_Environment:tokenize in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:774
#10 Twig_Environment:compileSource in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:452
#9 Twig_Environment:loadTemplate in /Applications/MAMP/htdocs/thepines/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:363
#8 Twig_Environment:render in /Applications/MAMP/htdocs/thepines/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php:163
#7 Gantry\Component\Theme\AbstractTheme:render in /Applications/MAMP/htdocs/thepines/templates/it_paradise/index.php:28
#6 require in /Applications/MAMP/htdocs/thepines/libraries/src/Document/HtmlDocument.php:658
#5 Joomla\CMS\Document\HtmlDocument:_loadTemplate in /Applications/MAMP/htdocs/thepines/libraries/src/Document/HtmlDocument.php:720
#4 Joomla\CMS\Document\HtmlDocument:_fetchTemplate in /Applications/MAMP/htdocs/thepines/libraries/src/Document/HtmlDocument.php:535
#3 Joomla\CMS\Document\HtmlDocument:parse in /Applications/MAMP/htdocs/thepines/libraries/src/Application/CMSApplication.php:1030
#2 Joomla\CMS\Application\CMSApplication:render in /Applications/MAMP/htdocs/thepines/libraries/src/Application/SiteApplication.php:778
#1 Joomla\CMS\Application\SiteApplication:render in /Applications/MAMP/htdocs/thepines/libraries/src/Application/CMSApplication.php:202
#0 Joomla\CMS\Application\CMSApplication:execute in /Applications/MAMP/htdocs/thepines/index.php:49
Responses (4)
Sorry, but you are not allowed to view the replies here.
Your Reply

Become an insider | Subscribe to our Newsletter
Subscribe to our mailing list and stay up-to-date with all our awesome releases, latest updates and amazing discount offers!