Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Error when editing index.php

    Hey all,

    I'm getting strange errors whenever I edit the index.php in the admin folder.

    All i did was change the image, take out a few breaks before the copyright/warranty notice, and now I'm getting header errors. I uploaded the original index.php file (the one that worked perfectly before i made changes), and I am STILL getting the errors!

    Code:
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/gotalkab/public_html/sqlcart/zen4/admin/index.php:1) in /home/gotalkab/public_html/sqlcart/zen4/includes/functions/sessions.php on line 108
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/gotalkab/public_html/sqlcart/zen4/admin/index.php:1) in /home/gotalkab/public_html/sqlcart/zen4/admin/includes/init_includes/init_templates.php on line 36
    Any ideas as to why this is happening?? Is the index page not allowed to be changed, for some reason??

    Thanks in advance,

    Brad

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

    Default Re: Error when editing index.php

    You appear to have a space in the index.php at the top of the file ...

    php is fussy and does not like space(s) or blank line(s) before the starting opening php tag: <?php nor after the last closing php tag: ?> ...

    Edit the file and clean it up ...
    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!

  3. #3
    Join Date
    Aug 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Error when editing index.php

    Ajeh,

    Cleaned the code up a bit, and took out any extra spaces after/before the opening and closing tags, and still getting the errors

    This happens whenever I upload the index file a second time, regardless of whetver or not I edit anything or not..

 

 

Similar Threads

  1. Editing index.php
    By taichifu in forum General Questions
    Replies: 6
    Last Post: 24 Jan 2011, 10:39 PM
  2. Error on page when loading index.php
    By ebaobao in forum General Questions
    Replies: 5
    Last Post: 7 Oct 2010, 08:19 PM
  3. editing index.php
    By ksl1 in forum General Questions
    Replies: 4
    Last Post: 8 Feb 2010, 09:58 AM
  4. internal error 500 when using admin/index.php
    By mobs in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 29 Apr 2008, 10:48 PM

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