Home Forums Weaver Xtreme Theme PHP error with PHP 8.0

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #70630
    beethoven
    Participant

    Bonjour

    On my site https://fncta-midipy.fr, when I try to delete a article, the deletion works but I get this error message :

    Warning: Cannot modify header information – headers already sent by (output started at /datas/yulpa171786/sites/fncta-midipy.fr/wp-includes/class-wp-post.php:342) in /datas/yulpa171786/sites/fncta-midipy.fr/wp-includes/pluggable.php on line 1355

    Warning: Cannot modify header information – headers already sent by (output started at /datas/yulpa171786/sites/fncta-midipy.fr/wp-includes/class-wp-post.php:342) in /datas/yulpa171786/sites/fncta-midipy.fr/wp-includes/pluggable.php on line 1358

    This appears since the site works with PHP 8.0 I I revert back to PHP 7.4, there is no more error message.

    Can you explain that  and has it something to do with the theme ?

    Regards

     

    #70631
    scrambler
    Moderator

    The error appears to come from WordPress, but what version of the theme are you on?

    #70632
    beethoven
    Participant

    I am on version 5.07 everything is up to date. On an other site teplitz-theatre.net same problem :

    <b>Warning</b>: Undefined property: WP_Post::$filter in <b>/datas/yulpa171734/sites/teplitz-theatre.net/htdocs/wp-includes/class-wp-post.php</b> on line <b>342</b>
    <b></b>

    <b>Warning</b>: Cannot modify header information – headers already sent by (output started at /datas/yulpa171734/sites/teplitz-theatre.net/htdocs/wp-includes/class-wp-post.php:342) in <b>/datas/yulpa171734/sites/teplitz-theatre.net/htdocs/wp-includes/pluggable.php</b> on line <b>1355</b>

    <b>Warning</b>: Cannot modify header information – headers already sent by (output started at /datas/yulpa171734/sites/teplitz-theatre.net/htdocs/wp-includes/class-wp-post.php:342) in <b>/datas/yulpa171734/sites/teplitz-theatre.net/htdocs/wp-includes/pluggable.php</b> on line <b>1358</b>

     

    #70633
    scrambler
    Moderator

    @weaver would have to comment

    Have you tried to redo the last WordPress update?

    #70634
    Weaver
    Keymaster

    You should be able to look at the html output by viewing page source. Near the top you will probably see some extra text output that is likely error messages and is what is actually causing the header information message. That information may be helpful in finding out exactly where the error is coming from. (But it is possible that it is only the actual “Warning” message itself that is causing the other header messages.)

    But that error is coming from WP internal code, but it could be caused by a plugin that uses the built in WP function.

    So far, I don’t know of any other PHP 8 issues with the theme.

     

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