Error for header condition "parent" is

Hi there,

today I tried to show / hide a container in header builder with the condition
“Parent” and get an error:
Notice : Undefined variable: post in /www/htdocs/w014047a/eva4.i-v.de/wordpress/wp-content/themes/pro/cornerstone/includes/classes/common/class-condition-rules.php on line 214

I have several pages under two parent pages and want to show containerA if parent page ist “AAA” and container B if Parent page is “BBB”

Thank you,
Michael

Hey Michael,

That is a “PHP Notice” and they are harmless. It’s strongly recommended to hide PHP reports in live sites. To do that in WordPress, follow the example debug setup here: https://wordpress.org/support/article/debugging-in-wordpress/

Note that this doesn’t mean notices aren’t important. We still would want to clear them up. If you have time, we kindly ask you go to your WordPress Site Health Screen and copy the Server information. You can learn more about WordPress Site Health here: https://wordpress.org/support/article/site-health-screen/

Thanks.

Hi @christian,

“It’s strongly recommended to hide PHP reports in live sites” - sure. But this is a development site and therefore we are strongly looking at any notice :wink:

“We still would want to clear them up” That’s what I hoped to hear.

Best, Michael

Server architecture Linux 4.15.0-188-generic x86_64
Web server Apache
PHP version 7.4.30 (Supports 64bit values)
PHP SAPI fpm-fcgi
PHP max input variables 3000
PHP time limit 30
PHP memory limit 256M
Max input time 60
Upload max filesize 200M
PHP post max size 200M
cURL version 7.58.0 OpenSSL/1.1.1
Is SUHOSIN installed? No
Is the Imagick library available? Yes
Are pretty permalinks supported? Yes
.htaccess rules Custom rules have been added to your .htaccess file.

Hey @mickna,

Thank you for your cooperation. I’ll post this in our issue tracker so that this case will be queued to be investigated by our development team.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.