Forum: Typo Another NoMethodError - trackbacks this time

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D6f24842b973de6cb75203c4c57dfbcb?d=identicon&s=25 Gary Shewan (Guest)
on 2006-04-04 12:51
(Received via mailing list)
Here's another strange NoMethodError from my production log.
Strangely this seems to be catching because of trackbacks.  I never
have trackbacks enabled because in my opinion they're only of use to
spammers.

Doesn't seem to be trashing fcgi, but ... err ... I haven't a clue
what it's impact is.


Processing ArticlesController#trackback (for 68.142.250.70 at
2006-04-04 03:39:08) [GET]
   Parameters: {"action"=>"trackback", "id"=>"1055",
"controller"=>"articles"}

NoMethodError (undefined method `has_key' for {"action"=>"trackback",
"id"=>"1569", "controller"=>"articles"}:HashWithIndifferentAccess):
     /app/controllers/articles_controller.rb:105:in `trackback'
     /app/controllers/articles_controller.rb:101:in `catch'
     /app/controllers/articles_controller.rb:101:in `trackback'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/base.rb:853:in `send'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/base.rb:853:in `perform_action_without_filters'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/filters.rb:332:in `perform_action_without_benchmark'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/benchmarking.rb:69:in `measure'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/rescue.rb:82:in `perform_action'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/base.rb:369:in `send'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/base.rb:369:in
`process_without_session_management_support'
     /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/session_management.rb:116:in `process'
     /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in
`dispatch'
     /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:
141:in `process_request'
     /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:
53:in `process!'
     /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:
52:in `each_cgi'
     /usr/lib/ruby/1.8/fcgi.rb:597:in `each'
     /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'
     /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:
52:in `process!'
     /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:
22:in `process!'
     dispatch.fcgi:24

Cheers
6451ee8093c9cedc94f6c813b4dde2c5?d=identicon&s=25 Kevin Ballard (Guest)
on 2006-04-04 14:03
(Received via mailing list)
Huh, there's actually a bug in the code there. Apparently we don't
have a test for that action. I'll write a test, then fix the  bug.
6451ee8093c9cedc94f6c813b4dde2c5?d=identicon&s=25 Kevin Ballard (Guest)
on 2006-04-04 15:11
(Received via mailing list)
Ok, fixed in r996. There was actually several problems with receiving
trackback pings and this has been fixed. There's also now a test for it.
D6f24842b973de6cb75203c4c57dfbcb?d=identicon&s=25 Gary Shewan (Guest)
on 2006-04-04 15:23
(Received via mailing list)
On 4 Apr 2006, at 14:06, Kevin Ballard wrote:

>>
>>> Here's another strange NoMethodError from my production log.
>>> Strangely this seems to be catching because of trackbacks.  I never
>>> have trackbacks enabled because in my opinion they're only of use to
>>> spammers.

Cheers Kevin, I'm pulling down r996 now
D6f24842b973de6cb75203c4c57dfbcb?d=identicon&s=25 Gary Shewan (Guest)
on 2006-04-04 18:15
(Received via mailing list)
On 4 Apr 2006, at 14:06, Kevin Ballard wrote:

>>
>>> Here's another strange NoMethodError from my production log.
>>> Strangely this seems to be catching because of trackbacks.  I never
>>> have trackbacks enabled because in my opinion they're only of use to
>>> spammers.

There wasn't a ticket for this Kevin, but I can confirm there's no
errors now.

For theme developers, it's worth remembering that you need to change
the RDF description ... line 10(ish) in /views/articles/read.rhtml if
you have:

     dc:description="<%=h strip_html(@article.body_html[0..255]).gsub
(/-+/, '-') %>"

to

     dc:description="<%=h strip_html(article_html(@article)
[0..255]).gsub(/-+/, '-') %>"

or it'll throw out errors.
This topic is locked and can not be replied to.