{"id":19013322,"date":"2026-09-07T09:40:40","date_gmt":"2026-09-07T09:40:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/fatal-error-in-frontend-php-version-11-1-3\/"},"modified":"2026-09-07T09:40:40","modified_gmt":"2026-09-07T09:40:40","slug":"fatal-error-in-frontend-php-version-11-1-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/fatal-error-in-frontend-php-version-11-1-3\/","title":{"rendered":"Fatal error in frontend.php (version 11.1.3)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;m seeing this in the Web error log for the entire site after updating the plugin to 11.1.3 (latest release at the time of writing):<br \/><br \/>PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function monsterinsights_clear_snoozed_on_login(), 1 passed in &lt;webtree&gt;\/wp-includes\/class-wp-hook.php on line 341 and exactly 2 expected in &lt;webtree&gt;\/wp-content\/plugins\/google-analytics-for-wordpress\/includes\/frontend\/frontend.php:27<br \/><br \/>A quick and dirty fix (which I&#8217;ve had to do with the fail2ban plugin too) is to set $user to be &#8221; in the monsterinsights_clear_snoozed_on_login function header (line 27 of includes\/frontend\/frontend.php):<br \/><br \/>function monsterinsights_clear_snoozed_on_login( $user_login, $user = &#8221; ) {<br \/><br \/>I don&#8217;t know if you&#8217;ve got a better fix for this, but this stopped the fatal error for me.<\/p>\n","protected":false},"template":"","class_list":["post-19013322","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19013322","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19013322\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19013322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}