Skip to content

NoMethodError in Communication::Website::GitFile::GenerateContentJob@cats #3783

@SebouChu

Description

@SebouChu

Error in Osuny

NoMethodError in Communication::Website::GitFile::GenerateContentJob@cats
undefined method 'ancestors' for nil

has_parent? ? parent.ancestors.push(parent) : []
                    ^^^^^^^^^^

View on Bugsnag

Stacktrace

app/models/concerns/as_tree.rb:21 - AsTree#ancestors
app/models/concerns/as_tree.rb:25 - AsTree#ancestors_and_self
app/models/concerns/as_localization.rb:68 - AsLocalization#slug_with_ancestors_slugs
app/models/communication/website/permalink/page.rb:37 - Communication::Website::Permalink::Page#substitutions
app/models/communication/website/permalink.rb:111 - Communication::Website::Permalink#computed_path
app/models/communication/website/permalink.rb:123 - Communication::Website::Permalink#save_if_needed
app/models/concerns/permalinkable.rb:46 - Permalinkable#manage_permalink_in_website
app/models/communication/website/git_file/with_content.rb:53 - Communication::Website::GitFile::WithContent#manage_permalink
app/models/communication/website/git_file/with_content.rb:15 - Communication::Website::GitFile::WithContent#generate_content_safely
app/jobs/communication/website/git_file/generate_content_job.rb:5 - Communication::Website::GitFile::GenerateContentJob#perform

View full stacktrace

Created automatically via Bugsnag

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions