Empty values for all Page Attributes fields on a node causes error

Created on 15 April 2021, over 3 years ago
Updated 20 June 2023, over 1 year ago

Hello,

I have a bug and/or a conflict with the page_attributes module and the devel module.

If I create a node and leave the values for Body ID, Body Class, and Article Class empty, when I come back to edit the node I get the following errors in dblog…

Notice: Trying to access array offset on value of type bool in page_attributes_form_alter() (line 31 of /public/modules/contrib/page_attributes/page_attributes.module).

RuntimeException: Failed to start the session because headers have already been sent by "/public/modules/contrib/devel/devel.module" at line 270. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 150 of /vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php)

If I uninstall the devel module, I'm able to edit the node again, but I'm still getting the following error until I add at least one of the Body ID, Body Class, or Article Class values to the node…

Notice: Trying to access array offset on value of type bool in page_attributes_form_alter() (line 31 of /public/modules/contrib/page_attributes/page_attributes.module).

If the node has at least one of the values, I'm able to edit the node as expected with the devel module turned enabled.

Please let me know if you have any questions.

Thanks,

•• matt

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States mattlt Freeport, MN

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024