Jump to content

Cron not working, ionCube error


Recommended Posts

I'm getting the following (email response) error when I try to run the automated cron:

 

Site error: the <a href="http://www.ioncube.com">ionCube</a> PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.

 

Please visit <a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a> for install assistance.

 

My web host confirmed that my ionCube Loader was properly installed.

PHP 5.6.29 (cli) (built: Jan 11 2017 17:04:20)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
   with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.1, Copyright (c) 2002-2016, by ionCube Ltd.

 

They thought there might be an error with the /crons/cron.php file, though it is "ioncube encoded" so they were unable to view the code.

 

This is the command I'm running in my cron:

*/5 * * * * php -q /home/[account]/[folder]/crons/cron.php

 

When i run this in the command line it works just fine:

php -q /home/[account]/[folder]/crons/cron.php

 

I am running a VPS on LiquidWeb server and my WHMCS is version 7.1.1.

 

I read threads where people added "/opt/php56/bin/php" to the cron job, but I don't have /php56/ in my /opt/ folder.

 

Thank you in advance for your help.

Edited by pacificsky
Link to comment
Share on other sites

I have a similar error:

 

<br />

<b>Fatal error</b>: The file /home/account/public_html/clientes/folder/cron.php cannot be decoded by this version of the ionCube Loader.

If you are the administrator of this site then please install the latest version of the ionCube Loader.

in <b>Unknown</b> on line <b>0</b><br />

 

My hosting provider says they can't update it because my account is a shared account.

Link to comment
Share on other sites

These are two separate issues.

 

@Eduardo, you'll need to change your hosting provider, they're stuck on really old ioncube versions

 

@Pacificsky, this typically happens on Debian/Ubuntu servers. Assuming that you've installed ioncube on the server itself, you likely don't have the ioncube configuration copied over to the correct directory). In Debian/Ubuntu, the php apache and CLI configs are stored separately. Copy the ioncube.ini file from /etc/php5/apache(2) to /etc/php5/cli

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated