knipper Posted June 2, 2017 Share Posted June 2, 2017 Hi, I just updated from a very old version of WHMCS to 7.2.1 (and today to 7.2.2) my main cron jobs are working fine, but my resellerclub cron is sending an error with a connection problem. Below is the error: Warning: main(/home/myaccount/public_html/clientarea/modules/registrars/resellerclub/../../../dbconnect.php): failed to open stream: No such file or directory in /home/myaccount/public_html/clientarea/modules/registrars/resellerclub/resellerclubsync.php on line 0 Fatal error: main(): Failed opening required '/home/myaccount/public_html/clientarea/modules/registrars/resellerclub/../../../dbconnect.php' (include_path='.:/opt/php56/lib/php') in /home/myaccount/public_html/clientarea/modules/registrars/resellerclub/resellerclubsync.php on line 0 I suspect it may be a simple cron entry error or something minor that changed from the old version I am just missing. Any suggestions on this message? Thanks in advance! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 2, 2017 Share Posted June 2, 2017 from the v5.1 Release Notes... (from 2012 - so it must be a very old version you were using!!) New Domain Registrar Sync Cron - Until now, each registrar has had it's own sync file. But as of V5.1, the individual sync files are replaced by a single cron file (/crons/domainsync.php) which needs to be configured to run periodically - we recommend every 4 hours. All previous sync cron commands should be deleted/disabled. and from v6, I can remember that dbconnect.php got removed and is no longer used. http://docs.whmcs.com/Version_6.0_Release_Notes#Removal_of_Dbconnect.php 6.0 sees the removal of the dbconnect.php file from the root WHMCS directory. This file has been deprecated since WHMCS Version 5.2 and has remained only for backwards compatibility with older modules. As of 6.0 however, any scripts which still rely on including the dbconnect.php file to function will need to be updated to instead include the init.php file. When including the init.php file, it is not necessary to include any other WHMCS files. welcome to 2017! 0 Quote Link to comment Share on other sites More sharing options...
knipper Posted June 2, 2017 Author Share Posted June 2, 2017 Thanks for the reply and links Brian! Long story... As you can tell I've been using WHMCS for a LONG time! Pretty sure I was still on 5.2 before the upgrade. I actually sold my hosting business in 2010, but kept one reseller server for my personal domains... and 2 long time clients who didn't want to move away from me. Of course one of them uses Resellerclub for their domains! Looks like I may need to go thru the docs and set up a new cron! If I have any difficulties or questions I'll pop back in. I think this is the first time I've used the forum for several years as well! Good to see it's still a strong community! 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.