Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    1

    Default Problems with Setcom payment module on PHP5

    Hi Guys

    Please can you help.

    We have been trying to implement the Setcom module into a ZenCart driven website that runs on PHP5 but to no avail.

    After we have completed all the steps in the installation file including the additional steps for PHP5 installations we get the following error when we want to setup the Setcom payment module in the admin section:

    "Fatal error: Call to undefined method setcom::check() in /home/tierlant/public_html/shop/admin/modules.php on line 193"

    Please could you try and help us out.

    We are currently using the Setcom South Africa ZenCart Payment Module v1.2

    I have attached a screen shot of the problem.

    Thanks
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Problems with Setcom payment module on PHP5

    Hi - don't know if this will help, but I managed to get the Setcom payment module to work by editing the PHP5 setcom.php file (in includes/modules/payment/setcom) as follows:

    1. Deleted line 239 (duplicated with line 238)
    2. Inserted the following code after line 407:
    function check() {
    global $db;
    if (!isset($this->_check)) {
    $check_query = $db->Execute("select configuration_value from " .
    TABLE_CONFIGURATION . " where configuration_key =
    'MODULE_PAYMENT_SETCOM_STATUS'");
    $this->_check = $check_query->RecordCount();
    }
    return $this->_check;
    }

    I know very little about php but it seemed that this function existed in the PHP4 code and (somehow) it seemed to solve the problem.

    I'll be curious to know if it works for you.

    Cheers

  3. #3
    Join Date
    Jan 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Problems with Setcom payment module on PHP5

    Thank you it did work for me!

 

 

Similar Threads

  1. Setcom Payment module not showing up on the Payment page
    By SoftDux in forum Addon Payment Modules
    Replies: 7
    Last Post: 15 Jul 2009, 01:08 PM
  2. SETCOM payment problems
    By capanno in forum Addon Payment Modules
    Replies: 5
    Last Post: 19 May 2009, 03:02 PM
  3. Setcom Payment module error
    By Nickman in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 9 Jan 2008, 09:13 AM
  4. SETCOM Payment Module
    By Nanettedp in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 29 Nov 2007, 11:17 AM
  5. Setcom Payment Module
    By gert in forum Addon Payment Modules
    Replies: 3
    Last Post: 28 May 2007, 04:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg