Home › Forums › Weaver Xtreme Theme › PHP error with PHP 8.0
- This topic has 4 replies, 3 voices, and was last updated 1 year, 1 month ago by
Weaver.
-
AuthorPosts
-
April 14, 2022 at 12:43 UTC - Views: 24 #70630
beethoven
ParticipantBonjour
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
April 14, 2022 at 15:52 UTC - Views: 20 #70631scrambler
ModeratorThe error appears to come from WordPress, but what version of the theme are you on?
April 14, 2022 at 17:02 UTC - Views: 17 #70632beethoven
ParticipantI 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>
April 14, 2022 at 17:06 UTC - Views: 15 #70633April 14, 2022 at 18:14 UTC - Views: 15 #70634Weaver
KeymasterYou 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.
-
AuthorPosts
- You must be logged in to reply to this topic.