Jump to content

Payment Gateway problem


clever-host

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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