Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Guest

Recommended Posts

Searched long and hard for hours looking for this fix to a problem I was having in the order details page in Admin.

 

I have seen this error posted numerous times for both admin and catalog order details, I believe this fixed both.

 

This is the warning I received:

 

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

/home/xxxxx/public_html/catalog or admin/includes/functions/general.php on line "whatever"

 

Small code change in

admin/includes/functions/general.php

calalog/includes/functions/general.php

 

Here is the link worked for me :)

 

http://www.oscommerce.com/forums/index.php?sho...07158&st=60

Link to comment
Share on other sites

  • 3 weeks later...

Hello, you mention in your post that the guys have cracked it with two simple changes to general.php.

 

I can not see the solution in the thread you linked to, could you please post the actual

_____________________________________

My problem:

Warning: htmlspecialchars() expects parameter 1 to be string, array given in ......\functions\general.php on line 42

___________________________________________

I have added (not knowing why, it was suggested as the fix)

if (is_array($string)) {

$string=$string[title];

}

______________________________________________

This allows me to carry on checking out, but I dont think its the solution because I can not see the addresses in the order confirmation screen, its just blank

 

Please help if you can,

Marco

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...