Error message when editing Custom Header

Hello,

We started getting this error when editing our header and do not know why or how to resolve it. I have disabled all plugins and enabled the parent theme, and the issue persists.

This warning shows in the Header Builder.

Warning: Attempt to read property “post_content” on null in /home/customer/www/directory.onetopanga.com/public_html/wp-content/themes/pro/framework/legacy/functions/frontend/social.php on line 106

Warning: Attempt to read property “comment_count” on null in /home/customer/www/directory.onetopanga.com/public_html/wp-includes/general-template.php on line 3194
Warning: Attempt to read property “ID” on null in /home/customer/www/directory.onetopanga.com/public_html/wp-includes/post-template.php on line 674

Warning: Attempt to read property “post_type” on null in /home/customer/www/directory.onetopanga.com/public_html/wp-includes/post-template.php on line 675
class="-template-default single logged-in mega-menu-max-mega-menu-1 mega-menu-max-mega-menu-2 mega-menu-max-mega-menu-3 mega-menu-max-mega-menu-4 mega-menu-max-mega-menu-5 mega-menu-max-mega-menu-6 x-renew x-child-theme-active x-full-width-layout-active x-full-width-active x-post-meta-disabled tco-preview pro-v6_4_10">

This warning is in the phperrorlog

[03-Feb-2024 17:52:03 UTC] PHP Warning: Attempt to read property “post_type” on bool in /home/customer/www/directory.onetopanga.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Services/Admin.php on line 493

[03-Feb-2024 17:52:03 UTC] PHP Warning: Attempt to read property “post_content” on null in /home/customer/www/directory.onetopanga.com/public_html/wp-content/themes/pro/framework/legacy/functions/frontend/social.php on line 106

[03-Feb-2024 17:52:03 UTC] PHP Warning: Attempt to read property “comment_count” on null in /home/customer/www/directory.onetopanga.com/public_html/wp-includes/general-template.php on line 3194

[03-Feb-2024 17:52:03 UTC] PHP Warning: Attempt to read property “ID” on null in /home/customer/www/directory.onetopanga.com/public_html/wp-includes/post-template.php on line 674

[03-Feb-2024 17:52:03 UTC] PHP Warning: Attempt to read property “post_type” on null in /home/customer/www/directory.onetopanga.com/public_html/wp-includes/post-template.php on line 675

Please assist us with fixing this.

Thanks,

Micah

Hello @micahkritzman,

Thanks for writing to us.

I checked your Header settings it seems that it is rendering fine on my end and I was not able to find any error on the Header builder. I would request you please let us know the steps or any video so that we can check it on our end

Thanks

Hello,

In testing, it’s happening in Edge, it does not seem to be happening in Chrome.

In edge it’s been fine until the past week. I have cleared the cache, tested in InPrivate, and still giving the error.

Check this video I took after clearing the cache.

MP4 Error Message One Topanga

Micah

Hello Micah,

I am using MS Edge as well while being logged in to your site. I could not replicate the issue.

  • See the secure note below.

In your previous post, those are PHP Warning messages that may have been displayed because the WP Debug Mode is turned ON. Kindly deactivate the WP Debug mode.

I also noticed that you are using PHP 8.3. Try downgrading to PHP 8.2 and see how it goes.

Best Regards.

Hello,

Upon testing this is not showing in PHP 7.4.33. It is showing in PHP 8.3.2, 8.2.15, 8.1.27, 8.0.30.

As this is a new website, i prefer to keep this in PHP 8.

I have disabled warnings and will continue my work.

Thanks for the assistance.

Micah

Hi Micah,

You are most welcome.

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