Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Location
    Western NY
    Posts
    3
    Plugin Contributions
    0

    Default Headers - suggestions didn't work

    After attempting to log-in, or log-out, from the store this error is displayed:

    Warning: Cannot modify header information - headers already sent by (output started at /home/mwga0246/public_html/catalog/includes/init_includes/init_templates.php:2) in /home/mwga0246/public_html/catalog/includes/functions/functions_general.php on line 41

    After removing the apparent trailing space in /catalog/includes/functions/functions_general.php
    and up-loaging it, I then get this error:

    Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/mwga0246/public_html/catalog/includes/functions/functions_general.php on line 1197

    After doing an 'undo' to restore the file and up-loading it, the error is still there.
    I have to up-load the original from the zip archive.

    It does actually log me in/out, but I have to load the page again from the location bar.

    I have read and attempted everything I found in the forums.
    Changed Recreate Session to FALSE. When it was TRUE, I got 4 header errors.

    Zen Cart 1.3.0
    Database Patch Level: 1.3.0
    v1.3.0 [2006-05-07 10:00:06] (Fresh Installation)
    PHP Version 4.4.1

    Server Host: host.mnrgig0a02.com (64.71.141.35) Database Host: localhost (127.0.0.1)
    Server OS: Linux 2.4.20-37.9.legacy Database: MySQL 4.0.25-standard
    Server Date: 05/21/2006 09:55:36 Database Date: 05/21/2006 09:55:36

    Server Up Time: 09:55:36 up 7 days, 1:46, 2 users, load average: 0.05, 0.20, 0.27
    PHP Version: 4.4.1 (Zend: 1.3.0)
    HTTP Server: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a

    Website (not fully populated yet) http://www.taylorsgifts.com/catalog
    Waiting to go live until after problems are fixed.

    Alan Taylor

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

    Default Re: Headers - suggestions didn't work

    Alan-

    What are you using to upload your files?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    May 2006
    Location
    Western NY
    Posts
    3
    Plugin Contributions
    0

    Default Re: Headers - suggestions didn't work

    I'm using WS-FTP, which I used to up-load the entire package, also any other page changes. I'm using either ACE Html 4 free or wordpad to edit the files.
    All other changes have been OK.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Headers - suggestions didn't work

    Could you also remove the space(s) and blank line(s) before the first <?php in the file init_templates.php ...

    Warning: Cannot modify header information - headers already sent by (output started at /home/mwga0246/public_html/catalog/includes/init_includes/init_templates.php:2) in /home/mwga0246/public_html/catalog/includes/functions/functions_general.php on line 41
    NOTE: get a real TEXT editor ... not WordPad ... not MS Word ... not Control Panel ... etc.

    NotePad can work on smaller files providing wordwrap is OFF but you would do better with a true Text Editor such as UltraEdit ... NoteTab Pro ... etc.
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2006
    Location
    Western NY
    Posts
    3
    Plugin Contributions
    0

    Default Re: Headers - suggestions didn't work

    The only thing at the beginning is a Meta Tag.
    No other file I have edited and up-loaded has had a problem.
    The original /includes/init/includes/init_templates.php
    and /includes/functions/functions_general.php had the problem before any changes and up-loads.

    functions_general.php: (first 2 lines)
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <?php

    init_templates.php: (first 2 lines)
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <?php

    init_templates.php: (last 2 lines)
    include(DIR_WS_MODULES . 'extra_definitions.php');
    ?>

    functions_general.php (last 2 lines)
    /////////////////////////////////////////////
    ?>

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Headers - suggestions didn't work

    I don't know who has touched your files if not you ... but look at the original code ... from a clean Download from here for the Zen Cart v1.3.0.1 ... assuming that is your version ... in /includes/functions/functions_general.php and it does not contain any thing like that ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Headers - suggestions didn't work

    NOTE: neither does the file /includes/int_includes/init_templates.php
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v139h Border Didn't Work As Planned
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 19
    Last Post: 4 Sep 2013, 01:27 AM
  2. an override attempt didn't work
    By mzimmers in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 4 Sep 2010, 04:18 PM
  3. Skype link didn't work.
    By sumri in forum Addon Sideboxes
    Replies: 5
    Last Post: 15 Jun 2010, 03:18 PM
  4. USPS Patch didn't work for me
    By Ripper in forum General Questions
    Replies: 8
    Last Post: 8 Oct 2009, 06:19 AM
  5. OK...why didn't this work?
    By mzimmers in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 May 2008, 05:04 AM

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