syh43 Posted January 11, 2017 Share Posted January 11, 2017 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 11, 2017 Share Posted January 11, 2017 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. 0 Quote Link to comment Share on other sites More sharing options...
syh43 Posted January 12, 2017 Author Share Posted January 12, 2017 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 12, 2017 Share Posted January 12, 2017 Hi Syh43, Just to confirm you are using the line: /opt/php56/bin/php -q /home/username/public_html/clients/crons/cron.php And you have a the cron set to run every 5 minutes, have you also confirmed the correct PHP Path with your host 0 Quote Link to comment Share on other sites More sharing options...
syh43 Posted January 12, 2017 Author Share Posted January 12, 2017 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 12, 2017 Share Posted January 12, 2017 Hi Syh43, With the path [code[/opt/php56/bin/php -q /home/username/public_html/crons/cron.php all --force -vvv[/code] could you check the email that your cron email from cPanel go to and let us know what the email shows in the response. 0 Quote Link to comment Share on other sites More sharing options...
battles Posted January 13, 2017 Share Posted January 13, 2017 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 13, 2017 Share Posted January 13, 2017 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. 0 Quote Link to comment Share on other sites More sharing options...
LetsTalk Posted February 1, 2017 Share Posted February 1, 2017 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' 0 Quote Link to comment Share on other sites More sharing options...
FriendlyNGeeks Posted March 31, 2017 Share Posted March 31, 2017 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 on5.) 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 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted March 31, 2017 Share Posted March 31, 2017 #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 0 Quote Link to comment Share on other sites More sharing options...
andrezzz Posted March 23, 2021 Share Posted March 23, 2021 Hello! I have the same problem in WHMCS v8, thought Web works, but thought cPanel no 😞 Kind regards 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.