Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout error (psigate XML)


cardoso

Recommended Posts

Hi all, when I run my test, I get the following error message on the checkout page:

 

Warning: Wrong parameter count for substr() in /home/freshtor/public_html/shop/includes/modules/payment/psigate_xml.php on line 188

 

anyone know what this means?

 

Thanks a million

Nelson Cardoso

Link to comment
Share on other sites

The problem would be this line:

 

'field' => substr($this->cc_card_number) . str_repeat('X', (strlen($this->cc_card_number) - 4)) . substr($this->cc_card_number, -4)),

Specifically this code:

 

substr($this->cc_card_number)

An earlier version of that file has this code in that area:

 

substr($this->cc_card_number, 0, 4)

At least it will fix the error.

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Actually, the whole line from the previous version is:

 

'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),

You probably should use it.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

You rock my friend!!! Thank you. Any chance you can help me with this one? Don't mean to push my luck :)

 

http://www.oscommerce.com/forums/index.php?showtopic=314161

 

Thanks again. Nelson

 

Actually, the whole line from the previous version is:

 

'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),

You probably should use it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...