Skip to content

NoMethodError on Page component after importing a process #8895

@paulinebessoles

Description

@paulinebessoles

Describe the bug
As an admin, when I export and then import a process with a Page component, I find a server error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'try.decidim.org'
  2. Export a process with a Page component
  3. Import the process
  4. See error qhen visiting the Page component

Expected behavior
I expect the pages to be imported without error.

Screenshots
Capture d’écran 2022-02-22 à 18 14 34

Stacktrace

decidim (d0c925e2dfd1) decidim-pages/app/views/decidim/pages/application/show.html.erb:2
actionview (6.0.4.1) lib/action_view/base.rb:274:in `_run'
actionview (6.0.4.1) lib/action_view/template.rb:185:in `block in render'
activesupport (6.0.4.1) lib/active_support/notifications.rb:182:in `instrument'
actionview (6.0.4.1) lib/action_view/template.rb:385:in `instrument_render_template'
actionview (6.0.4.1) lib/action_view/template.rb:183:in `render'
actionview (6.0.4.1) lib/action_view/renderer/template_renderer.rb:58:in `block (2 levels) in render_template'
actionview (6.0.4.1) lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
activesupport (6.0.4.1) lib/active_support/notifications.rb:180:in `block in instrument'
activesupport (6.0.4.1) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (6.0.4.1) lib/active_support/notifications.rb:180:in `instrument'
actionview (6.0.4.1) lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
actionview (6.0.4.1) lib/action_view/renderer/template_renderer.rb:57:in `block in render_template'
actionview (6.0.4.1) lib/action_view/renderer/template_renderer.rb:65:in `render_with_layout'
actionview (6.0.4.1) lib/action_view/renderer/template_renderer.rb:56:in `render_template'
actionview (6.0.4.1) lib/action_view/renderer/template_renderer.rb:13:in `render' 

Extra data (please complete the following information):

  • Decidim Version: [0.25]
  • Decidim installation: [local]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions