{"id":13309913,"date":"2020-08-25T10:29:37","date_gmt":"2020-08-25T10:29:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cron-errors-3\/"},"modified":"2020-08-25T10:29:37","modified_gmt":"2020-08-25T10:29:37","slug":"cron-errors-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cron-errors-3\/","title":{"rendered":"cron errors"},"content":{"rendered":"<p>I&#8217;ve noticed that my error log files often contain lines such as this:<\/p>\n<p>[Tue Aug 25 10:39:52.326098 2020] [fcgid:warn] [pid 26432] [client xx.yy.zz.ww:19075] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in \/home\/domains\/vol12\/986\/230289\/user\/htdocs\/wp-cron.php on line 117, referer: https:\/\/www.mydomain.com\/wp-cron.php?doing_wp_cron=1598348391.7328090667724609375000<\/p>\n<p>in which only the argument changes, e.g.:<br \/>\n?doing_wp_cron=1598348391.7328090667724609375000<br \/>\nsuccessively reads:<br \/>\n?doing_wp_cron=1598348393.2930910587310791015625<br \/>\n?doing_wp_cron=1598348395.3370800018310546875000<br \/>\n?doing_wp_cron=1598348397.5089380741119384765625<br \/>\netc<\/p>\n<p>A quick: grep -r &#8220;doing_wp_cron&#8221; * (in my htdocs folder) shows me that it&#8217;s only wppa that makes these calls (leaving out the results that refer to \/wp-cron.php itself and to wp-includes\/wp-cron.php):<\/p>\n<p>wp-content\/plugins\/wp-photo-album-plus\/wppa-cron.php:\tif ( isset( $_GET[&#8216;doing_wp_cron&#8217;] ) ) {<br \/>\nwp-content\/plugins\/wp-photo-album-plus\/wppa-cron.php:\t\treturn $_GET[&#8216;doing_wp_cron&#8217;];<\/p>\n<p>The odd thing is that I only get this on 1 of 3 sites where I use wppa, so it must be something to do with that particular wppa installation that&#8217;s different to the other 2.<\/p>\n<p>Any tips you would send me to try? <\/p>\n<p>serge<\/p>\n","protected":false},"template":"","class_list":["post-13309913","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13309913","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\/13309913\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13309913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}