Order Editor - osCommerce - tep_add_base_ref - AJAX ERROR FIX

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,
Apurba Pathak.

0 Response to "Order Editor - osCommerce - tep_add_base_ref - AJAX ERROR FIX"

Article Top Ads


Central Ads Article 1

Middle Ads Article 2

Article Bottom Ads