oscommerce

Order Editor tep_add_base_ref AJAX ERROR FIX – osCommerce

Fatal error: Call to undefined function tep_add_base_ref() in /home/XXXX/public_html/XXXX/admin/edit_orders_ajax.php on line 1149


For those who have this problem:add below code to admin/include/function/general.php before closing tag ?>

function tep_add_base_ref($string) {
 $i = 0;
 $output = '';
 $n=strlen($string);
 for ($i=0; $i<$n; $i++) {
 $char = substr($string, $i, 1);
 $char5 = substr($string, $i, 5);
 if ($char5 == 'src="' ) {$output .= 'src="' . HTTP_SERVER; $i = $i+4;}
 else {
 $output .= $char; 
 } }
 return $output;
 }
 ///////////////////////////////////////////

You are done!

Thank you so much.
Regards,
webduos.com

Related Posts


Leave a Reply

Your email address will not be published. Required fields are marked *


*