This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

stevewi9414
stevewi9414

I was able to solve my update problems and got the update installed. Now, after running through a few pages, I get the following error on a couple of them:

An exception has been thrown during the compilation of a template ("Undefined variable: lineno").
/Users/stevewi/projects/web/site/portlandscottishrite.org/www/themes/pvsr/pages/cap-frame.htm line -2

Where the hell is line -2? The template in question is as follows:

url = "/frame/cap"
is_hidden = "0"
layout = "frame-layout"
===

{% placeholder frametitle text=get('nm') %}

{% placeholder framebody subdir=this.page.url dir=get('color') %}

This was working fine before the update.

-- sw

stevewi9414
stevewi9414

The problem seems to be the placeholders. Replacing the placeholders in this page with the code in these placeholders (and appropriate {% set ... %} directives for the parameters to the placeholders) makes the page work.

-- sw

stevewi9414
stevewi9414

I have a feeling that my placeholders are not coded right and I was bitten by caching. My placeholders are coded as

{% put  frametitle  %}
<code here>
{% endput %}

The examples show placeholders with and without header information:

url = "<some url>"
layout = "<some layout>"
...
===
<code here>

My placeholders are coded without header information. Which is correct?

-- sw

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.