Zen Cart Logo
Forums / General Questions / Empty delimiter problem upon checkout

Empty delimiter problem upon checkout

Locked

Views: 1,537

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
15 Jun 2006, 8:41 AM
#1
ebb avatar

ebb

New Zenner

Join Date:
Nov 2004
Posts:
57
Plugin Contributions:
0

Empty delimiter problem upon checkout

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:

      // 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:


  // header locates should not have the & in the address it breaks things
  while (strstr($url, '&')) $url = str_replace('&', '&', $url);

  header('Location:' . $url);

    zen_exit();
  }

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

:cry: