Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Check out problem


Guest

Recommended Posts

Hi, i am having problem after installing CVV contribution. During check out in order confirmation, inside Delivery Address and Billing Address, it said

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/simply/public_html/includes/functions/general.php on line 42

 

and

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/simply/public_html/includes/functions/general.php on line 42

 

I have reinstall includes/functions/general.php from backup and the problem is still there.

 

Thanks in advance.

Kevin

Link to comment
Share on other sites

Hi, i am having problem after installing CVV contribution. During check out in order confirmation, inside Delivery Address and Billing Address, it said

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/simply/public_html/includes/functions/general.php on line 42

 

and

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/simply/public_html/includes/functions/general.php on line 42

 

I have reinstall includes/functions/general.php from backup and the problem is still there.

 

Thanks in advance.

Kevin

 

 

if the CVV contribution did not require you to change general.php, then nothing is wrong with that file.

 

The error is in one of the contribution files which calls the htmlspecialchars() function and gives it an array instead of a string.

Treasurer MFC

Link to comment
Share on other sites

if the CVV contribution did not require you to change general.php, then nothing is wrong with that file.

 

The error is in one of the contribution files which calls the htmlspecialchars() function and gives it an array instead of a string.

 

Hi Boxtel, thanks for your response. Before i install CVV contribution, i have install Header Tags Controller. Do you think that the problem? Probably i need to recheck Header Tags controller files.

 

Thanks

Link to comment
Share on other sites

Hi Boxtel, thanks for your response. Before i install CVV contribution, i have install Header Tags Controller. Do you think that the problem? Probably i need to recheck Header Tags controller files.

 

Thanks

 

 

I would work my way back but check out the contribution support sections for both first as chances are that this problem has popped up before and was solved.

Treasurer MFC

Link to comment
Share on other sites

I would work my way back but check out the contribution support sections for both first as chances are that this problem has popped up before and was solved.

 

I just work my way back to the Header Tags Controller and reinstall all the files again but the problem is still there. You can actually checkout and paid by your credit card and the CVV contribution works fine. The problem is only in the Billing Address and Shipping Address boxes with the warning. Funny! My Header Tags Controller work fine too.

 

Thanks on advance

Kevin

Link to comment
Share on other sites

I just work my way back to the Header Tags Controller and reinstall all the files again but the problem is still there. You can actually checkout and paid by your credit card and the CVV contribution works fine. The problem is only in the Billing Address and Shipping Address boxes with the warning. Funny! My Header Tags Controller work fine too.

 

Thanks on advance

Kevin

 

 

well, it is only a warning, not an error per-se.

Treasurer MFC

Link to comment
Share on other sites

well, it is only a warning, not an error per-se.

 

I just checked includes/function/general.php files again and i noticed something like this :

 

function tep_output_string($string, $translate = false, $protected = false) {

if ($protected == true) {

return htmlspecialchars($string);

} else {

if ($translate == false) {

return tep_parse_input_field_data($string, array('"' => '"'));

} else {

return tep_parse_input_field_data($string, $translate);

 

Did you notice '"')); code. Is this an error?

 

Thanks

Regards,

Kevin

Link to comment
Share on other sites

I just checked includes/function/general.php files again and i noticed something like this :

 

function tep_output_string($string, $translate = false, $protected = false) {

    if ($protected == true) {

      return htmlspecialchars($string);

    } else {

      if ($translate == false) {

        return tep_parse_input_field_data($string, array('"' => '"'));

      } else {

        return tep_parse_input_field_data($string, $translate);

 

Did you notice '"')); code. Is this an error?

 

Thanks

Regards,

Kevin

 

no, that is OK, like I said, if you did not touch general.php, you may assume that file to be clean.

Treasurer MFC

Link to comment
Share on other sites

Hi Boxtel,

 

:lol: Finally found the problem. When i test my site by creating an account, somehow i put my country as Afghanistan as it should be Malaysia. So i log into Customers and checked and corrected it to Malaysia and the problem is solved.

 

Thanks anyway for the effort.

Regards,

Kevin

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...