Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default iridium problems

    Couldn't find anything like this in the forum so I hope its ok to post this here.
    Just installed zen-cart 1.3.8a on a linux server. Zen-cart seems to work properly. I setup the store from scratch, no demo data. MySql works perfectly.

    Then I installed the ceon iridium payment module v 1.2.0 and copied all files as instructed in the documentation.

    Under Modules/Payment I now get the error message:

    Parse error: syntax error, unexpected ';', expecting '(' in /includes/modules/payment/iridium.php on line 1168

    Assuming that this is not a bug as such, where would I start to search for the reasons?

    thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: zen-cart / iridium problems

    Start by looking at the file iridium.php on line 1168 and see what is there
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: iridium problems

    Thanks kobra, I've been down that road, just thought there is a simple way :)

    the error occurs here:
    // Transaction Type
    switch (MODULE_PAYMENT_IRIDIUM_TRANSACTION_TYPE) {
    case "Immediate Charge":
    $transaction_type = IridiumTransactionType::SALE;
    break;
    case "Pre-authorised":
    $transaction_type = IridiumTransactionType::PREAUTH;
    break;
    case "Stored":
    $transaction_type = IridiumTransactionType::STORE;
    break;
    }

    so I put the three strings into quotes like this:
    // Transaction Type
    switch (MODULE_PAYMENT_IRIDIUM_TRANSACTION_TYPE) {
    case "Immediate Charge":
    $transaction_type = 'IridiumTransactionType::SALE';
    break;
    case "Pre-authorised":
    $transaction_type = 'IridiumTransactionType::PREAUTH';
    break;
    case "Stored":
    $transaction_type = 'IridiumTransactionType::STORE';
    break;
    }

    which brings up this error:
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/7/d90199822/htdocs/testcountry2/zen-cart/includes/modules/payment/iridium.php on line 1382

    where it reads:
    for ($country_i = 0; $country_i < $iclISOCountryList->getCount() - 1; $country_i++) {
    if ($iclISOCountryList->getAt($country_i)->getCountryNameShort() == $zen_country_code) {
    $country_code = $iclISOCountryList->getAt($country_i)->getISOCode();
    break;
    }
    }


    where I'm stuck at the moment.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: iridium problems

    Well that is a lot more than the one line referenced??
    Code:
    Parse error: syntax error, unexpected ';', expecting '(' in /includes/modules/payment/iridium.php on line 1168
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: iridium problems

    Hi,

    The module is not compatible with PHP 4.

    You have to be using PHP 5 for this module to work on your server. I think that's why you are getting a syntax error.

    All the best...

    Conor

 

 

Similar Threads

  1. Iridium Module - Blank Page - Debug Error
    By katea in forum Addon Payment Modules
    Replies: 3
    Last Post: 11 Jun 2010, 08:49 PM
  2. Iridium UK Merchant Accounts
    By conor in forum Addon Payment Modules
    Replies: 5
    Last Post: 12 Aug 2009, 12:10 PM
  3. Iridium Zen Royal Mail
    By bonefishjoey in forum General Questions
    Replies: 0
    Last Post: 30 Jul 2009, 02:39 PM
  4. pp pro and iridium
    By p1lot in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 6 Jul 2009, 07:39 PM
  5. Iridium Problems using ceon module
    By krav in forum Addon Payment Modules
    Replies: 4
    Last Post: 12 Sep 2008, 02:09 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