Re: [Radiant] (stack level too deep) on admin pages
That's helpful, but not entirely accurate. I encountered this problem in development mode when an extension that uses alias_method_chain gets reloaded but its previous amc was not removed from the class. Thus you get it aliasing the method over and over. In most cases I was able to run in production mode locally, which removed the problem. Sean Nicholas Henry wrote: Hello James: The issue is not specifically Radiant, but more to do with how your Ruby installation has been compiled: http://stackoverflow.com/questions/242617/how-to-increase-stack-size-for-a-ruby-app-recursive-app-getting-stack-level-too Admittedly, my solution to the problem was to install Ruby Enterprise Edition and all was well. HTH, Nicholas On Thu, Oct 29, 2009 at 12:08 PM, James Smith james.sm...@m247.com wrote: Hi, Radiant 0.8.1 is installed, rails 2.3.4, ruby 1.8 running with mongrel. The main site itself works, with all the content in place etc. But once I log into the admin pages, I receive a stack level too deep error and I'm totally lost with it. It was working until a Radiant update was completed. Full error: Processing Admin::PagesController#index (for 89.238.157.212 at 2009-10-29 15:27:21) [GET] Parameters: {action=index, controller=admin/pages} Rendering template within layouts/application Rendering admin/pages/index ActionView::TemplateError (stack level too deep) on line #1 of /usr/local/lib/ruby/gems/1.8/gems/radiant-0.8.1/app/views/admin/pages/_node.html.haml: 1: %tr.node{:id = page-#{page.id}, :class =level-#{level}#{children_class}#{virtual_class}} 2: - render_region :node, :locals = {:page = page, :level = level, :simple = simple} do |node| 3: - node.title_column do 4: %td.page{:style = padding-left: #{padding_left(level)}px} (eval):3:in `all_hashes' (eval):3:in `each_hash' (eval):3:in `all_hashes' radiant (0.8.1) app/helpers/admin/node_helper.rb:38:in `children_class' radiant (0.8.1) app/views/admin/pages/_node.html.haml:1:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/_node.html.haml:25:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) app/views/admin/pages/_node.html.haml:24:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/index.html.haml:19:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47index46html46haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) lib/radiant/resource_responses.rb:18:in `response_for' radiant (0.8.1) app/controllers/admin/pages_controller.rb:16:in `index' radiant (0.8.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process' Rendering /usr/home/prime/public_html/radiant/public/500.html (500 Internal Server Error) Regards, James Smith, UH Hosting, a division of M247 Ltd www.uh-hosting.co.ukhttp://www.uh-hosting.co.uk/ Phone: +44 (0) 1618 500 8945 Mobile: +44 (0) 7745 137 724 Registered in England and Wales Company Number 04968341 Registered and Postal address: 1 Ball Green, Cobra Court, Stretford, Manchester M32 0QT ___ 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 ___ Radiant mailing list Post: Radiant@radiantcms.org Search:
[Radiant] (stack level too deep) on admin pages
Hi, Radiant 0.8.1 is installed, rails 2.3.4, ruby 1.8 running with mongrel. The main site itself works, with all the content in place etc. But once I log into the admin pages, I receive a stack level too deep error and I'm totally lost with it. It was working until a Radiant update was completed. Full error: Processing Admin::PagesController#index (for 89.238.157.212 at 2009-10-29 15:27:21) [GET] Parameters: {action=index, controller=admin/pages} Rendering template within layouts/application Rendering admin/pages/index ActionView::TemplateError (stack level too deep) on line #1 of /usr/local/lib/ruby/gems/1.8/gems/radiant-0.8.1/app/views/admin/pages/_node.html.haml: 1: %tr.node{:id = page-#{page.id}, :class =level-#{level}#{children_class}#{virtual_class}} 2: - render_region :node, :locals = {:page = page, :level = level, :simple = simple} do |node| 3: - node.title_column do 4: %td.page{:style = padding-left: #{padding_left(level)}px} (eval):3:in `all_hashes' (eval):3:in `each_hash' (eval):3:in `all_hashes' radiant (0.8.1) app/helpers/admin/node_helper.rb:38:in `children_class' radiant (0.8.1) app/views/admin/pages/_node.html.haml:1:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/_node.html.haml:25:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) app/views/admin/pages/_node.html.haml:24:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/index.html.haml:19:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47index46html46haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) lib/radiant/resource_responses.rb:18:in `response_for' radiant (0.8.1) app/controllers/admin/pages_controller.rb:16:in `index' radiant (0.8.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process' Rendering /usr/home/prime/public_html/radiant/public/500.html (500 Internal Server Error) Regards, James Smith, UH Hosting, a division of M247 Ltd www.uh-hosting.co.ukhttp://www.uh-hosting.co.uk/ Phone: +44 (0) 1618 500 8945 Mobile: +44 (0) 7745 137 724 Registered in England and Wales Company Number 04968341 Registered and Postal address: 1 Ball Green, Cobra Court, Stretford, Manchester M32 0QT ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] (stack level too deep) on admin pages
Hello James: The issue is not specifically Radiant, but more to do with how your Ruby installation has been compiled: http://stackoverflow.com/questions/242617/how-to-increase-stack-size-for-a-ruby-app-recursive-app-getting-stack-level-too Admittedly, my solution to the problem was to install Ruby Enterprise Edition and all was well. HTH, Nicholas On Thu, Oct 29, 2009 at 12:08 PM, James Smith james.sm...@m247.com wrote: Hi, Radiant 0.8.1 is installed, rails 2.3.4, ruby 1.8 running with mongrel. The main site itself works, with all the content in place etc. But once I log into the admin pages, I receive a stack level too deep error and I'm totally lost with it. It was working until a Radiant update was completed. Full error: Processing Admin::PagesController#index (for 89.238.157.212 at 2009-10-29 15:27:21) [GET] Parameters: {action=index, controller=admin/pages} Rendering template within layouts/application Rendering admin/pages/index ActionView::TemplateError (stack level too deep) on line #1 of /usr/local/lib/ruby/gems/1.8/gems/radiant-0.8.1/app/views/admin/pages/_node.html.haml: 1: %tr.node{:id = page-#{page.id}, :class =level-#{level}#{children_class}#{virtual_class}} 2: - render_region :node, :locals = {:page = page, :level = level, :simple = simple} do |node| 3: - node.title_column do 4: %td.page{:style = padding-left: #{padding_left(level)}px} (eval):3:in `all_hashes' (eval):3:in `each_hash' (eval):3:in `all_hashes' radiant (0.8.1) app/helpers/admin/node_helper.rb:38:in `children_class' radiant (0.8.1) app/views/admin/pages/_node.html.haml:1:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/_node.html.haml:25:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) app/views/admin/pages/_node.html.haml:24:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/index.html.haml:19:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47index46html46haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) lib/radiant/resource_responses.rb:18:in `response_for' radiant (0.8.1) app/controllers/admin/pages_controller.rb:16:in `index' radiant (0.8.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process' Rendering /usr/home/prime/public_html/radiant/public/500.html (500 Internal Server Error) Regards, James Smith, UH Hosting, a division of M247 Ltd www.uh-hosting.co.ukhttp://www.uh-hosting.co.uk/ Phone: +44 (0) 1618 500 8945 Mobile: +44 (0) 7745 137 724 Registered in England and Wales Company Number 04968341 Registered and Postal address: 1 Ball Green, Cobra Court, Stretford, Manchester M32 0QT ___ 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