Google Groups Home
Help | Sign in
Drax Problem - wrong number of arguments (2 for 1)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Dave  
View profile
 More options Jul 5, 5:45 am
From: Dave <diend...@gmail.com>
Date: Sat, 5 Jul 2008 02:45:03 -0700 (PDT)
Local: Sat, Jul 5 2008 5:45 am
Subject: Drax Problem - wrong number of arguments (2 for 1)
Hi all,

I did a fresh install of Mephisto 0.8 (git clone) on my personal
server, and I get an error when I bring up the site. Here's the log:

# Logfile created on Sat Jul 05 02:40:55 -0700 2008

Processing ApplicationController#index (for 192.168.0.10 at 2008-07-05
02:41:06) [GET]
  Session ID:
BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
%0ASGFzaHsABjoKQHVzZWR7AA%3D
%3D--4df2fcfcc51888066cb9f25c32b79a57ead66b4e
  Parameters: {}

ArgumentError (wrong number of arguments (2 for 1)):
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
observer.rb:169:in `respond_to?'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
observer.rb:169:in `flatten'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
observer.rb:169:in `observed_classes'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
observer.rb:152:in `initialize'
    /usr/lib/ruby/1.8/singleton.rb:95:in `new'
    /usr/lib/ruby/1.8/singleton.rb:95:in `instance'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
observer.rb:38:in `instantiate_observers'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
observer.rb:36:in `each'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
observer.rb:36:in `instantiate_observers'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:105
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:179:in `call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:179:in `run_callbacks'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:175:in `each'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:175:in `send!'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:175:in `run_callbacks'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:149:in `prepare_application'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:178:in `send!'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:178:in `run_callbacks'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:175:in `each'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:175:in `send!'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:175:in `run_callbacks'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:114:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:126:in `dispatch_cgi'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
dispatcher.rb:9:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
112:in `handle_dispatch'
    /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
78:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
62:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/
webrick.rb:66
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:496:in `require'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:342:in `new_constants_in'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:496:in `require'
    /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
    script/server:3

Rendering /media/files/playground/mephisto/public/500.html
(internal_server_error)

I saw a post by tassock with a similar problem, but it got hijacked. I
also saw other posts where wrong arguments happened to be bad rake
versions, but I don't think that's the case in my situation. Here are
my gems:

*** LOCAL GEMS ***

actionmailer (2.1.0, 2.0.2)
actionpack (2.1.0, 2.0.2)
activerecord (2.1.0, 2.0.2)
activeresource (2.1.0, 2.0.2)
activesupport (2.1.0, 2.0.2)
fcgi (0.8.7)
mysql (2.7)
rails (2.1.0, 2.0.2)
rake (0.8.1)
rspec (1.1.4)
tzinfo (0.3.9, 0.3.5)
will_paginate (2.2.2)

And just for kicks, my script/about:

About your application's environment
Ruby version              1.8.7 (i686-linux)
RubyGems version          1.1.1
Rails version             2.0.2
Active Record version     2.0.2
Action Pack version       2.0.2
Active Resource version   2.0.2
Action Mailer version     2.0.2
Active Support version    2.0.2
Application root          /media/files/playground/mephisto
Environment               development
Database adapter          mysql
Database schema version   76

Thanks for any help.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rick Olson  
View profile
 More options Jul 5, 12:31 pm
From: "Rick Olson" <technowee...@gmail.com>
Date: Sat, 5 Jul 2008 09:31:29 -0700
Local: Sat, Jul 5 2008 12:31 pm
Subject: Re: [Mephisto] Drax Problem - wrong number of arguments (2 for 1)
On 7/5/08, Dave <diend...@gmail.com> wrote:

I don't know.  My observer.rb line 169 for ActiveRecord 2.0.2 doesn't
have respond_to?.  I don't see any instances of respond_to? with two
parameters.  According to the ruby core docs, #respond_to? takes two
arguments.  Maybe it has to do with ruby 1.8.7?  I've heard it breaks
a lot of weird stuff.

--
Rick Olson
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave  
View profile
 More options Jul 5, 3:44 pm
From: Dave <diend...@gmail.com>
Date: Sat, 5 Jul 2008 12:44:21 -0700 (PDT)
Local: Sat, Jul 5 2008 3:44 pm
Subject: Re: Drax Problem - wrong number of arguments (2 for 1)
First, thanks for everything, Rick :) For Mephisto and the reply. It's
just what I needed. My observer.rb also did not have a 'respond_to?'
instance. Downgraded to 1.8.6 and that fixed the problem.

So, doing a search for the problem, I saw a patch on this page (http://
www.nabble.com/Sup-won't-start-after-upgrade-to-ruby-1.8.7-td17621104...).
I haven't tried it out yet, but thought it'd be helpful to post.

BTW, I was looking for development information (help Mephisto reach
2.1.0), but I couldn't find anything. How exactly would I help
contribute to the project with source code? Thanks again.

On 5 Jul, 09:31, "Rick Olson" <technowee...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google