Jump to content

Cron Not Running After Update To WHMCS 7.1.1


syh43

Recommended Posts

Hello,

 

I am a hostgator user with php 5.6 version,

 

My cron job is stop running AFTER i have update to the latest version of WHMCS, which is 7.1.1

 

All the cron job not running, and all the email is not import to the ticket system.

 

Anyone can assist me with this issue?

 

No matter i use the Cron command:

/opt/php56/bin/php -q /home/<REMOVED BY MODS>/public_html/crons/cron.php

/opt/php56/bin/php -q /home/<REMOVED BY MODS>/public_html/crons/pop.php

 

It's not working at all after i have update to whmcs 7.1.1

 

Only when i manually paste the link http://www.mydomainname.com/crons/cron.php the cron will start, and http://www.mydomainname.com/crons/pop.php the email will only import to the ticket system.

 

May I know what i can do to resolve this issue?

 

Thank you very much.

Link to comment
Share on other sites

Hello Syh43,

 

Thanks for your post on the community forums.

 

Other users have reported issues with Hostgator which was discussed here however they seemed to have resolved it by using the command

 

*/5 * * * * /opt/php56/bin/php -q /home/username/public_html/clients/crons/cron.php

 

If this is not working for you i'd recommend running the command in a shell environment and see what error is appearing. In addition please confirm with Hostgator your server has PHP 5.6 compiled with at least ionCube Loaders 5.0.21 or later for PHP 5.6 enabled.

 

Lastly, i'd recommend clarifying with Hostgator if the PHP 5.6 path for your server is different.

Link to comment
Share on other sites

Hello Syh43,

 

Thanks for your post on the community forums.

 

Other users have reported issues with Hostgator which was discussed here however they seemed to have resolved it by using the command

 

*/5 * * * * /opt/php56/bin/php -q /home/username/public_html/clients/crons/cron.php

 

If this is not working for you i'd recommend running the command in a shell environment and see what error is appearing. In addition please confirm with Hostgator your server has PHP 5.6 compiled with at least ionCube Loaders 5.0.21 or later for PHP 5.6 enabled.

 

Lastly, i'd recommend clarifying with Hostgator if the PHP 5.6 path for your server is different.

 

 

Hello,

 

I tried to using this code to my cron job of cPanel, but when i fill in the code into the column,

 

I get this error:

error Error

"-":8: bad command

errors in crontab file, can't install.

 

May I know why it is happen?

 

Any advice is appreciate.

Link to comment
Share on other sites

Hi Chris,

 

Hello,

 

I can confirm i am using the code:

/opt/php56/bin/php -q /home/username/public_html/clients/crons/cron.php

Or

/opt/php56/bin/php -q /home/username/public_html/crons/cron.php all --force -vvv

 

But the cron job still not able to auto start on the time that i set.

 

How can i do?

 

Because it is second day of the cron job not start automatic.

 

Any advice is appreciate.

Link to comment
Share on other sites

Cron not running over here as well after update to 7.1.1 - not using hostgator. We did recently upgrade to php 7.0. After php upgrade - Cron not running.

 

Please advise

 

Hi Battles,

 

The most likely outcome is that your CLI is not running the right version of ionCube Loader. If you check where your cron engine sends emails to (In cPanel go to Crons -> Cron Email) this will send a report directly from the server showing the output to assist you in troubleshooting.

Link to comment
Share on other sites

  • 3 weeks later...

Same issue, after upgrading to 7.1.1 some cron jobs don't seem to execute.

I now receive an email every 25 minutes reminding me of it.

 

Also, products no longer work so it's impossible to place an order.

 

From activity logs:

Smarty Error: Unable to load template file 'orderforms//sidebar-categories.tpl' in '/public_html/templates/orderforms/boxes/products.tpl'

Link to comment
Share on other sites

  • 1 month later...
Hello,

 

I am a hostgator user with php 5.6 version,

 

My cron job is stop running AFTER i have update to the latest version of WHMCS, which is 7.1.1

 

All the cron job not running, and all the email is not import to the ticket system.

 

Anyone can assist me with this issue?

 

No matter i use the Cron command:

/opt/php56/bin/php -q /home/<REMOVED BY MODS>/public_html/crons/cron.php

/opt/php56/bin/php -q /home/<REMOVED BY MODS>/public_html/crons/pop.php

 

It's not working at all after i have update to whmcs 7.1.1

 

Only when i manually paste the link http://www.mydomainname.com/crons/cron.php the cron will start, and http://www.mydomainname.com/crons/pop.php the email will only import to the ticket system.

 

May I know what i can do to resolve this issue?

 

Thank you very much.

 

I spent 3 weeks without an automated system cron job being ran. I submitted tickets to WHMCS that replied saying it was wrong ioncube cli loaded by web-host, I submitted tickets to web-host that said they then uploaded the current version of ioncube. Which led me back to another ticket with WHMCS....8 replies later I was told there was something wrong with the host php as I was getting a fetal error

[Fatal error: Uncaught Error: Undefined constant 'WHMCS\Environment\PHP_OS' in /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Environment/OperatingSystem.php:0

Stack trace:

#0 /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/File.php(0): WHMCS\Environment\OperatingSystem::isWindows()

#1 /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/View/Template.php(0): WHMCS\File->__construct('/home/frienibf/...')

#2 /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/View/Template.php(0): WHMCS\View\Template::find('five')

#3 /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/View/Template.php(0): WHMCS\View\Template::all()

#4 /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Application.php(0): WHMCS\View\Template::factory('six', '', '')

#5 /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Application/ApplicationServiceProvider.php(0): WHMCS\Application->__construct(Object(WHMCS\Config\Application), Object(WHMCS\Dat in /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Terminus.php on line 0]. This is the solution that works for me until php 7.0 gets some patch work for my web-host.

 

1.) rolled back php of cpanel to 5.6 (ensure ioncube_loader is checked and not ioncube_loader 4)

2.) rolled back php.ini to 5.6 zend_extension = /username/public_html/ioncube/ioncube_loader_lin_5.6.so

3.) re run the ioncube_loader wizard.php from url

4.) ssh in and ran

 error reporting on

5.) after complete run I disabled the error reporting from inside WHMCS

 

Best regards to all seeking a solution the the php 7.0/whmcs 7.1/ioncube_loader errors,

Anthony Lester

Link to comment
Share on other sites

#0 /home/frienibf/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/File.php(0): WHMCS\Environment\OperatingSystem::isWindows()

So, you're trying to use WHMCS 7 on Windows devices? Even the documentation says that don't go there

 

* We validate WHMCS to run in Linux based environments running the Apache web server. Other environments such as Windows based configurations may experience compatibility issues and are not supported.

You're likely going to need to move this to a Linux server, or you're going to run into more issues

Link to comment
Share on other sites

  • 3 years later...

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