Jump to content

cron error


Go to solution Solved by wtools,

Recommended Posts

upto today everything has been working fine.

then every 5 mins from 3am this morning i have been getting this cron email

 

Subject: Cron <majesty@c7> php -q /home/majesty/public_html/clients/crons/cron.php -vvv >> /home/majesty/public_html/clients/crons/crondebug.txt

message: 

Cannot load the ionCube PHP Loader - it was already loaded

 

I know the loader is installed so whey is cron keep trying to load it

whmcserror.png

Link to comment
Share on other sites

  • Solution

Hello,

 

1) You had made any change recently?

2) Your cron command is using the php, 

php -q /home/majesty/public_html/clients/crons/cron.php

(php might be /usr/bin/php, just check which php)

Is it the same php used by the WHMCS too?

 

Link to comment
Share on other sites

13 hours ago, wtools said:

Hello,

 

1) You had made any change recently?

2) Your cron command is using the php, 

php -q /home/majesty/public_html/clients/crons/cron.php

(php might be /usr/bin/php, just check which php)

Is it the same php used by the WHMCS too?

 

not made any changes to anything, ended up removing cron job as my phone and email were full of these reports that took hrs to remove

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
On 1/29/2026 at 7:34 AM, wtools said:

Hello,

 

1) You had made any change recently?

2) Your cron command is using the php, 

php -q /home/majesty/public_html/clients/crons/cron.php

(php might be /usr/bin/php, just check which php)

Is it the same php used by the WHMCS too?

 

attached is the cron command i am told to use. still get the error

whmcscron.png

Link to comment
Share on other sites

On 1/31/2026 at 8:52 AM, wtools said:

Have you checked my second question? just to make sure that there is no conflict in the php versions. 

website  php: alt-php74

WHMCS php: 7.4.33

Configuration File (php.ini) Path /opt/alt/php74/etc
Loaded Configuration File /opt/alt/php74/etc/php.ini

whmcsphp.png

Edited by easyhosting
added image
Link to comment
Share on other sites

14 hours ago, bear said:

/usr/bin/php uses the default *server* php version. You're using "/opt/alt". which implies the site uses a non server php instance. 
Have you tried looking at php info or your control panel to see what the server default php is?? 

 

this is what i get from phpinfo.php

Configuration File (php.ini) Path /opt/alt/php74/etc

 

this has not been an issue until recently

Edited by easyhosting
Link to comment
Share on other sites

Was that taken from the WHMCS phpinfo page, or one from the server's control panel or shell?
Just calling "php" will use the server's version, which I'd guess is the cause.

View this, look for the yellow part, and adjust your PHP call in the cron to the one used by your WHMCS installation (7.4):
https://help.whmcs.com/m/troubleshooting/l/700394-troubleshooting-ioncube-errors

Link to comment
Share on other sites

5 minutes ago, wtools said:

Glad that it was sorted 🙂

What was the reason for the issue? Just curious 🙂 

i had to pass this onto my host as i dont have server access

 

 and they sent me this along with updated cron command

'Upon checking from our end the problem was occurring because the cron was running with the system PHP binary, which caused ionCube to be loaded more than once.
This leads to the error emails you were receiving.'

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