hel8itch Posted November 22, 2012 Posted November 22, 2012 okay i have installed a new template to a shop installation,and thought everything went fine but now im getting various errors if i change the currencie selection on the store i get this error Deprecated: Function ereg_replace() is deprecated in /home/medwayma/public_html/shop/includes/functions/general.php on line 57 if i try and add something to the cart i get this lots of errors Deprecated: Function ereg() is deprecated in /home/medwayma/public_html/shop/includes/functions/general.php on line 1042 Deprecated: Function ereg() is deprecated in /home/medwayma/public_html/shop/includes/functions/general.php on line 1042 Deprecated: Function ereg() is deprecated in /home/medwayma/public_html/shop/includes/functions/general.php on line 1042 Deprecated: Function ereg() is deprecated in /home/medwayma/public_html/shop/includes/functions/general.php on line 1042 Deprecated: Function ereg() is deprecated in /home/medwayma/public_html/shop/includes/functions/general.php on line 1042 Warning: Cannot modify header information - headers already sent by (output started at /home/medwayma/public_html/shop/includes/functions/general.php:1042) in/home/medwayma/public_html/shop/includes/functions/general.php on line 29 and if i try and go to the admin page i get this Parse error: syntax error, unexpected '}' in /home/medwayma/public_html/shop/admin/includes/application_top.php on line 35 any help would be amazing as this is really giving me a headache
burt Posted November 22, 2012 Posted November 22, 2012 Looks like the host has updated PHP version. In this version, these "commands" are no longer valid, so all need to be replaced. How it was: function tep_sanitize_string($string) { $string = ereg_replace(' +', ' ', trim($string)); return preg_replace("/[<>]/", '_', $string); } How it needs to be: function tep_sanitize_string($string) { $patterns = array ('/ +/','/[<>]/'); $replace = array (' ', '_'); return preg_replace($patterns, $replace, trim($string)); } If you search the addons area, you will find a addon that does some changes to these types of errors. I forget exactly what it is called. this is 1 example only, there will be many such things to mend to get your site properly working.
hel8itch Posted November 22, 2012 Author Posted November 22, 2012 right okay i have fixed the errors within the general.php but am still getting Parse error: syntax error, unexpected '}' in /home/medwayma/public_html/shop/admin/includes/application_top.php on line 35
Recommended Posts
Archived
This topic is now archived and is closed to further replies.