DamienH Posted November 9, 2014 Share Posted November 9, 2014 hi there, Im upgrading from 2.3.3 to 2.3.4 - and Im stuck on the first part of the upgrade, from 2.3.3 to 2.3.3.1 Firstly, I tried adding the new files directly from the zipped upgrade files provided by osCommerce: http://www.oscommerce.com/Products This messed up the template in multiple ways (slider appearing on all pages instead of just homepage, top level categories wouldnt pull in products in its sub-categories, etc, etc) So instead I tried to do it by hand, switchinb the code via the official release instructions: http://library.oscommerce.com/Online&en&oscom_2_3&release_notes After amending the files as instructed, im getting the following error:Fatal error: Call to undefined function tep_parse_input_field_data() in /home/content/62/12400362/html/includes/functions/general.php on line 61 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) { $patterns = array ('/ +/','/[<>]/'); $replace = array (' ', '_'); return preg_replace($patterns, $replace, trim($string)); } Im totally stuck, so any advice would be greatly appreciated. Ive literally spent days trying to upgrade, admittedly Im more used to working Wordpress, Drupal and Joomla, and have to say compared to those, osCommerce is ridiculously designed/formatted regarding upgrades. Its the only CMS that I have come across that is almost impossible to upgrade. Link to comment Share on other sites More sharing options...
acidvertigo Posted November 9, 2014 Share Posted November 9, 2014 In general php you have to add this function //// // 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); } Link to comment Share on other sites More sharing options...
DamienH Posted November 9, 2014 Author Share Posted November 9, 2014 Thanks so much for that... just one added question... do I put this in includes/functions/general.php or admin/includes/functions/general.php or both? Link to comment Share on other sites More sharing options...
acidvertigo Posted November 9, 2014 Share Posted November 9, 2014 on both Link to comment Share on other sites More sharing options...
DamienH Posted November 9, 2014 Author Share Posted November 9, 2014 Thanks again, really appeciate the help Luca ciao bello! Link to comment Share on other sites More sharing options...
acidvertigo Posted November 9, 2014 Share Posted November 9, 2014 I'm glad to have help you Ciao :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.