Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: htmlspecialchars() expects parameter 1 to be string,


rabbitseffort

Recommended Posts

Posted

So I notice some customers at times get this during checkout where addresses should be, maybe someone here knows why, this started happening when I rebuilt this site, and imported customers from one database to the new database avout 6 months ago--it doesn't seem to cause too much trouble, but it also doesn't bring the address info in with the order, so we have to go to our old database to get the customers info there--thankfully we saved that database info!

 

the error is:

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

 

and the code it refers to is :(lines 60-70)

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

 

Thanks for any assistance!

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Archived

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

×
×
  • Create New...