Thread: Header Problem

Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2006
    Posts
    80
    Plugin Contributions
    0

    Header Problem

    Warning: Header may not contain more than a single header, new line detected. in /www/x/xxxxx/htdocs/store/includes/functions/functions_general.php on line 41


    This warning above appears when anyone tries to register, login, checkout, etc. The weird thing is that customers are registered although they have no indication that they are. Shopping carts are intact too!

    Can anyone help me.

    Shelia

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Header Problem

    http://www.zen-cart.com/forum/faq.ph...before_posting

    Please provide more information. The above FAQ should help.
    Last edited by DrByte; 20 Jun 2006 at 11:19 PM. Reason: updated FAQ link

  3. #3
    Join Date
    Apr 2006
    Posts
    80
    Plugin Contributions
    0

    Default Re: Header Problem

    Sorry!

    Zen Version; 1.31
    Database: MySQL 4.1.15-log
    PHP Version: 4.4.2 (Zend: 1.3.0)
    MySQL 4.1.15
    Safe Mode:ON

    I tried to do a test - registered and the error appeared. I went back to the index page and noticed I was logged in. I added some test items into my shopping cart and tried to checkout and the error returned. That's as far as I can get.

  4. #4
    Join Date
    Apr 2006
    Posts
    80
    Plugin Contributions
    0

    Default Re: Header Problem

    I took out the blank line before line 41 in function_general.php after reading a post in the FAQ. Now the error shows up on line 40!

    This is the code that seems to be causing the problem.

    Code:
    // clean up URL before executing it
      while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
      while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
      // header locates should not have the & in the address it breaks things
      while (strstr($url, '&')) $url = str_replace('&', '&', $url);
      header('Location: ' . $url);
        zen_exit();
      }
    What am I doing wrong?

    Shelia

  5. #5
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Header Problem


    Safe Mode:ON
    Safe Mode should definitely be set to off. Otherwise, you will end up with numerous problems when using PHP scripts most likely.

    In order to fix this, you'd need to contact your web hosting service. Only them can modify these types of permissions into their php.ini file.

  6. #6
    Join Date
    Sep 2004
    Posts
    34
    Plugin Contributions
    0

    Default Re: Header Problem

    I have the same issue only my safe mode is OFF.

    Zen 1.3.5

 

 

Similar Threads

  1. Header problem in IE
    By strelitzia in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Jan 2007, 06:03 PM
  2. Header Problem
    By dscott1966 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 28 Nov 2006, 08:51 PM
  3. Header Problem
    By dscott1966 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Nov 2006, 07:55 PM
  4. Header Problem
    By evillure in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 12 Jun 2006, 09:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR