Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping address disaster!


pure-dvd.com

Recommended Posts

When an order is processed the error message below appears rather than a pre-input billing address?????

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/virtual/site162/fst/var/www/html/store/includes/functions/general.php on line 42

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/virtual/site162/fst/var/www/html/store/includes/functions/general.php on line 42

 

The code reads:

////
// Parse the data used in the html tags to ensure the tags will not break
 function tep_parse_input_field_data($data, $parse) {
   return strtr(trim($data), $parse);
 }

 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);
     }
   }
 }

I'd be eternally grateful for any help in this!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...