Guest Posted January 8, 2009 Share Posted January 8, 2009 Hi, i have been running my oscommerce shop for 3.5 years now and all going smoothly when all of a sudden i get this error when people try and pay by credit card Using $this when not in object context in /home/scrapbox/public_html/catalog/includes/modules/email_invoice/templates/html_invoice.php on line 184 now I've looked at line 184 and this is what it says $this->cc_card_number_less_middle_digits = substr($order->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order->info['cc_number']) - 8)) . it's always said this - so i'm not sure what has changed - I have recently had to change servers and now running PHP version 5.2.8 instead of the version 4.2 I originally was running but it seems odd that nothing else has been effected so I'm not sure this is the cause I am not familiar with programing so I'm not sure what the problem might be and would really appreciate any suggestions. thanks in advance Maria Quote Link to comment Share on other sites More sharing options...
vmstudio Posted March 13, 2009 Share Posted March 13, 2009 Hi, i have been running my oscommerce shop for 3.5 years now and all going smoothly when all of a sudden i get this error when people try and pay by credit card Using $this when not in object context in /home/scrapbox/public_html/catalog/includes/modules/email_invoice/templates/html_invoice.php on line 184 now I've looked at line 184 and this is what it says $this->cc_card_number_less_middle_digits = substr($order->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order->info['cc_number']) - 8)) . it's always said this - so i'm not sure what has changed - I have recently had to change servers and now running PHP version 5.2.8 instead of the version 4.2 I originally was running but it seems odd that nothing else has been effected so I'm not sure this is the cause I am not familiar with programing so I'm not sure what the problem might be and would really appreciate any suggestions. thanks in advance Maria Did you figure out how to fix this? Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.