rustin Posted January 12, 2004 Share Posted January 12, 2004 This wasn't happening till I installed Easy Populate Now when an order is created everything looks fine until the Order Confirmation screen and I get this error Warning: htmlspecialchars() expects parameter 1 to be string, array given in/home/bestmovi/public_html/presto/includes/functions/general.phpon line 42 in both the delivery address and the billing address. and on Confirm two orders are created with the same order number. One adds UPS standard to the total, and another adds UPS overnight IN ADDITION to the flat rate shipping that was selected. anyone have any idea what I can do to fix this? Have I given enough info? Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2004 Share Posted January 12, 2004 go back over the instructions of easy populate to make sure you did it correctly. also, what version of the contribution did you install? i believe 2.73 is the latest. Link to comment Share on other sites More sharing options...
rustin Posted January 12, 2004 Author Share Posted January 12, 2004 I re-read the install instructions and I'm sure I covered every step. My error doesn't show up in the troubleshooting section of th document and I do have the most recent version of EP I'm totally stumped Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2004 Share Posted January 12, 2004 double check settings in admin, turn off cache, look at the server access and error logs, turn on session sql logging, you may be able to see where it is crashing at. Link to comment Share on other sites More sharing options...
rustin Posted January 12, 2004 Author Share Posted January 12, 2004 I'm not sure what to look for in the logs. I'm a total novice. I'm guessing this isn't like a "oh yea I've heard of that" thing. I must have created a mess somehow Link to comment Share on other sites More sharing options...
rustin Posted January 12, 2004 Author Share Posted January 12, 2004 This is where the error message is talking about. This is lines 34-59 in catelog/includes/functions/general.php ////// 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) { return htmlspecialchars($string); } else { if ($translate == false) { return tep_parse_input_field_data($string, array('"' => '"')); } else { return tep_parse_input_field_data($string, $translate); } } } function tep_output_string_protected($string) { return tep_output_string($string, false, true); } function tep_sanitize_string($string) { $string = ereg_replace(' +', ' ', trim($string)); return preg_replace("/[<>]/", '_', $string); } In comparing it looks just like the clean install version of the file. I just don't know enough about php or SQL to know where to turn. I'm going to keep reading. Thank you again for all your help. you have been awesome. Link to comment Share on other sites More sharing options...
rustin Posted January 12, 2004 Author Share Posted January 12, 2004 found another thread on the subject as well. Seems I'm not the only one. http://www.oscommerce.com/forums/index.php?showtopic=73232 Link to comment Share on other sites More sharing options...
rustin Posted January 12, 2004 Author Share Posted January 12, 2004 bump. can anyone shed light on this error? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.