burtoni Posted August 2, 2005 Share Posted August 2, 2005 /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 More sharing options...
burtoni Posted August 3, 2005 Author Share Posted August 3, 2005 Does anyone have a clue what causes this error ? Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2005 Share Posted August 3, 2005 Does anyone have a clue what causes this error ? <{POST_SNAPBACK}> Are you able to check the string parameter that is passed to the htmlspecialchars function? The link to the function details is here: htmlspecialchars Are you using english lang when this happens? Link to comment Share on other sites More sharing options...
burtoni Posted August 3, 2005 Author Share Posted August 3, 2005 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 More sharing options...
Guest Posted August 3, 2005 Share Posted August 3, 2005 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 More sharing options...
♥yesudo Posted August 3, 2005 Share Posted August 3, 2005 A thread to read: http://www.oscommerce.com/forums/index.php?aut...og&blogid=4&st= Your online success is Paramount. Link to comment Share on other sites More sharing options...
burtoni Posted August 3, 2005 Author Share Posted August 3, 2005 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 More sharing options...
♥yesudo Posted August 3, 2005 Share Posted August 3, 2005 Read from page 3. Your online success is Paramount. Link to comment Share on other sites More sharing options...
burtoni Posted August 4, 2005 Author Share Posted August 4, 2005 Ok, that helped me on the right track to solve my problem. It was because I had deleted all but one country - thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.