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!

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:
    267
    Likes Received:
    20
    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 ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,726
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,726
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,726
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice