cardoso Posted September 6, 2008 Share Posted September 6, 2008 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 More sharing options...
germ Posted September 6, 2008 Share Posted September 6, 2008 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 More sharing options...
germ Posted September 6, 2008 Share Posted September 6, 2008 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 More sharing options...
cardoso Posted September 6, 2008 Author Share Posted September 6, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.