Forum: Radiant CMS MissingEndTagError

Ff2c500b4f2690c6e60d580f6b3caf78?d=identicon&s=25 David Minor (Guest)
on 2007-05-21 23:15
(Received via mailing list)
I just pushed a site to production using radiant edge and now that
I'm in production, I'm getting lots of Radius::MissingEndTagError
messages in the log.  It's only when I'm viewing the rendered site
pages (and it renders properly).  It does not give me the message
when on the admin interface.  I assume this is either a missing
radius end tag in my layout somewhere or a bug in the radius code.
Where should I be looking?  It doesn't give me a lot clues:

Radius::MissingEndTagError (end tag not found for start tag `content'):
     /vendor/radiant/vendor/radius/lib/radius.rb:424:in `pre_parse'
     /vendor/radiant/vendor/radius/lib/radius.rb:431:in
`parse_start_tag'
     /vendor/radiant/vendor/radius/lib/radius.rb:416:in `pre_parse'
     /vendor/radiant/vendor/radius/lib/radius.rb:403:in `parse'
     /vendor/radiant/app/models/page.rb:243:in `parse'
     /vendor/radiant/app/models/page.rb:248:in `parse_object'
     /vendor/radiant/app/models/page.rb:100:in `render'
     /vendor/radiant/app/models/page.rb:93:in `process'
     /vendor/radiant/app/controllers/site_controller.rb:32:in
`process_page'
     /vendor/radiant/app/controllers/site_controller.rb:38:in
`show_uncached_page'
     /vendor/radiant/app/controllers/site_controller.rb:20:in
`show_page'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
base.rb:1095:in `perform_action_without_filters'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:632:in `call_filter'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:638:in `call_filter'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:438:in `call'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:637:in `call_filter'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:638:in `call_filter'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:438:in `call'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:637:in `call_filter'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:638:in `call_filter'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:438:in `call'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:637:in `call_filter'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:619:in `perform_action_without_benchmark'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:66:in `perform_action_without_rescue'
     /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:66:in `perform_action_without_rescue'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
rescue.rb:83:in `perform_action'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
base.rb:430:in `process_without_filters'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
filters.rb:624:in `process_without_session_management_support'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
session_management.rb:114:in `process_without_test'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
test_process.rb:15:in `process'
     /vendor/radiant/vendor/rails/actionpack/lib/action_controller/
base.rb:330:in `process'
     /vendor/radiant/vendor/rails/railties/lib/dispatcher.rb:41:in
`dispatch'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/
rails.rb:73:in `process'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:
551:in `process_client'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:
550:in `process_client'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:
636:in `run'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:
636:in `run'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:
625:in `run'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:
956:in `run'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:
955:in `run'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:
127:in `run'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/
command.rb:199:in `run'
     /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:235
64ec6106aff26d6b51877c2cc8069a78?d=identicon&s=25 Sean Santry (Guest)
on 2007-05-23 05:01
(Received via mailing list)
> I just pushed a site to production using radiant edge and now that
> I'm in production, I'm getting lots of Radius::MissingEndTagError
> messages in the log.


I'd start looking in your layouts for an r:content tag that's missing
the forward slash at the end. Ie, look for

<r:content>

and replace it with

<r:content/>

If you're using page parts, it could also be something like

<r:content part="foo">

which should be

<r:content part="foo"/>

- Sean
621080472679266b8e9b81aff4800398?d=identicon&s=25 Saji Njarackalazhikam Hameed (Guest)
on 2007-05-23 05:58
(Received via mailing list)
* Sean Santry <sean@seansantry.com> [2007-05-22 22:59:30 -0400]:
> If you're using page parts, it could also be something like
>
> <r:content part="foo">
>
> which should be
>
> <r:content part="foo"/>

shouldn't this be - </r:content part="foo">

saji


>
> <r:content part="foo"/>
>
> - Sean
>
>
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

--
Saji N. Hameed

APEC Climate Center                  +82 51 668 7470
National Pension Corporation Busan Building 12F
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705      saji@apcc21.net
KOREA
64ec6106aff26d6b51877c2cc8069a78?d=identicon&s=25 Sean Santry (Guest)
on 2007-05-23 15:39
(Received via mailing list)
>> <r:content part="foo"/>
>
> shouldn't this be - </r:content part="foo">

For posterity's sake:

Nope. For empty elements (like r:content) the slash goes before the ">".

- Sean
09477c358c5897d44121a248326e16d7?d=identicon&s=25 Jim Gay (Guest)
on 2009-04-21 14:23
(Received via mailing list)
On Apr 20, 2009, at 3:15 PM, nicolas couturier wrote:

>        <li class="<r:slug/>" id="">
>          <r:link/><r:title/></r:link>
>          <ul class="<r:slug/>">
>            <r:children:each/>

You made that one self closing. The previous line should be
<r:children:each> (no slash)

>             <r:link/><r:title/></r:link>
>            </r:children:each>
>          </ul>
>        </li>
>      </r:children:each>
>    </ul>
> </r:if_url>

Also, you can just do <r:link />. It uses the title as the default text.
F75d1f17a7c5c777ac32a357399d3c03?d=identicon&s=25 Nicolas Couturier (kayros)
on 2009-04-21 16:42
(Received via mailing list)
Thx that did the trick.
have a good day, Nicolas.

2009/4/20 Jim Gay <jim@saturnflyer.com>
This topic is locked and can not be replied to.