Could you try moving the contents of your config.after_initialize block to development.rb or production.rb? -- Istvan Hoka
On Wed, Jul 8, 2009 at 8:47 PM, john muhl <[email protected]> wrote: > oh, and those results are the same with radiant/mailer or aissac/mailer > > On Wed, Jul 8, 2009 at 11:43 AM, john muhl<[email protected]> wrote: > > this is running locally in the development environment. i've tested > > with webrick, mongrel, thin and passenger and they all have the same > > error message until you get to server specific part. the test site is > > the styled blog with only the mailer extension added. all the page > > parts and environment.rb are here: http://gist.github.com/142995 - i > > also have mailer.post_to_page? = true set. > > > > just to make sure it wasn't inherent in the system i setup a styled > > blog with 0.7.1 installed mailer, used the same parts and smtp > > settings and was able to send mail on all 4 servers. > > > > thanks for help. > > > > On Wed, Jul 8, 2009 at 10:49 AM, Istvan Hoka<[email protected]> > wrote: > >> John, it looks like you are getting this on your production machine > where > >> you are using Thin. Could you test with Passenger or Mongrel, perhaps > >> locally and see if you get the same error? > >> Also, could you provide some more context? For instance, are you trying > to > >> attach a file or is it a simple form you are mailing? > >> > >> Cheers! > >> -- > >> Istvan Hoka > >> > >> > >> On Wed, Jul 8, 2009 at 7:34 PM, john muhl <[email protected]> wrote: > >> > >>> thanks but it gives the same error. > >>> > >>> On Wed, Jul 8, 2009 at 10:02 AM, Cristi Duma<[email protected]> > wrote: > >>> > Hi John, > >>> > > >>> > I'm playing with it right now, tried some fixes, features and stuff > >>> > > >>> > It works for me on a site I'm currently developing > >>> > > >>> > Check it out: > >>> http://github.com/Aissac/radiant-mailer-extension/tree/master > >>> > > >>> > On 7/8/09 6:05 PM, john muhl wrote: > >>> >> > >>> >> has anyone successfully used mailer on 0.8? whenever i try to send > >>> >> mail i get a 500 error page and the following: > >>> >> > >>> >> SQL (1.2ms) SELECT name > >>> >> FROM sqlite_master > >>> >> WHERE type = 'table' AND NOT name = 'sqlite_sequence' > >>> >> > >>> >> SQL (1.9ms) SELECT DISTINCT class_name FROM pages WHERE > class_name > >>> >> <> '' AND class_name IS NOT NULL > >>> >> /!\ FAILSAFE /!\ Wed Jul 08 09:01:58 -0600 2009 > >>> >> Status: 500 Internal Server Error > >>> >> wrong number of arguments (1 for 2) > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rack-cache/lib/rack/cache/metastore.rb:94:in > >>> >> `restore_response' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rack-cache/lib/rack/cache/metastore.rb:94:in > >>> >> `invalidate' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rack-cache/lib/rack/cache/metastore.rb:93:in > >>> >> `map' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rack-cache/lib/rack/cache/metastore.rb:93:in > >>> >> `invalidate' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:137:in > >>> >> `invalidate' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:69:in > >>> >> `call!' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:50:in > >>> >> `call' > >>> >> /opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in > >>> >> `call' > >>> >> > >>> >> > >>> > /opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in > >>> >> `call' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in > >>> >> `call' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:25:in > >>> >> `call' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in > >>> >> `call' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/reloader.rb:9:in > >>> >> `call' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/failsafe.rb:11:in > >>> >> `call' > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in > >>> >> `call' > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in > >>> >> `synchronize' > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in > >>> >> `call' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in > >>> >> `call' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:44:in > >>> >> `dispatch_cgi' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:102:in > >>> >> `dispatch_cgi' > >>> >> > >>> >> > >>> > /private/tmp/mailer/vendor/radiant/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:28:in > >>> >> `dispatch' > >>> >> > >>> >> > >>> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/rack/adapter/rails.rb:81:in > >>> >> `call' > >>> >> > >>> >> > >>> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/rack/adapter/rails.rb:69:in > >>> >> `call' > >>> >> > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/connection.rb:76:in > >>> >> `pre_process' > >>> >> > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/connection.rb:74:in > >>> >> `catch' > >>> >> > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/connection.rb:74:in > >>> >> `pre_process' > >>> >> > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/connection.rb:57:in > >>> >> `process' > >>> >> > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/connection.rb:42:in > >>> >> `receive_data' > >>> >> > >>> >> > >>> > /opt/ree/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in > >>> >> `run_machine' > >>> >> > >>> >> > >>> > /opt/ree/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in > >>> >> `run' > >>> >> > >>> >> > >>> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/backends/base.rb:57:in > >>> >> `start' > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/server.rb:156:in > >>> >> `start' > >>> >> > >>> >> > >>> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/controllers/controller.rb:80:in > >>> >> `start' > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/runner.rb:174:in > >>> >> `send' > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/runner.rb:174:in > >>> >> `run_command' > >>> >> > /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/runner.rb:140:in > >>> >> `run!' > >>> >> /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.2/bin/thin:6 > >>> >> /opt/ree/bin/thin:19:in `load' > >>> >> /opt/ree/bin/thin:19 > >>> >> _______________________________________________ > >>> >> Radiant mailing list > >>> >> Post: [email protected] > >>> >> Search: http://radiantcms.org/mailing-list/search/ > >>> >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant > >>> >> > >>> > > >>> > _______________________________________________ > >>> > Radiant mailing list > >>> > Post: [email protected] > >>> > Search: http://radiantcms.org/mailing-list/search/ > >>> > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > >>> > > >>> _______________________________________________ > >>> Radiant mailing list > >>> Post: [email protected] > >>> Search: http://radiantcms.org/mailing-list/search/ > >>> Site: http://lists.radiantcms.org/mailman/listinfo/radiant > >>> > >> _______________________________________________ > >> Radiant mailing list > >> Post: [email protected] > >> Search: http://radiantcms.org/mailing-list/search/ > >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant > >> > > > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
