Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing campgaign page leads to "encountered unexpected error" (Call to a member function getValue() on null) #769

Open
leeomara opened this issue Dec 14, 2024 · 1 comment
Labels
audience: internal For logged in site users, writers, editors, admins Campaign Page priority: high

Comments

@leeomara
Copy link
Member

leeomara commented Dec 14, 2024

Content editor was getting crashes when developing a Campaign page.

The precise conditions to reproduce this issue are not yet known.

Watchdog reports this error:

Error: Call to a member function getValue() on null in yukonca_glider_preprocess_page() (line 568 of docroot/themes/custom/yukonca_glider/yukonca_glider.theme).

Another watchdog entry (warning), which might be related:

Warning: Attempt to read property "field_child_campaign_pages" on null in yukonca_glider_preprocess_page() (line 568 of docroot/themes/custom/yukonca_glider/yukonca_glider.theme)

In our UAT this error was reported for https://yukon.cms-uat.yukon.ca/en/steering-committee

More details about what might have "fixed" it:

The only difference was linking the child page to the parent page. Once I connected the campaign page to the campaign ‘site’ and clicked on the steering committee page from there, I was able to edit and save the page.

Reported by ECO.

@leeomara leeomara added Campaign Page priority: high audience: internal For logged in site users, writers, editors, admins labels Dec 14, 2024
@leeomara leeomara changed the title Editing page leads to "encountered unexpected error" (Call to a member function getValue() on null) Editing campgaign page leads to "encountered unexpected error" (Call to a member function getValue() on null) Dec 14, 2024
This was referenced Dec 16, 2024
@leeomara leeomara moved this from Intake to To do in Yukon.ca Phase G Dec 16, 2024
@leeomara leeomara removed their assignment Dec 16, 2024
@leeomara
Copy link
Member Author

I created a new test Campaign page in UAT and encountered no error.

@leeomara leeomara moved this from To do to Confirmation in Yukon.ca Phase G Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audience: internal For logged in site users, writers, editors, admins Campaign Page priority: high
Projects
Status: Confirmation
Development

No branches or pull requests

1 participant