Here's an error reported from last night's attempt to run my PHP file in a cron job:
Failed loading /opt/cpanel/ea-php54/root/usr/lib64/php/modules/ioncube_loader_lin_5.4.so: /opt/cpanel/ea-php54/root/usr/lib64/php/modules/ioncube_loader_lin_5.4.so: undefined symbol: execute
Zend Guard Loader requires Zend Engine API version 220100525.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.
Set-Cookie: PHPSESSID=p4nu293cl2kikl2tb7t7ooo4j6; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-type: text/html; charset=UTF-8
<b>Fatal error</b>: Class 'PasswordHash' not found in <b>/home/myaccount/include/do_email.php</b> on line <b>153</b><br />
- Why am I getting the undefined symbol: execute error? This seems to be something to do with loading PHP, before it has ever tried to access my script.
- Why is the session cookie that it is sending set to Expires: Thu, 19 Nov 1981?
- Why has it failed to find PasswordHash?
This file runs correctly when called as part of my website, so I think the problems must be to do with diffferences between the environment when run as a web page and when run as a cron job.
Thanks - Rowan