Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: htmlspecialchars()


burtoni

Recommended Posts

/home/burtoni/public_html/catalog/includes/functions/general.php on line 42

 

This error message appears on the order confirmation. But I can still confirm the order.

 

But i didnt modify anything manually in general.php -

Can someone tell me how to fix this, even if manually in PhpAdmin?

Link to comment
Share on other sites

Yes, this happens on the order confirmation whilst creating an account in any language (english, german or french).

The previous pages (delivery- and payment information) show the addresses correctly, though i feel it has something to do with the payment method (only one out of three showing)

 

Delivery Address (Edit) 

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

Billing Information 
Billing Address (Edit) 

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

Payment Method (Edit) 
Cash on Delivery

Link to comment
Share on other sites

ok the sequence I understand is this:

checkout_confirmation.php calls tep_output_string_protected($order->info['comments'])

This in turn calls tep_output_string and the function complains that an array was passed instead of a string. Is this 'comments' entry empty?

Link to comment
Share on other sites

OK, this seems a long winded problem....

Yes the comments entry is empty.

 

Under Yesudos "some solutions" link (Issue 4: Warning: htmlspecialchars() expects parameter 1 to be string, array) there are 4 pages to go through!

 

 

I think i'll start by trying to restore a backup or something instead!

 

Any help please on which php-files to restore?

 

Thanks for your help guys....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...