Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error in cron job after upgrading to latest version

Discussion in 'General Discussion' started by zeoz, Aug 28, 2017.

Tags:
  1. zeoz

    zeoz Registered

    Joined:
    Aug 28, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hello everyone.

    i recently upgrade whm in the latest version. Since then my cronjob start getting the error:

    <br />
    <b>Fatal error</b>: Directive 'asp_tags' is no longer available in PHP in
    <b>Unknown</b> on line <b>0</b><br />

    any idea how to fix that?

    thanks!
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    204
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    IF you are using PHP 7.0 then it does not support the asp_tags directive , what version of PHP are you using ?
     
  3. zeoz

    zeoz Registered

    Joined:
    Aug 28, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hi Eminds and thank you for the reply
    im using php7 thats correct.

    any idea how to stop those emails?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Check to see if you are using a custom php.ini file under the account associated with that cron job. If one exists, try moving it out of the way to see if that solves the issue, and then make any custom changes to the account's PHP configuration using the MultiPHP INI Editor option in cPanel.

    Thank you.
     
  5. zeoz

    zeoz Registered

    Joined:
    Aug 28, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hi Michael

    i dont have any custom php.ini file. The only cronjob im running tho to this account is the one from whmcs.

    thanks
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide more details about the specific cron job you have enabled (e.g. specific command, how it's configured)? You may also want to consult with the WHMCS support team at:

    WHMCS Community Forums

    Thank you.
     
  7. zeoz

    zeoz Registered

    Joined:
    Aug 28, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    the only crons im running are the default ones below:

    */5 * * * * php -q /home/username/crons/cron.php
    php -q /home/user/public_html/whmcs/crons/domainsync.php

    thanks!!
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you sure no custom php.ini file exists in /home/username/ directory? If there's no php.ini file, feel free to open a support ticket using the link in my signature so we can take a closer look.

    Thank you.
     
Loading...

Share This Page