Results 1 to 4 of 4
  1. #1
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

    Default Iridium Module - Blank Page - Debug Error

    Hi guys,

    I have the Iridium payment module installed.

    I'm looking for it to work with cardsave.

    It all installed good, blowfish is all fine.

    Filled in all the required details etc ...

    However, when I go to CONFIRM payment, I'm greeted with a completely blank page.

    I had a look at the debug log, and its seems there's an error on line 1213. The line in question is:

    Code:
    str_repeat('X', (strlen($this->card_number) - 8)) .
    This is the error I'm getting from the debugger:

    Code:
    PHP Warning:  str_repeat() [<a href='function.str-repeat'>function.str-repeat</a>]: Second argument has to be greater than or equal to 0 in /home/sites/mysite.com/public_html/includes/modules/payment/iridium.php on line 1213

    Can anyone help me to fix this error? As I'm hoping that this is the cause of the blank page ... I don't seem to have any other problems according to the debugger, so fingers crossed this works if someone can help me out.

    Thanks guys

    K xxx

  2. #2
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Iridium Module - Blank Page - Debug Error

    This is the full code for that section:

    Code:
    		$confirmation['fields'][] = array(
    				'title' => MODULE_PAYMENT_IRIDIUM_TEXT_CARD_NUMBER,
    				'field' => substr($this->card_number, 0, 4) .
    					str_repeat('X', (strlen($this->card_number) - 8)) .
    					substr($this->card_number, -4)
    			);

  3. #3
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Iridium Module - Blank Page - Debug Error

    Oops, seems to be one more:

    Code:
    PHP Warning:  str_repeat() [<a href='function.str-repeat'>function.str-repeat</a>]: Second argument has to be greater than or equal to 0 in /home/sites/mysite.com/public_html/includes/modules/payment/iridium.php on line 1322
    Different line but exactly the same code from line 1213 ..

    This is the full code for this part:

    Code:
    // Store the card details for this order
    			// Hide middle digits for the card number
    			$order->info['cc_number'] = substr($_POST['card_number'], 0, 4) .
    				str_repeat('X', (strlen($_POST['card_number']) - 8)) .
    				substr($_POST['card_number'], -4);

  4. #4
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Iridium Module - Blank Page - Debug Error

    No-one? Surely someone has had this problem?

    Please help!

 

 

Similar Threads

  1. Front page blank - Debug information says Query select error.
    By gtgderek in forum General Questions
    Replies: 4
    Last Post: 27 Apr 2011, 08:15 AM
  2. PHP Error - Blank Page w/ log files from debug utility.
    By jester8131 in forum General Questions
    Replies: 2
    Last Post: 5 Feb 2010, 05:35 AM
  3. Blank Page Error - Debug Result. Help?
    By avastyebucs in forum General Questions
    Replies: 4
    Last Post: 27 Aug 2009, 08:43 PM
  4. Getting a blank page, debug error-logging not working
    By credenscel in forum General Questions
    Replies: 7
    Last Post: 26 Jul 2009, 07:32 PM
  5. Please see my debug error - blank page
    By paigesjewelry in forum General Questions
    Replies: 1
    Last Post: 4 Jan 2009, 02:32 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR