Php errors - undefined array for "layoutHeader" and "layoutFooter"

Hi there,

I’m getting a constant PHP error in my logs, relating to the Pro headers and footers. I have custom header and footer, both set to be applied to the whole site.

Here is the error:

[proxy_fcgi:error] Got error ‘PHP message: PHP Warning: Undefined array key “layoutHeader” in /var/www/vhosts/xxxx.co.uk/httpdocs/wp-content/themes/pro/cornerstone/includes/classes/Services/Assignments.php on line 103; PHP message: PHP Warning: Undefined array key “layoutFooter” in /var/www/vhosts/xxxx.co.uk/httpdocs/wp-content/themes/pro/cornerstone/includes/classes/Services/Assignments.php on line 107’

I’ve searched for an answer but find anything that helps.

Thanks in advance for any help!

Hey @ImpactDM,

Thanks for reaching out!

We need to check your header and footer setup to see why there’s a PHP warning. With that said, please provide the following information in a Secure Note.

  • WordPress Login URL
  • Admin level username and password

You can find the Secure Note button at the bottom of your posts.

or you can also disable the warning: https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/

Hope that helps.

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