We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Exception using Expresso field in a grid as a Low Variable in a Layout ... (yeah, i know...)

Development and Programming

bigbytes's avatar
bigbytes
16 posts
6 years ago
bigbytes's avatar bigbytes

Hello World!

I’ve a strange problem and hope, that one of you can give me a hint how to solve this.

My result:

Exception Caught
No such property: 'typography' on EllisLab\ExpressionEngine\Legacy\Facade
ee/EllisLab/ExpressionEngine/Legacy/Facade.php:119

See https://dumptext.com/5HwVQnRC for complete stack trace.

I’ve reproduced this on 2 different sites. The culprit SEEMS to be a Low Variables & Expresso-field variable … I just don’t get why and how and…

The site has a main.html layout. The site has a sub.html partial layout that loads the main layout. The template that throws the error looks like this:

{layout="_layouts/_sub"}
{layout:set name="title" value="Thank You!"}

   <div class="container mb-5">
      <div class="row">
         <div class="col-12">
            Thank You!
               <a href="http://{site_url}" title="Home">Home</a>
         </div>
      </div>
   </div>

The _sub-Layout sets {layout="_layouts/_main"} as layout. In the main-layout there’s

{exp:low_variables:pair var="footer_contact"}
      <div class="col-12 text-center col-md-6 text-md-left col-xl-4 pb-3">
         {footer_contact:content}
      </div>   
   {/exp:low_variables:pair}

The strange thing is: It works.

It works on index pages where I loop some channel content (i.e. news), it works on entry pages that display a single entry … it JUST does not work on pages where no channel content is requested. In this case as “Thank You”-page that is displayed when someone submits a form.

When i add

{exp:channel:entries channel="news"}
{/exp:channel:entries}

to this page, without putting out anything… it works. (That’s my quick-fix for now…)

(Also: When i change the field from Expresso to a simple text input, everything works.)

So, my question for people much smarter than me: What does the channel loop do that could possibly cause this exception to not be thrown in this case? Because I am feeling kinda stupid atm … :D

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.