MissingEndTagError


#1

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:inpre_parse’
/vendor/radiant/vendor/radius/lib/radius.rb:431:in
parse_start_tag' /vendor/radiant/vendor/radius/lib/radius.rb:416:inpre_parse’
/vendor/radiant/vendor/radius/lib/radius.rb:403:in parse' /vendor/radiant/app/models/page.rb:243:inparse’
/vendor/radiant/app/models/page.rb:248:in parse_object' /vendor/radiant/app/models/page.rb:100:inrender’
/vendor/radiant/app/models/page.rb:93:in process' /vendor/radiant/app/controllers/site_controller.rb:32:inprocess_page’
/vendor/radiant/app/controllers/site_controller.rb:38:in
show_uncached_page' /vendor/radiant/app/controllers/site_controller.rb:20:inshow_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:incall_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:incall’
/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:incall_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:incall_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:incall’
/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:inperform_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:inmeasure’
/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:inperform_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:inprocess_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:inprocess’
/vendor/radiant/vendor/rails/actionpack/lib/action_controller/
base.rb:330:in process' /vendor/radiant/vendor/rails/railties/lib/dispatcher.rb:41:indispatch’
/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:inprocess_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:inrun’
/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:inrun’
/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:inrun’
/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:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:235


#2

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

#3

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: removed_email_address@domain.invalid
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 removed_email_address@domain.invalid
KOREA


#4

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>

Also, you can just do <r:link />. It uses the title as the default text.


#5

Thx that did the trick.
have a good day, Nicolas.

2009/4/20 Jim G. removed_email_address@domain.invalid


#6

<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