• Resolved pleasure94

    (@pleasure94)


    [29-Aug-2024 12:29:25 UTC] PHP Warning: Attempt to read property “ID” on null in /home/xxx/xxxx.com/wp-content/plugins/picu/backend/includes/picu-cpt-collection.php on line 628

    I would like to ask how can I fix this problem and what the warning means?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Florian Ziegler

    (@florianziegler)

    Hi @pleasure94,

    that’s a bit weird. This part of the code is responsible for showing the “— Closed” state behind the collection title. (Like “— Draft” is shown behind a post title.)

    Can you pinpoint when exactly you get this warning?

    You may also send your debug info (found under “picu > Settings > Tools/Debug”) via email, which would provide us with more context.

    Cheers
    Florian

    Thread Starter pleasure94

    (@pleasure94)

    I get the error in the wordpress error log file. I have sent you a message via email.

    Plugin Author Florian Ziegler

    (@florianziegler)

    Hi @pleasure94,

    we haven’t heard back from you via email, so I post my suggestion here as well:

    My guess is, that another plugin or your theme is using the same filter (display_post_states) in a way, that is not providing the necessary post->ID, which causes the warning.

    To figure this out, please follow this guide. You can delete (or rename) the debug.log in between tests to figure out, when exactly the error is logged.

    Please let me know, what you find out.

    Cheers
    Florian

    Plugin Author Claudio Rimann

    (@pandulu)

    I’ll go ahead and close this thread for now, as we haven’t received a response. Please feel free to reach out again by opening a new thread or via email, if you still need support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.