[Radiant] Mailer and Database_Mailer Extensions
Hi List, I have been using rails for a couple of years and then radiant for a few months, so I guess I am still a newbie. I find the technology stable and this mail list helpful so thanks people! I started a new site and have got the mailer and the (superb) Aissac database mailer extension working mostly :-) but now have a problem with file attachments. Files go with the emails correctly, but if I tag them to be saved in the database, the results are not very helpful - they go into a blob field. Does anybody have ideas about a better way to store them, or tips on how to get them out of the blob field in a record and into either paperclip attachments, page attachments, or even files on the file system? thanks for any words of wisdom, David V. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] mailer extension and 0.8
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: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] FAQ Extension
Marshal Linfoot wrote: Elaborating on Mohit's suggestion... Parent Index page: div class=faqlist ol r:children:each lia href=#r:slug /r:title //a/li /r:children:each /ol /div r:children:each div class=faqitem a name=r:slug /h3r:title //h3/a r:content / /div /r:children:each Sample child page (question as the title of the page) pTo be or not to be, that is the question/p Here it is on my site: http://www.octopusgardenyoga.com/FAQ I would suggest that you use Definition Lists to display the items. So, with some CSS slimming, it would be something like this: Parent Index page: ol id=faqlist r:children:each lia href=#r:slug /r:title //a/li /r:children:each /ol dl id=faqitems r:children:each dta name=r:slug /r:title //a/dt ddr:content //dd /r:children:each /dl That way styling is a bit more straightforward. Instead of: div.faqitem a h3 {...} You have: dt {...} or dt a {...} Just a suggestion. ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] FAQ Extension
Nate, nice improvement. Thanks! On Wed, Jul 8, 2009 at 11:30 AM, NT pixeln...@gmail.com wrote: Marshal Linfoot wrote: Elaborating on Mohit's suggestion... Parent Index page: div class=faqlist ol r:children:each lia href=#r:slug /r:title //a/li /r:children:each /ol /div r:children:each div class=faqitem a name=r:slug /h3r:title //h3/a r:content / /div /r:children:each Sample child page (question as the title of the page) pTo be or not to be, that is the question/p Here it is on my site: http://www.octopusgardenyoga.com/FAQ I would suggest that you use Definition Lists to display the items. So, with some CSS slimming, it would be something like this: Parent Index page: ol id=faqlist r:children:each lia href=#r:slug /r:title //a/li /r:children:each /ol dl id=faqitems r:children:each dta name=r:slug /r:title //a/dt ddr:content //dd /r:children:each /dl That way styling is a bit more straightforward. Instead of: div.faqitem a h3 {...} You have: dt {...} or dt a {...} Just a suggestion. ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant -- marshal ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] mailer extension and 0.8
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: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] mailer extension and 0.8
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 Hokaistvan.h...@gmail.com 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 johnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
Re: [Radiant] mailer extension and 0.8
oh, and those results are the same with radiant/mailer or aissac/mailer On Wed, Jul 8, 2009 at 11:43 AM, john muhljohnm...@gmail.com 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 Hokaistvan.h...@gmail.com 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 johnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
Re: [Radiant] mailer extension and 0.8
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 johnm...@gmail.com wrote: oh, and those results are the same with radiant/mailer or aissac/mailer On Wed, Jul 8, 2009 at 11:43 AM, john muhljohnm...@gmail.com 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 Hokaistvan.h...@gmail.com 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 johnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
Re: [Radiant] mailer extension and 0.8
same error with the smtp settings in development.rb On Wed, Jul 8, 2009 at 12:01 PM, Istvan Hokaistvan.h...@gmail.com wrote: 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 johnm...@gmail.com wrote: oh, and those results are the same with radiant/mailer or aissac/mailer On Wed, Jul 8, 2009 at 11:43 AM, john muhljohnm...@gmail.com 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 Hokaistvan.h...@gmail.com 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 johnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
Re: [Radiant] mailer extension and 0.8
I created a radiant project with the code from the gist you supplied, and after putting the config.after_initialize block in development.rb worked flawlessly. So is there the possibility that the problem is not in mailer_extension? On 7/8/09 9:58 PM, john muhl wrote: same error with the smtp settings in development.rb On Wed, Jul 8, 2009 at 12:01 PM, Istvan Hokaistvan.h...@gmail.com wrote: 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 muhljohnm...@gmail.com wrote: oh, and those results are the same with radiant/mailer or aissac/mailer On Wed, Jul 8, 2009 at 11:43 AM, john muhljohnm...@gmail.com 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 Hokaistvan.h...@gmail.com 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 muhljohnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
Re: [Radiant] mailer extension and 0.8
i went down through the code and think i may have found the issue which appears to be at the radiant level. thanks again for all the help. On Wed, Jul 8, 2009 at 1:10 PM, Cristi Dumacristi.d...@aissac.ro wrote: I created a radiant project with the code from the gist you supplied, and after putting the config.after_initialize block in development.rb worked flawlessly. So is there the possibility that the problem is not in mailer_extension? On 7/8/09 9:58 PM, john muhl wrote: same error with the smtp settings in development.rb On Wed, Jul 8, 2009 at 12:01 PM, Istvan Hokaistvan.h...@gmail.com wrote: 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 muhljohnm...@gmail.com wrote: oh, and those results are the same with radiant/mailer or aissac/mailer On Wed, Jul 8, 2009 at 11:43 AM, john muhljohnm...@gmail.com 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 Hokaistvan.h...@gmail.com 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 muhljohnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
Re: [Radiant] mailer extension and 0.8
Only mentioning you fixed it, won't do any help for the Radiant community. Please inform us about the solution or bugs you have found. Thanks in advance. On Jul 8, 2009, at 9:51 PM, john muhl wrote: i went down through the code and think i may have found the issue which appears to be at the radiant level. thanks again for all the help. On Wed, Jul 8, 2009 at 1:10 PM, Cristi Dumacristi.d...@aissac.ro wrote: I created a radiant project with the code from the gist you supplied, and after putting the config.after_initialize block in development.rb worked flawlessly. So is there the possibility that the problem is not in mailer_extension? On 7/8/09 9:58 PM, john muhl wrote: same error with the smtp settings in development.rb On Wed, Jul 8, 2009 at 12:01 PM, Istvan Hokaistvan.h...@gmail.com wrote: 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 muhljohnm...@gmail.com wrote: oh, and those results are the same with radiant/mailer or aissac/ mailer On Wed, Jul 8, 2009 at 11:43 AM, john muhljohnm...@gmail.com 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 Hokaistvan.h...@gmail.com 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 muhljohnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
Re: [Radiant] mailer extension and 0.8
yes, of course. i'm just not convinced it's the proper fix, it just happened to be the most expedient one. here is the diff for the curious: diff --git a/lib/radiant/cache.rb b/lib/radiant/cache.rb index a82..2e16de9 100644 --- a/lib/radiant/cache.rb +++ b/lib/radiant/cache.rb @@ -48,7 +48,7 @@ module Radiant end private - def restore_response(hash, body) + def restore_response(hash, body=nil) # Cribbed from the Rack::Cache source status = hash.delete('X-Status').to_i response = Rack::Cache::Response.new(status, hash, body) On Wed, Jul 8, 2009 at 1:56 PM, Victor Elsendoornelsendo...@w3craft.nl wrote: Only mentioning you fixed it, won't do any help for the Radiant community. Please inform us about the solution or bugs you have found. Thanks in advance. On Jul 8, 2009, at 9:51 PM, john muhl wrote: i went down through the code and think i may have found the issue which appears to be at the radiant level. thanks again for all the help. On Wed, Jul 8, 2009 at 1:10 PM, Cristi Dumacristi.d...@aissac.ro wrote: I created a radiant project with the code from the gist you supplied, and after putting the config.after_initialize block in development.rb worked flawlessly. So is there the possibility that the problem is not in mailer_extension? On 7/8/09 9:58 PM, john muhl wrote: same error with the smtp settings in development.rb On Wed, Jul 8, 2009 at 12:01 PM, Istvan Hokaistvan.h...@gmail.com wrote: 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 muhljohnm...@gmail.com wrote: oh, and those results are the same with radiant/mailer or aissac/mailer On Wed, Jul 8, 2009 at 11:43 AM, john muhljohnm...@gmail.com 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 Hokaistvan.h...@gmail.com 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 muhljohnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
Re: [Radiant] mailer extension and 0.8
the issue seems to have resolved itself with radiant edge. On Wed, Jul 8, 2009 at 2:20 PM, john muhljohnm...@gmail.com wrote: yes, of course. i'm just not convinced it's the proper fix, it just happened to be the most expedient one. here is the diff for the curious: diff --git a/lib/radiant/cache.rb b/lib/radiant/cache.rb index a82..2e16de9 100644 --- a/lib/radiant/cache.rb +++ b/lib/radiant/cache.rb @@ -48,7 +48,7 @@ module Radiant end private - def restore_response(hash, body) + def restore_response(hash, body=nil) # Cribbed from the Rack::Cache source status = hash.delete('X-Status').to_i response = Rack::Cache::Response.new(status, hash, body) On Wed, Jul 8, 2009 at 1:56 PM, Victor Elsendoornelsendo...@w3craft.nl wrote: Only mentioning you fixed it, won't do any help for the Radiant community. Please inform us about the solution or bugs you have found. Thanks in advance. On Jul 8, 2009, at 9:51 PM, john muhl wrote: i went down through the code and think i may have found the issue which appears to be at the radiant level. thanks again for all the help. On Wed, Jul 8, 2009 at 1:10 PM, Cristi Dumacristi.d...@aissac.ro wrote: I created a radiant project with the code from the gist you supplied, and after putting the config.after_initialize block in development.rb worked flawlessly. So is there the possibility that the problem is not in mailer_extension? On 7/8/09 9:58 PM, john muhl wrote: same error with the smtp settings in development.rb On Wed, Jul 8, 2009 at 12:01 PM, Istvan Hokaistvan.h...@gmail.com wrote: 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 muhljohnm...@gmail.com wrote: oh, and those results are the same with radiant/mailer or aissac/mailer On Wed, Jul 8, 2009 at 11:43 AM, john muhljohnm...@gmail.com 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 Hokaistvan.h...@gmail.com 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 muhljohnm...@gmail.com wrote: thanks but it gives the same error. On Wed, Jul 8, 2009 at 10:02 AM, Cristi Dumacristi.d...@aissac.ro 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'
[Radiant] How exactly is this RSS feed thing supposed to work?
I have modified the default RSS Feed page to snag content from the from the children of the Tanji's Tanjents page (it's a blog), and the feed name is pulled from the feed properly, but I never get any content from the feed. I have no idea what is going wrong. The XML layout is the same as always, and this is what I have on the RSS Feed page: ?xml version=1.0 encoding=UTF-8? rss version=2.0 xmlns:dc=http://purl.org/dc/elements/1.1/; channel titleTanji's Tanjents/title linkhttp://goodtastewithtanji.comr:url //link languageen-us/language ttl40/ttl descriptionWine, food and fun with Tanji Patton./description r:find url=^/tanjis-tanjents r:children:each limit=10 order=desc item titler:title //title descriptionr:escape_htmlr:content //r:escape_html/description pubDater:rfc1123_date //pubDate guidhttp://goodtastewithtanji.comr:url //guid linkhttp://goodtastewithtanji.comr:url //link /item /r:children:each /r:find /channel /rss Does anything jump out as being incorrect to anybody? I have gone cross-eyed staring down this content on the screen. ~N ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] How exactly is this RSS feed thing supposed to work?
r:find takes an actual URL path, not a regex. Remove the ^ from the front of the url attribute. Sean NT wrote: I have modified the default RSS Feed page to snag content from the from the children of the Tanji's Tanjents page (it's a blog), and the feed name is pulled from the feed properly, but I never get any content from the feed. I have no idea what is going wrong. The XML layout is the same as always, and this is what I have on the RSS Feed page: ?xml version=1.0 encoding=UTF-8? rss version=2.0 xmlns:dc=http://purl.org/dc/elements/1.1/; channel titleTanji's Tanjents/title linkhttp://goodtastewithtanji.comr:url //link languageen-us/language ttl40/ttl descriptionWine, food and fun with Tanji Patton./description r:find url=^/tanjis-tanjents r:children:each limit=10 order=desc item titler:title //title descriptionr:escape_htmlr:content //r:escape_html/description pubDater:rfc1123_date //pubDate guidhttp://goodtastewithtanji.comr:url //guid linkhttp://goodtastewithtanji.comr:url //link /item /r:children:each /r:find /channel /rss Does anything jump out as being incorrect to anybody? I have gone cross-eyed staring down this content on the screen. ~N ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant