Jump to content

Cron error, cannot redeclare...


MikkM

Recommended Posts

Reciving following error when running cron from ssh with -F all -vvv :

 

Quote

 

PHP Fatal error:  Cannot redeclare getwhmcsinitpath() in  on line 0

Fatal error: Cannot redeclare getwhmcsinitpath() in  on line 0
[WHMCS Application] ERROR: exception 'Whoops\Exception\ErrorException' with message 'Cannot redeclare getwhmcsinitpath()' in :0 Stack trace: #0 /home/boomtv/public_html/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(1, 'Cannot redeclar...', '', 0) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} {"exception":"[object] (Whoops\\Exception\\ErrorException(code: 1): Cannot redeclare getwhmcsinitpath() at :0)"} []

 

 

How to debug more ?


 

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

This error suggests an after-market customisations is doing an include() PHP call on a core WHMCS file when it doesn't need to, most likely a hook or addon. The first thing to try is temporarily removing any customisations that may be interfering with the normal operation of WHMCS such as addons and action hooks. These are typically located in the /modules/ and /includes/hooks directories.

When the problem stops you should contact the vendor of the offending addon for support regarding their code.

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