clever-host Posted August 30, 2015 Share Posted August 30, 2015 Hi, I have one problem with one payment gateway.. This payment gateway is for whmcs 5, and when I try to make a payment I received this error: Warning: require(dbconnect.php): failed to open stream: No such file or directory in /home/cleverhost/public_html/mobilpaysms.php on line 10 Warning: require(dbconnect.php): failed to open stream: No such file or directory in /home/cleverhost/public_html/mobilpaysms.php on line 10 Fatal error: require(): Failed opening required 'dbconnect.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cleverhost/public_html/mobilpaysms.php on line 10 If put his here the mobilpaysms.php file, you can modify this file for whmcs 6? I try to modify but I don't have succes. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 30, 2015 Share Posted August 30, 2015 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. if you can edit the file, you might try changing dbconnect.php to init.php and see if that fixes it - otherwise, it might be best to contact the original author of the gateway. 0 Quote Link to comment Share on other sites More sharing options...
clever-host Posted August 31, 2015 Author Share Posted August 31, 2015 Hi, I have this line: define('CLIENTAREA', true); define('FORCESSL', true); require('dbconnect.php'); require('includes/functions.php'); require('includes/clientareafunctions.php'); require('includes/mobilpaysms.php'); include("../../../dbconnect.php"); include("../../../includes/functions.php"); include('../../../includes/mobilpaysms.php'); include("../../../dbconnect.php"); include("../../../includes/functions.php"); include("../../../includes/gatewayfunctions.php"); include("../../../includes/invoicefunctions.php"); You can modify this line for me, please? thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 31, 2015 Share Posted August 31, 2015 it would be better to contact the original author - they'll have access to all the files and should be able to update it. 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.