MichelleD Posted April 19, 2008 Posted April 19, 2008 I updated the catalog/includes/configure.php and admin/includes/config.php for new SSL Dedicated Certificate SSL now shows for checkout area except for the last page the confirmation page. I get this message on the confirmation order page filtering through. It reads: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/username/public_html/store/includes/functions/general.php on line 4 Thanks for your help
MichelleD Posted April 20, 2008 Author Posted April 20, 2008 I updated the catalog/includes/configure.php and admin/includes/config.php for new SSL Dedicated Certificate SSL now shows for checkout area except for the last page the confirmation page. I get this message on the confirmation order page filtering through. It reads: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/username/public_html/store/includes/functions/general.php on line 4 Thanks for your help Here is the area of code for general.php that needs to be edited: //// // Redirect to another page or site function tep_redirect($url) { if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } header('Location: ' . $url); tep_exit(); } //// // 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); } }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.