Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I dont want to deliver it....


Guest

Recommended Posts

Ok i think my oscommerce is in a mood for some really weired reason when ever a customer is going through an order all goes well until it comes to confrming the shipping, billing, etc address. All i get is

 

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

 

Below is a few lines from general.php, where it says ) else ) thats like 42

 

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

 

does anyone have a clue as to why its doing this?!

 

cheers

JAK

Link to comment
Share on other sites

  • 4 weeks later...

Doesn't anybody have any thoughts on this problem?

I have the same problem, which doesn't seem to be trasnlation oriented.

The error that reads - in both languages - is during checkout at the billing address form(confirmation form)and says:

 

Billing Address (Edit)

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/ioanides/ioannides-www/eshop/catalog/includes/functions/general.php on line 42

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/ioanides/ioannides-www/eshop/catalog/includes/functions/general.php on line 42

 

Payment Method (Edit)

Cash on Delivery

 

 

And this is what general.php shows at line 42:

 

////

// 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) {

(42)  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 could appreciate any thoughts you might have.[/code]

Link to comment
Share on other sites

Doesn't anybody have any thoughts on this problem?

I have the same problem, which doesn't seem to be trasnlation oriented.

The error that reads - in both languages - is during checkout at the billing address form(confirmation form)and says:

 

Billing Address (Edit)

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/ioanides/ioannides-www/eshop/catalog/includes/functions/general.php on line 42

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/ioanides/ioannides-www/eshop/catalog/includes/functions/general.php on line 42

 

Payment Method (Edit)

Cash on Delivery

 

 

And this is what general.php shows at line 42:

 

////

// 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) {

(42)  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 could appreciate any thoughts you might have.[/code]

Link to comment
Share on other sites

  • 2 weeks later...

I also have exactly the same problem when I did a clean installation of MS2 and Linda's SEC. I manually updated my database structure using Linda's steps.

 

The UPS or USPS shipping quotes don't show.

 

Any thoughts on this?

 

Thanks.

 

Wendy

Link to comment
Share on other sites

has anyone found a solution to this problem? I am new to this program, but I have run into this as well. I have no idea how to get through it.

 

can we get some help here?

Link to comment
Share on other sites

well this is odd. it seems to have gone away. first I commented out line 42 in general.php, and that page woudl come up without showing an error, but my address would be flaked out. so then I wehn into my address book and selected United states as my country, and uncommected out that line 42. refreshed and for some reason. all is well.

 

I got no idea..

Link to comment
Share on other sites

I have not added any mods.

all stock,. but I have been culling some of the unwanted stuff

like, all the countries except for usa and canada.

acutally, all the countries, then I re added usa and canada.

 

I might have created my account begfore I did that..

Link to comment
Share on other sites

  • 3 months later...

HI

 

I started off with the same error and realised that if you delete any of the states or countries from the admin you will get this error. Go in and change the shipping address and billing address and you might see that the data now shows up. It did on mine anyhow so i was just trying to be informative.

 

Thanks

 

Marc

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...