• Resolved OK

    (@angelok1979)


    Hello team. Bug with steps:
    1. WP Super Cache is enabled and enabled caching
    2. Switch any post to UNPUBLISHED status
    3. I got triple errors when saving
    [cgi:error] AH01215: PHP Warning: Undefined property: WP_Post::$filter in */wp-includes/class-wp-post.php on line 342
    and redirects in dushboard dont working after
    [cgi:error] AH01215: PHP Warning: Cannot modify header information – headers already sent by (`……………………..

    No problem when I switch status from Unpublished to Published
    All work clear with disabled caching or when WP Super Cache has been disabled

    Details:
    – PHP 8
    – WP Super Cache is 1.7.7
    – I known about https://ww.wp.xz.cn/support/topic/some-errors-19/
    in 1.7.7 you use silency $post = @get_post( $post );

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter OK

    (@angelok1979)

    Any support from this plugin team?

    You should disable showing PHP warnings and errors. That is a potential security issue for your website in case an error shows something critical to a random website visitor.

    I’m not sure what causes that and haven’t seen it happen elsewhere, but I will test it when I have time.

    Thread Starter OK

    (@angelok1979)

    Thank you!
    I use notification views for dashboard – it helps with good bugfix.
    I will wait for your check and answer.

    I unpublished a post on my blog and I didn’t see any error. I’m not sure why you are. I presume it’s something else on your site that’s conflicting with wp-super-cache.

    You really don’t need to display warnings. Make sure you have the error_log set or use the WordPress debug system, especially on a live site.

    Thread Starter OK

    (@angelok1979)

    Hi DÓC and thank you for answer.
    problem may be from call of Getter with empty parameter.

    I fixed bug by other way:
    class-wp-post.php

    342 if ( $this->filter ) {
    replaced by
    342 if ( isset($this->filter) ) {

    but it is not right way – to edit WP core file. I will try to ask WP support for this affect.

    May be I will mark as resolved for you.
    Thnx

    • This reply was modified 4 years, 2 months ago by OK.
    Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    Here’s another thread about this: https://ww.wp.xz.cn/support/topic/compatibility-issue-with-php-8/

    It is a core bug, but won’t be fixed until 6.1 unfortunately. 🙁

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘backend warnings for unpublished posts’ is closed to new replies.