Jump to content

Cron errors about ionCube and PHP


pingnd

Recommended Posts

Hi everyone,

I'm looking for some guidance here. I setup WHMCS and it is working fine and I setup my Cron jobs in cPanel for the website. I'm on a HostGator reseller package. However, I am getting the below e-mails where it is complaining about ionCube and and the PHP version. I figured I needed a higher version of PHP and unfortunately, the PHP selector only allows you to change the default folder by folder. I had HostGator create .htaccess files everywhere to force PHP 7.1 but that does not seem to have solved this issue.  Any pointers would be great. Thank you!

 

<br />
<b>Fatal error</b>:  The file /home2/<USERNAME>/public_html/clients/crons/cron.php cannot be run by the ionCube Loader. Please ask the script provider to supply an encoded file that can run on your version of PHP, 5.4. in <b>Unknown</b> on line <b>0</b><br />

Link to comment
Share on other sites

  • 3 months later...

I am having this problem right now. This is what I found.

I moved my Cron folder outside the public_html and forgot to create the config.php. WHMCS has a config.php.new file in the folder and you need to rename it AND point to your WHMCS location directory under the  public_html directory.

I also had my WH admin change the PHP version to 5.6.

Link to comment
Share on other sites

Hi All,

Well, that didn't work, lol.

Woke up to these emails:

<br />
<b>Fatal error</b>:  The file /home1/tronyx/crons/domainsync.php cannot be run by the ionCube Loader. Please ask the script provider to supply an encoded file that can run on your version of PHP, 5.4. in <b>Unknown</b> on line <b>0</b><br />

<br />
<b>Fatal error</b>:  The file /home1/tronyx/crons/cron.php cannot be run by the ionCube Loader. Please ask the script provider to supply an encoded file that can run on your version of PHP, 5.4. in <b>Unknown</b> on line <b>0</b><br />

So the file cron.php, (and domainsync.php) can't be run on ionCube because my server is running PHP54? This can't be a new thing with WHMCS and WH's, can it?

Link to comment
Share on other sites

Thanks Kian,

I have set some of the directories manually. I asked my WH to cascade it throughout my domain but they have/did NOT.

I also believe that the cron daemon is running PHP54 and needs to be updated. However, when I speak to support they are simply Googling answers and telling me they have done this, or that, but not really doing anything.

I am getting frustrated and wish I had access to do it myself, but sadly, I do not have access.

I will continue to 'bother' them until I get an admin.

COVID 19 has been keeping all of us rather busy too.

Link to comment
Share on other sites

  • 2 months later...

If you have not yet been able to fix this, I think that you have configured your cron to use the system default PHP, which seems to be version 5.4, instead of the version your site makes use of.

Here is an example for my crontab entry:

*/5     *       *       *       *       /opt/plesk/php/7.2/bin/php -c /var/www/vhosts/system/example.com/etc/php.ini /var/www/vhosts/example.com/private/crons/cron.php

You will need to adjust the above to match your hosting environment.
 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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