• Resolved stewartvandusen

    (@stewartvandusen)


    I’m facing an issue where I’m getting random “Internal Server Errors” when navigating through the admin panel backend and also generally on the front end of the website.

    I’ve turned on debugging and there is the following error 40-60+ times in the error log.

    [30-May-2020 04:03:02 UTC] PHP Notice: Trying to get property ‘post_content’ of non-object in /home/yellowgrassgolf/yellowgrassgolf.com/wp-content/plugins/sportspress/modules/sportspress-openstreetmap.php on line 100
    [30-May-2020 04:03:02 UTC] PHP Notice: Undefined variable: notices in /home/yellowgrassgolf/yellowgrassgolf.com/wp-content/plugins/woocommerce/templates/notices/error.php on line 22

    How can I find the root cause of this issue?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @stewartvandusen,

    Did you try the steps (htaccess and memory limit) mentioned below?
    https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/

    Those PHP notices are mostly harmless.

    Thanks,
    Savvas

    I too am seeing this same issue, and a search for the error line shows it on a number of sites with SportsPress active.

    The issue appears to be causing extremely high I/O usage in cPanel and crashes of my site with internal server errors. Each time a look in the WP debug log it shows the same error related to openstreetmap.

    I’ve disabled other plugins to no affect, disabled WPCron and moved to a cPanel job and increased PHP memory limts, but nothing seems to work.

    Could this be related to the recent changes with Google Maps API and OpenStreetMap?

    Thanks,
    Chris

    Plugin Contributor Roch

    (@rochesterj)

    Hi Chris!

    Thanks for reaching out.

    It doesn’t look like these are related issues. But if you are facing any issues or if you have any steps to reproduce this, please kindly open a new ticket so we can check it.

    Thanks!

    I got these below error messages when I am testing the 404 page.

    “Notice: Trying to get property ‘post_content’ of non-object in content/plugins/sportspress/modules/sportspress-openstreetmap.php on line 100”

    it looks link your code this line cannot find “$post->post_content”.

    please help me resolve this issue.

    Plugin Contributor Roch

    (@rochesterj)

    Hi there!

    Please open a new topic so we can help you.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trying to get property ‘post_content’ of non-object’ is closed to new replies.