Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

warning on checkout_confirmation.php


eyal-an

Recommended Posts

Hi.

 

I've added few input fields for the shipping address page ,

When oreder is been made, when I get to checkout_confirmation.php page

this message is occur: " Warning: htmlspecialchars() expects parameter 1 to be string, array given in /sites/sendflowers.co.il

/htdocs/includes/functions/general.php on line 42 "

 

when opening general.php page at line 42 :

 

35. // Parse the data used in the html tags to ensure the tags will not break

36. function tep_parse_input_field_data($data, $parse) {

37. return strtr(trim($data), $parse);

38. }

39.

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

41. if ($protected == true) {

42. return htmlspecialchars($string);

43. } else {

44. if ($translate == false) {

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

46. } else {

47. return tep_parse_input_field_data($string, $translate);

48. }

49. }

50. }

 

 

has anyone got any ideas on how to fix this problem

 

Thanks

 

Eyal.

Link to comment
Share on other sites

  • 3 months later...
Hi.

 

I've added few input fields for the shipping address page ,

When oreder is been made, when I get to checkout_confirmation.php  page

this message is occur: " Warning: htmlspecialchars() expects parameter 1 to be string, array given in /sites/sendflowers.co.il

/htdocs/includes/functions/general.php on line 42 "

 

when opening  general.php page at line 42 :

 

35. // Parse the data used in the html tags to ensure the tags will not break

36.  function tep_parse_input_field_data($data, $parse) {

37.    return strtr(trim($data), $parse);

38.  }

39.

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

41.    if ($protected == true) {

42.      return htmlspecialchars($string);

43.    } else {

44.      if ($translate == false) {

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

46.      } else {

47.        return tep_parse_input_field_data($string, $translate);

48.      }

49.    }

50.  }

 

 

      has anyone got any ideas on how to fix this problem

 

      Thanks

   

      Eyal.

 

 

I am having this problem too. Can't seem to find the answer. Hope someone can help me.

 

Thanks in advance.

Regards,

Kevin

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...