Guest Posted February 15, 2005 Share Posted February 15, 2005 Hi, i am having problem after installing CVV contribution. During check out in order confirmation, inside Delivery Address and Billing Address, it said Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/simply/public_html/includes/functions/general.php on line 42 and Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/simply/public_html/includes/functions/general.php on line 42 I have reinstall includes/functions/general.php from backup and the problem is still there. Thanks in advance. Kevin Link to comment Share on other sites More sharing options...
boxtel Posted February 15, 2005 Share Posted February 15, 2005 Hi, i am having problem after installing CVV contribution. During check out in order confirmation, inside Delivery Address and Billing Address, it said Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/simply/public_html/includes/functions/general.php on line 42 and Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/simply/public_html/includes/functions/general.php on line 42 I have reinstall includes/functions/general.php from backup and the problem is still there. Thanks in advance. Kevin <{POST_SNAPBACK}> if the CVV contribution did not require you to change general.php, then nothing is wrong with that file. The error is in one of the contribution files which calls the htmlspecialchars() function and gives it an array instead of a string. Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2005 Share Posted February 15, 2005 if the CVV contribution did not require you to change general.php, then nothing is wrong with that file. The error is in one of the contribution files which calls the htmlspecialchars() function and gives it an array instead of a string. <{POST_SNAPBACK}> Hi Boxtel, thanks for your response. Before i install CVV contribution, i have install Header Tags Controller. Do you think that the problem? Probably i need to recheck Header Tags controller files. Thanks Link to comment Share on other sites More sharing options...
boxtel Posted February 15, 2005 Share Posted February 15, 2005 Hi Boxtel, thanks for your response. Before i install CVV contribution, i have install Header Tags Controller. Do you think that the problem? Probably i need to recheck Header Tags controller files. Thanks <{POST_SNAPBACK}> I would work my way back but check out the contribution support sections for both first as chances are that this problem has popped up before and was solved. Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2005 Share Posted February 15, 2005 I would work my way back but check out the contribution support sections for both first as chances are that this problem has popped up before and was solved. <{POST_SNAPBACK}> I just work my way back to the Header Tags Controller and reinstall all the files again but the problem is still there. You can actually checkout and paid by your credit card and the CVV contribution works fine. The problem is only in the Billing Address and Shipping Address boxes with the warning. Funny! My Header Tags Controller work fine too. Thanks on advance Kevin Link to comment Share on other sites More sharing options...
boxtel Posted February 15, 2005 Share Posted February 15, 2005 I just work my way back to the Header Tags Controller and reinstall all the files again but the problem is still there. You can actually checkout and paid by your credit card and the CVV contribution works fine. The problem is only in the Billing Address and Shipping Address boxes with the warning. Funny! My Header Tags Controller work fine too. Thanks on advance Kevin <{POST_SNAPBACK}> well, it is only a warning, not an error per-se. Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2005 Share Posted February 15, 2005 well, it is only a warning, not an error per-se. <{POST_SNAPBACK}> I just checked includes/function/general.php files again and i noticed something like this : 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); Did you notice '"')); code. Is this an error? Thanks Regards, Kevin Link to comment Share on other sites More sharing options...
boxtel Posted February 15, 2005 Share Posted February 15, 2005 I just checked includes/function/general.php files again and i noticed something like this : 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); Did you notice '"')); code. Is this an error? Thanks Regards, Kevin <{POST_SNAPBACK}> no, that is OK, like I said, if you did not touch general.php, you may assume that file to be clean. Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2005 Share Posted February 15, 2005 no, that is OK, like I said, if you did not touch general.php, you may assume that file to be clean. <{POST_SNAPBACK}> Thanks Boxtel, i will check with Contribution Support and see if there is any answer there. Regards, Kevin Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2005 Share Posted February 15, 2005 Hi Boxtel, :lol: Finally found the problem. When i test my site by creating an account, somehow i put my country as Afghanistan as it should be Malaysia. So i log into Customers and checked and corrected it to Malaysia and the problem is solved. Thanks anyway for the effort. Regards, Kevin Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.