A NoMethodError Exception occurred in templates#popup_feature
Reported by atmorell | October 5th, 2010 @ 05:00 AM
Hey,
I have added a blog to my page and created a new user with the editor permissions. Further more permissions on the blog modules has been updated, so that editors can add new post etc. This is working fine from the backend, but I can't get it working from the front end.
The paragraph "User Blog Write Post" renders nothing at all. If I set up a page connection the blog modules Webiva crashes.
User Blog Write Post: Blog target: [Active User - User] >> Blog Target
A NoMethodError Exception occurred in templates#popup_feature
undefined method target' for nil:NilClass
[RAILS_ROOT]/vendor/modules/blog/app/controllers/blog/edit_renderer.rb:76:in
write'
- URL: http://www.mywebiva.com/website/templates/popup_feature/1?para_inde...
- Parameters: {"paragraph_id"=>"100", "action"=>"popup_feature", "authenticity_token"=>"6TQOwkb9Q1OMKccmGIjA6PnhV3s6u0l0X21gxTKMzsw=", "feature_id"=>"1", "path"=>["1"], "controller"=>"templates", "para_index"=>"5"}
- Rails root: /mnt/hgfs/Websider/Webiva
- User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; da; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10* Process: 30217
- Server : ubuntu
[RAILS_ROOT]/vendor/modules/blog/app/controllers/blog/edit_renderer.rb:76:in
write'
[RAILS_ROOT]/lib/site_node_engine.rb:187:in
send'
[RAILS_ROOT]/lib/site_node_engine.rb:187:in
render_module_paragraph'
[RAILS_ROOT]/lib/site_node_engine.rb:150:in
compile_paragraph'
[RAILS_ROOT]/lib/site_node_engine.rb:601:in run_paragraph'
[RAILS_ROOT]/app/controllers/templates_controller.rb:439:in
popup_feature'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in
send'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in
perform_action_without_filters'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
call_filters'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
perform_action_without_benchmark'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue'
[RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime'
[RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
ms'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in
perform_action_without_flash'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in
perform_action'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:532:in
send'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:532:in
process_without_filters'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
process'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:391:in
process'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:386:in
call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in
call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in
dispatch'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in
_call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in
call'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in
call'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
cache'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in
cache'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in
call'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
call' /usr/lib/ruby/1.8/rack/head.rb:9:in
call'
/usr/lib/ruby/1.8/rack/methodoverride.rb:24:in call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in
call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:122:in
call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in
call'
/usr/lib/ruby/1.8/rack/lock.rb:11:in call'
/usr/lib/ruby/1.8/rack/lock.rb:11:in
synchronize'
/usr/lib/ruby/1.8/rack/lock.rb:11:in call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in
call'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in
process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in
main_loop'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:441:in
start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:381:in
handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:252:in
safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:377:in
handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in
start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in
start'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:222:in
start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:253:in
spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in
lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:247:in
spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in
synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in
synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:246:in
spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:145:in
spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:278:in
handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in
start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61
Am I missing something?
Comments and changes to this ticket
-
Pascal Rettig October 5th, 2010 @ 05:07 PM
(from [4d7073472b5984ff9a4d069cfb6e51475194110d]) Fix when there are no user blogs [#107 status:resolved] http://github.com/cykod/Webiva/commit/4d7073472b5984ff9a4d069cfb6e5...
-
Pascal Rettig October 5th, 2010 @ 05:09 PM
- State changed from new to resolved
-
Pascal Rettig October 6th, 2010 @ 10:06 AM
Sorry for the terse update - you need to go to the page to have it actually create a blog target, then you can play around with this in the editor.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 107 A NoMethodError Exception occurred in templates#popup_feature (from [4d7073472b5984ff9a4d069cfb6e51475194110d]) Fix whe...