This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Support Forum

#supportforum Any doubts or questions on how to use Decidim? Check them with the Community!

  • The process
  • I have a question
  • Community Tutorials
chevron-left Back to list

Error creating a proposal

Avatar: Andrea Pizzi Andrea Pizzi
18/09/2019 09:58  

Hello to all,

I have a problem that happens when I open a proposal I just created. Once you have created a page of proposals (still empty, but if there are proposals inside it does not change the situation), the following error appears:

NoMethodError in Decidim :: Proposals :: Proposals # index
Showing /home/decidim/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/decidim-proposals-0.18.0/app/views/decidim/proposals/proposals/_filters.html.erb where line # 15 raised:

undefined method `polymorphic? ' for #
Extracted source (around line # 4):
  module ReflectionExtensions
    def build_join_constraint (table, foreign_table)
>>> if polymorphic?
        super (table, foreign_table)
        .and (foreign_table [foreign_type] .eq (klass.name))
      else

Trace of template inclusion: /home/decidim/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/decidim-proposals-0.18.0/app/views/decidim/proposals/proposals/_filters_small_view .html.erb, /home/decidim/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/decidim-proposals-0.18.0/app/views/decidim/proposals/proposals/index .html.erb

Rails.root: / home / decidim / decidim-app

To be clear, this error appears as soon as I open the URL:
decidimurl.com/processes/processName/f/proposalId/

Thanks for the support

  • Filter results for category: Processes Processes
Endorsements count0
Error creating a proposal Comments 2

Reference: MDC-PROP-2019-09-14774
Version number 1 (of 1) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: de97418ff2cdd0bed0beb19cca0d2c67bc2b8ad1c964e9538e2a5be53d1b43a7

Source: {"body":{"en":"Hello to all,\r\n\r\nI have a problem that happens when I open a proposal I just created. Once you have created a page of proposals (still empty, but if there are proposals inside it does not change the situation), the following error appears:\r\n\r\nNoMethodError in Decidim :: Proposals :: Proposals # index\r\nShowing /home/decidim/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/decidim-proposals-0.18.0/app/views/decidim/proposals/proposals/_filters.html.erb where line # 15 raised:\r\n\r\nundefined method `polymorphic? ' for # <ActiveRecord :: Reflection :: PolymorphicReflection: 0x00007f71cbf8eb90>\r\nExtracted source (around line # 4):\r\n  module ReflectionExtensions\r\n    def build_join_constraint (table, foreign_table)\r\n>>> if polymorphic?\r\n        super (table, foreign_table)\r\n        .and (foreign_table [foreign_type] .eq (klass.name))\r\n      else\r\n\r\nTrace of template inclusion: /home/decidim/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/decidim-proposals-0.18.0/app/views/decidim/proposals/proposals/_filters_small_view .html.erb, /home/decidim/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/decidim-proposals-0.18.0/app/views/decidim/proposals/proposals/index .html.erb\r\n\r\nRails.root: / home / decidim / decidim-app\r\n\r\nTo be clear, this error appears as soon as I open the URL:\r\ndecidimurl.com/processes/processName/f/proposalId/\r\n\r\nThanks for the support"},"title":{"en":"Error creating a proposal"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/supportforum/f/705/proposals/14774/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/supportforum/f/705/proposals/14774/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Report inappropriate content

Is this content inappropriate?

Reason

2 comments

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
Avatar: Isaac Massot Isaac Massot
18/09/2019 10:07
  • Get link Get link

Hi @pizziDecidim

This is a bug found some days ago and fixed in master and already backported to 0.18-stable. https://github.com/decidim/decidim/pull/5303

You need to wait until release 0.18.1 will be abailable, or use it branch 0.18-stable

Avatar: Andrea Pizzi Andrea Pizzi
18/09/2019 17:30
  • Get link Get link

thanks for the directions. Can you tell me if there is a way to deploy only the files that would correct the error? I would like to avoid having consequences on the platform in production

Thank you so much

Add your comment

Sign in with your account or sign up to add your comment.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim
Or

Sign up

Forgot your password?