Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #144517 Reply
    Montibon
    Guest

    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 16

    Can anyone advise how to sorrect this besides deactivating Boldgrid Inspiration?

    #144609 Reply
    Brandon C
    Keymaster

    Hi 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 is null. 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!

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Attempt to read property
Your information: