Order Editor - osCommerce - tep_add_base_ref - AJAX ERROR FIX
March 28, 2012
Add Comment
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 ?>
You are done!
Thank you so much.
Regards,
Apurba Pathak.
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.
Genrerating Link.... 15 seconds.
Your Link is Ready.


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