{"id":16363695,"date":"2023-01-11T18:34:46","date_gmt":"2023-01-11T18:34:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-errors-281\/"},"modified":"2023-01-11T18:36:16","modified_gmt":"2023-01-11T18:36:16","slug":"php-errors-281","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-errors-281\/","title":{"rendered":"PHP errors"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi, I use your plugin on 2 or 3 sites, recently the websites have many issues and the errors that appear in the logs are related to math captcha. It&#8217;s like hundreds or thousands of times per day. I don&#8217;t want to change to other plugins because I like your plugin best, but if you&#8217;re not going to fix these, I might just find something else. Please at least tell me if you&#8217;re going to fix these, or if there is any workaround.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br \/>These are the warnings on the first website:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[08-Jan-2023 16:13:19 UTC] PHP Warning: The magic method Math_Captcha::__wakeup() must have public visibility in \/home2\/sitename\/public_html\/wp-content\/plugins\/wp-advanced-math-captcha\/wp-math-captcha.php on line 86<br \/>[08-Jan-2023 16:13:25 UTC] PHP Warning: Cannot modify header information &#8211; headers already sent in \/home2\/sitename\/public_html\/wp-content\/plugins\/wp-advanced-math-captcha\/includes\/class-cookie-session.php on line 46<br \/>[08-Jan-2023 16:13:25 UTC] PHP Warning: Cannot modify header information &#8211; headers already sent in \/home2\/sitename\/public_html\/wp-content\/plugins\/wp-advanced-math-captcha\/includes\/class-cookie-session.php on line 49<br \/><br \/>The second website has the same warning, it&#8217;s like flooding the server with thousands of these warnings everyday:<br \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[10-Jan-2023 19:23:14 UTC] PHP Warning: Cannot modify header information &#8211; headers already sent in \/home\/anothersite\/public_html\/wp-content\/plugins\/wp-advanced-math-captcha\/includes\/class-cookie-session.php on line 46<br \/>[10-Jan-2023 19:23:14 UTC] PHP Warning: Cannot modify header information &#8211; headers already sent in \/home\/anothersite\/public_html\/wp-content\/plugins\/wp-advanced-math-captcha\/includes\/class-cookie-session.php on line 49<br \/><br \/>Thank you!<br \/>Regards<\/p>\n","protected":false},"template":"","class_list":["post-16363695","topic","type-topic","status-publish","hentry","topic-tag-php-warnings"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16363695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16363695\/revisions"}],"predecessor-version":[{"id":16363698,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16363695\/revisions\/16363698"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16363695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}