Tagged: BoldGrid Themes
- AuthorPosts
- October 7, 2024 at 1:18 pm #144517MontibonGuest
I am geting these reports in many of my error logs for my clients using boldgrid themes.
[06-Oct-2024 19:15:47 UTC] PHP Warning: Attempt to read property “post_type” on null in /home/raymonii/public_html/wp-content/themes/boldgrid-wedge/base.php on line 15
[06-Oct-2024 19:15:47 UTC] PHP Warning: Attempt to read property “post_type” on null in /home/raymonii/public_html/wp-content/themes/boldgrid-wedge/base.php on line 16Can anyone advise how to sorrect this besides deactivating Boldgrid Inspiration?
October 7, 2024 at 1:24 pm #144609Brandon CKeymasterHi Motibon,
Thanks for reaching out. These types of error occur on 404 pages, search results pages, or custom templates that don’t have a post context. It indicates that the theme is attempting to access a post_type property when the
$post
object is not set or isnull
. This often happens when the website code is trying to run outside the main WordPress loop (e.g., in headers, footers, or certain custom templates), where the$post
variable is not defined.Can you give us more details on the error, like what theme are you using? And, has the theme ever worked correctly or is this your first time setting it up? If the theme has been functioning properly until recently has anything changed on the site (Updates, Adding/Removing plugins etc)?
Thanks, we look forward to assisting you with this!
- AuthorPosts
- The topic ‘Attempt to read property’ is closed to new replies.