kimtown Posted February 14, 2018 Share Posted February 14, 2018 Hello friends, I have recently set up a cron job in my cPanel, following the directions found here https://docs.whmcs.com/Crons However, I am receiving an error about ionCube and I don't understand what it is I'm supposed to do. Any assistance would be great. Thanks in advance! ERROR EMAIL (posted exactly as the email is, only text) <br /><b>Fatal error</b>: <br>The file <b>/home/kimtown/public_html/billing/crons/cron.php</b> was encoded with the PHP 5.6 ionCube Encoder and requires PHP 5.6 to be installed. in <b>Unknown</b> on line <b>0</b><br /> Thanks, Kim Link to comment Share on other sites More sharing options...
twhiting9275 Posted February 15, 2018 Share Posted February 15, 2018 Do you have access to everything else? I mean, everything else shows up without any problems at all? If that's the case, then it's likely you're trying to use another version of php to access this. Check with your host, make sure that you're using the right php CLI, so that you're actually using php 5.6. Link to comment Share on other sites More sharing options...
kimtown Posted February 15, 2018 Author Share Posted February 15, 2018 22 minutes ago, twhiting9275 said: Do you have access to everything else? I mean, everything else shows up without any problems at all? If that's the case, then it's likely you're trying to use another version of php to access this. Check with your host, make sure that you're using the right php CLI, so that you're actually using php 5.6. Thank you for your response. Yes, I can access everything with no problems. It’s just this corn job that throws an error. I contacted my host first and they told me they were unable to help with corn jobs and that I needed to contact a website programmer. Lol That actually sounds silly but okay. So that’s where I am. I don’t know anything about ioncube so I’m not even sure where to start. Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted February 15, 2018 Share Posted February 15, 2018 Hey @kimtown Who is your webhost, it's likely they are using an older IonCube Loader version Link to comment Share on other sites More sharing options...
kimtown Posted February 16, 2018 Author Share Posted February 16, 2018 4 hours ago, WHMCS ChrisD said: Hey @kimtown Who is your webhost, it's likely they are using an older IonCube Loader version It is Hostgator Reseller Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted February 16, 2018 Share Posted February 16, 2018 21 minutes ago, kimtown said: It is Hostgator Reseller Try replacig the php -q part of the cron command in cPanel with /opt/php56/bin/php -q Link to comment Share on other sites More sharing options...
kimtown Posted February 16, 2018 Author Share Posted February 16, 2018 Thank you Chris. So the line should read like this now? I hope I did that right. /opt/php56/bin/php -q /home/kimtown/public_html/billing/crons/cron.php Link to comment Share on other sites More sharing options...
kimtown Posted February 16, 2018 Author Share Posted February 16, 2018 I think I got it!! Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted February 16, 2018 Share Posted February 16, 2018 Glad to see its working @kimtown ! Link to comment Share on other sites More sharing options...
Recommended Posts