#103 ✓resolved
atmorell

A SystemStackError Exception occurred in page#index - SystemStackError (stack level too deep)

Reported by atmorell | September 14th, 2010 @ 04:11 PM

Hello,

Model A belongs to Model B. No problems - I can publish pages etc. However if I set up the other end of the relationship Webiva goes into a nasty loop - Model B has_many of Model A.

The dump below happens when I try to view the page that list Model A. Some problem even if I remove the field from the published list.

... position
ContentModel Load (0.3ms) SELECT * FROM content_models WHERE (content_models.table_name = 'cms_model-b') LIMIT 1 ContentModel Load (0.2ms) SELECT * FROM content_models WHERE (content_models.table_name = 'cms_model-b') LIMIT 1 ContentModelField Load (0.2ms) SELECT content_model_fields.* FROM content_model_fields WHERE (content_model_fields.content_model_id = 2) ORDER BY position ContentModel Load (0.2ms) SELECT * FROM content_models WHERE (content_models.table_name = 'cms_model-a') LIMIT 1 ContentModel Load (0.2ms) SELECT * FROM content_models WHERE (content_models.table_name = 'cms_model-a') LIMIT 1

SystemStackError (stack level too deep):
app/models/domain_model.rb:18:in process_id' app/models/domain_model.rb:241:inconnection' app/models/content_model.rb:218:in content_model_details' app/models/content_model_field.rb:112:incontent_model_relation' app/models/content/core_field.rb:876:in site_feature_value_tags' app/models/content_model_field.rb:142:insite_feature_value_tags'

Any thoughts?

Best regards.
Asbjørn Morell

Comments and changes to this ticket

  • Pascal Rettig

    Pascal Rettig September 14th, 2010 @ 04:22 PM

    Hi Asbjørn,

    The content model relations are poorly named, as they aren't your standard rails relations, but rather separate per-field relations. Putting in a loop like that means that their is a recursion between the two - and since the system wants to let you display fields from the related models it causes a problem. The plan is to put in a fix to prevent more than two nested levels in the views and add in a symmetrical relationship.

  • Pascal Rettig

    Pascal Rettig November 9th, 2010 @ 01:51 PM

    • State changed from “new” to “resolved”

    Limited to 1 level in publications

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages