Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default error on Admin login

    Hi

    I had the following errors when attempting to log on to the Admin area

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/fhlinux181/i/i-dl.com/user/htdocs/admin/index.php:1) in /home/fhlinux181/i/i-dl.com/user/htdocs/includes/functions/sessions.php on line 102

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/fhlinux181/i/i-dl.com/user/htdocs/admin/index.php:1) in /home/fhlinux181/i/i-dl.com/user/htdocs/includes/functions/sessions.php on line 102

    Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux181/i/i-dl.com/user/htdocs/admin/index.php:1) in /home/fhlinux181/i/i-dl.com/user/htdocs/admin/includes/init_includes/init_templates.php on line 36

    Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux181/i/i-dl.com/user/htdocs/admin/index.php:1) in /home/fhlinux181/i/i-dl.com/user/htdocs/admin/includes/functions/general.php on line 34

    I've tried looking for rogue 'spaces' but no luck. I'm either looking in the wrong places or something else is causing it.

    Appreciate any help

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: error on Admin login

    Download the admin/index.php file and open it in a plain text editor like Notepad (not Word or Wordpad). Look for 'whitespace' (lines or spaces) before the opening or after the closing php tags. If you find any, delete them, and upload the edited file back to the site.

    Vger

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: error on Admin login

    Vger is right.

    The error message says it all:
    output started at /home/fhlinux181/i/i-dl.com/user/htdocs/admin/index.php:1
    /admin/index.php
    at
    line 1

    You have blank lines/spaces there before the starting <?php tag.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Re: error on Admin login

    Hi again

    Yes, it is clear now where the error lies. I have downloaded the admin/index.php file and sure enough, a whole line of blank space before the first <?php> tag.

    I delete this line (using notepad or Notepad++) and then upload using Filezilla, type www.mydomain.com/admin only to find the same errors.

    When I download the index.php file again to edit it, I find that the line of space has miraculously written itself back in.

    Yes, I am choosing to overwrite and there is a clear byte size difference between the files. I also verify the upload time and date on the properties of the file on the server to make sure that I am not being completely stupid.

    Help

  5. #5
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: error on Admin login

    Download and install Text Pad - a free plain text editor. Use that. You're not using Fasthosts by any chance?

    Vger

  6. #6
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Re: error on Admin login

    This is correct Vger, I am using Fasthosts, I should have mentioned this because my suspicions are with the hosting.

    I can try a new editor, however, I always check the client side file before uploading, I am certain that the change is being made locally first.

    All a little unfortunate because I am trying to convince the directors at work to host our present commercial site on another server using this cart.

    I very much appreciate the help here.

    It is the first time that I have used Fasthosts, and originally just to host my own site so I could have a play with php and MySQL as part of my coursework. I want Zencart in particular so that I can code my own valid XHTML into the cart.

  7. #7
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: error on Admin login

    Quote Originally Posted by Vger
    Use that. You're not using Fasthosts by any chance?

    Vger
    Whats with Fasthosts?
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  8. #8
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: error on Admin login

    There's no problem with Fasthosts provided you want to host an html website, or one which uses the .net framework or asp, or even simple php based sites - and you don't need support to do it. The problems occur when you are trying to host a complex php based shopping cart - and especially if you wish to secure it with ssl.

    If you want ssl (they don't sell full ssl) you have to pay £45 for their shared ssl, which is on a separate server (always Windows) with register globals disabled, while the main site will be on another server (Linux or Windows) with register globals enabled.

    Trying to keep the session trail going between the two is very difficult.

    Fasthosts were recently bought out by the holding company which owns 1and1 so maybe their systems will change in the future.

    Vger

  9. #9
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Re: error on Admin login

    The information on Fasthosts is useful, and I did know that there were limitations but I fail to see why this would cause the problem that I am encountering. I shall, however, contact Fasthosts and the support forums therein to guage the likelihood of a solution.

    I appreciate the help given, thanks again.

    If the host appears to be major stumbling block, I do have alternatives.

  10. #10
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: error on Admin login

    There is no apparent connection between this problem and Fasthosts - except to say this.

    In my years in this business I have never heard of anyone have this problem with removing white space from files, then saving and uploading files using FileZilla, or WS FTP.

    So perhaps the problem is with the FTP socket provided by the hosts. To check it try this:

    1. Create a new text document on your desktop, and rename it to test.php (ignore the warning about changing file extensions).
    2. Put into it only opening and closing php tags e.g.
    Code:
    <?php ?>
    3. Upload it to the root of your domain.
    4. Use 'View' whilst in FTP to view what's in the file (any whitespace?).

    That'll tell you where the problem is.

    Vger

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Admin Login Page Error, WARNING: An Error occurred
    By maperr55 in forum General Questions
    Replies: 5
    Last Post: 3 Jun 2016, 04:51 AM
  2. Replies: 2
    Last Post: 27 Sep 2013, 02:59 AM
  3. Error on admin login
    By Broadzilla in forum Installing on a Windows Server
    Replies: 3
    Last Post: 22 Jun 2012, 07:30 PM
  4. Admin login problem: There was a security error when trying to login.
    By eddeford in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 27 Jan 2010, 03:59 PM
  5. Admin Login Error
    By mtnguy in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 17 Jul 2007, 04:28 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