WPIntell

Source evidence

Error when running cron script

AJAX Heartbeat Tool · support · 2014-08-07T15:51:00+00:00

mixedsentiment
highseverity
0.95relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 30 rows with source links

6.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
elmills81 resolved
I just installed the plugin a couple hours ago and it is doing exactly what is expected. Improved a performance/connection issue I was having dramatically. However, I just noticed this in my cron logs, when I call wp-cron.php from the command line this occurs: Fatal error: Call to undefined function get_called_class() in /home/rcovenant/webapps/rccnew/wp-content/plugins/ajax-heartbeat-tool/plugin.php on line 76 https://wordpress.org/plugins/ajax-heartbeat-tool/ Hey elmills81, Thanks for reporting that. I do not use wp-cron on any of my systems and have never seen an error like that with ‘real’ cron, so I will have to investigate further. Mikel King Maybe I am doing something wrong then and not following the expected process. Below is the cron job I am running */15 * * * * wget -O -q -t 1 http://rccnew.rcovenant.org/wp-cron.php >$HOME/Cronlogs/cron.log 2>&1 If I am using cron incorrectly and that is the issue, my apologies for wasting your time. Thanks for the response. Hey elmills81, Check the version of PHP you are running on your cli system. The get_called_class() function is only supported in PHP 5.3 and newer. I have refactored the plugin to eliminate the get_called_class() function entirely. My apologies for not coming back to update my case. I was working on a website conversion and forgot to come back and update my result. You are correct that it was an issue with my hosts version of PHP and the cli. I upgraded the PHP version before we deployed and that fixed this issue (and several others).

Comments

5 shown
Mikel King 2014-08-18T16:08:00+00:00

Hey elmills81, Thanks for reporting that. I do not use wp-cron on any of my systems and have never seen an error like that with ‘real’ cron, so I will have to investigate further.

elmills81 2014-08-18T16:29:00+00:00

Mikel King Maybe I am doing something wrong then and not following the expected process. Below is the cron job I am running */15 * * * * wget -O -q -t 1 http://rccnew.rcovenant.org/wp-cron.php >$HOME/Cronlogs/cron.log 2>&1 If I am using cron incorrectly and that is the issue, my apologies for wasting your time. Thanks for the response.

Mikel King 2014-11-26T18:13:00+00:00

Hey elmills81, Check the version of PHP you are running on your cli system. The get_called_class() function is only supported in PHP 5.3 and newer.

Mikel King 2014-12-03T12:29:00+00:00

I have refactored the plugin to eliminate the get_called_class() function entirely.

elmills81 2014-12-04T15:47:00+00:00

My apologies for not coming back to update my case. I was working on a website conversion and forgot to come back and update my result. You are correct that it was an issue with my hosts version of PHP and the cli. I upgraded the PHP version before we deployed and that fixed this issue (and several others).