dear zen masters

ok my 4th zencart and i've never encountered this so i'm really desperate

version: 1.3.0.1
Database Patch Level: 1.3.0.1
v1.3.0.1 [2006-05-08 17:48:19] (Fresh Installation)


upon checkout, this is what i get, but the order goes through and the email confirmation is received by both the customer and the store admin.

*all actual domain references changed to prevent nasty hackers*

------------------------------------------------
Warning: strstr(): Empty delimiter. in /home/hsphere/local/home/user/thedomain.com/store/includes/functions/functions_email.php on line 91

Warning: strstr(): Empty delimiter. in /home/hsphere/local/home/user/thedomain.com/store/includes/functions/functions_email.php on line 91

Warning: strstr(): Empty delimiter. in /home/hsphere/local/home/user/thedomain.com/store/includes/functions/functions_email.php on line 91

Warning: Cannot modify header information - headers already sent by (output started at /home/hsphere/local/home/user/thedomain.com/store/includes/functions/functions_email.php:91) in /home/hsphere/local/home/user/thedomain.com/store/includes/functions/functions_general.php on line 41


----------------------------------------------------------------

i've read the available threads about 'empty delimiters' and 'Cannot modify header information - headers already sent' but can't resolve this. I've never modified either of those 2 files and checked for extra spaces as suggested by the threads.

----------------------------------------------------------------
lines 85 - 91 of my functions_email.php file:

PHP Code:
      // clean up currencies for text emails
      
$zen_fix_currencies split("[:,]" CURRENCIES_TRANSLATIONS);
      
$size sizeof($zen_fix_currencies);
      for (
$i=0$n=$size$i<$n$i+=2) {
        
$zen_fix_current $zen_fix_currencies[$i];
        
$zen_fix_replace $zen_fix_currencies[$i+1];
      while (
strstr($email_text$zen_fix_current)) $email_text str_replace($zen_fix_current$zen_fix_replace$email_text);
      } 
----------------------------------------------------------------


lines 38 - 44 of my functions_general.php file:

----------------------------------------------------------------
PHP Code:
  // header locates should not have the &amp; in the address it breaks things
  
while (strstr($url'&amp;')) $url str_replace('&amp;''&'$url);

  
header('Location:' $url);

    
zen_exit();
  } 
----------------------------------------------------------------

can anyone spot anything that i've missed in my panic?