PHP Warning: Attempt to read property "ID" on null

Hi all - I am getting the following flood of the same warning in my logs and I just want to try to eliminate that. (I’m having some big memory usage spikes, causing outages, so I am just trying to eliminate every issue I can).

Here is what I am getting in my logs:

[27-Jul-2023 12:18:54 UTC] PHP Warning: Attempt to read property "ID" on null in ---- wp-content/themes/pro/cornerstone/includes/_classes/dynamic-content/class-dynamic-content-post.php on line 195

I am getting this anywhere from 2 to 20 times per minute :flushed:

I get that it’s something to do with dynamic content I am calling in Cornerstone, but I use dynamic content alot, so no idea where to even start…

Please help!

Also, I updated Pro to 6.3.3 today. Issue still seems to persist.

~Rachel

Hello Rachel,

Thanks for writing to us.

There might be a few different reasons for this issue, I would suggest you troubleshoot a few of the common issues before we investigate your settings.

If none of those work, it would be best if you could copy your live website to your staging area. and send your details in a secure note so that we can investigate your setting without breaking your live site. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • FTP details

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

Thanks

Thanks so much for the quick response!

I think I might have narrowed it down to when I use {{dc:post:permalink post=“ID”}} to link to specific pages in my footer… The links worked as intended, but with that warning. I have removed these DC calls and I will now see if these errors stop…

I’m happy to share the staging details if you want to still take a look / can’t replicate… Just let me know.

~R

Hey Rachel,

We’re glad you sorted it out. I’ll just forward your findings to our development team so they can take a closer look.

Thanks!

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