-
Hello Rank Math Support Team,
I am experiencing a “Headers already sent” error on my website, and the debug log points to the Rank Math plugin as the source of the initial output.
Here is the first error in the debug log, which appears to be the trigger:
[21-Jun-2025 22:22:09 UTC] PHP Deprecated: Creation of dynamic property RankMath\Analytics\Summary::$total is deprecated in /home/c/cq83318/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-summary.php on line 124This deprecated notice is causing a subsequent “Cannot modify header information” error:
[21-Jun-2025 22:22:09 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/c/cq83318/public_html/wp-content/themes/nectar-blocks-theme/header.php:1) in /home/c/cq83318/public_html/wp-includes/pluggable.php on line 1450I have already tried the following:
* Updating the Rank Math plugin to the latest version.
* Checking my theme’s header.php file for extra spaces or BOM (it is clean).
* The error disappears when I deactivate the Rank Math plugin.
It seems the deprecated code in class-summary.php is creating output that breaks other WordPress functions.
Could you please look into this? Let me know if you need any more information.
Thank you for your help.
The ticket ‘Critical error’ is closed to new replies.