• Resolved grovercs

    (@grovercs)


    The problem arises when we enter a link that has no content, there is a problem with the header

    Warning: Undefined property: stdClass::$post_content in /homepages/34/d4296838640/htdocs/wordpress/wp-content/plugins/complianz-gdpr/class-document.php on line 2523

    Warning: Undefined property: stdClass::$post_content in /homepages/34/d4296838640/htdocs/wordpress/wp-content/plugins/complianz-gdpr/class-document.php on line 2529

    Warning: Undefined property: stdClass::$post_content in /homepages/34/d4296838640/htdocs/wordpress/wp-content/plugins/complianz-gdpr/class-document.php on line 2532

    Warning: Undefined property: stdClass::$post_content in /homepages/34/d4296838640/htdocs/wordpress/wp-content/plugins/complianz-gdpr/class-document.php on line 2535
    Warning: Undefined property: stdClass::$post_content in /homepages/34/d4296838640/htdocs/wordpress/wp-content/plugins/complianz-gdpr/class-document.php on line 2523

    Warning: Undefined property: stdClass::$post_content in /homepages/34/d4296838640/htdocs/wordpress/wp-content/plugins/complianz-gdpr/class-document.php on line 2529

    Warning: Undefined property: stdClass::$post_content in /homepages/34/d4296838640/htdocs/wordpress/wp-content/plugins/complianz-gdpr/class-document.php on line 2532

    Warning: Undefined property: stdClass::$post_content in /homepages/34/d4296838640/htdocs/wordpress/wp-content/plugins/complianz-gdpr/class-document.php on line 2535

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Not sure how to reproduce this. If I enter a 404 on the page, I don’t get any errors. When looking at the code, it either retrieves the post object for the current selected post ID, or the global $post object.

    It then checks if the $post object is empty. If not, it proceeds. In your case, it seems the post object is not empty, but also does not include a post_content property. This property is a default property of the post object. It doesn’t seem likely wordpress is generating a post object without a post_content property.

    Do you also get this issue with a default theme, and with the other plugins deactivated?

    Thread Starter grovercs

    (@grovercs)

    Hello, thanks for your answer, if I disable the plugin everything works fine, to reproduce the problem go to any page that is not in the domain, when the 404 page appears in the header that error appears

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I understand, but do you also have this issue with a default theme and no other plugins?

    The Complianz code looks solid, it’s pretty crazy a WordPress post object doesn’t have a post_content property.

    And I can’t reproduce it myself, which suggests it’s something caused by another plugin.

    If you know which one I can take a look.

    Thread Starter grovercs

    (@grovercs)

    ok thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error 404 in page not found’ is closed to new replies.