Zen Cart Logo
Forums / Installing on a Linux/Unix Server / error on Admin login

error on Admin login

Locked

Views: 3,283

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
1 Oct 2006, 12:07 AM
#1
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

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

1 Oct 2006, 12:41 AM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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

1 Oct 2006, 1:17 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.

1 Oct 2006, 11:27 AM
#4
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

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

1 Oct 2006, 12:18 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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

1 Oct 2006, 2:08 PM
#6
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

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.

1 Oct 2006, 3:16 PM
#7
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: error on Admin login

Vger:

Use that. You're not using Fasthosts by any chance?

Vger
Whats with Fasthosts? :dontgetit

1 Oct 2006, 3:55 PM
#8
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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

1 Oct 2006, 4:22 PM
#9
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

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.

1 Oct 2006, 7:26 PM
#10
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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.
<?php ?>
  1. Upload it to the root of your domain.
  2. Use 'View' whilst in FTP to view what's in the file (any whitespace?).

That'll tell you where the problem is.

Vger

2 Oct 2006, 6:40 PM
#11
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

Re: error on Admin login

Hi

I have finally solved the problem, it appears as though the error only occurs through filezilla. I tried WS_FTP (dragged out from an old directory) and, hey presto, no problem.

I've never seen anything quite like it either. Anyway, I'll leave that to another day and get on with seeing how FastHosts behaves (or not).

Thanks for your input everyone, I'll post my experience with FastHosts here.

Cheers

2 Oct 2006, 9:18 PM
#12
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: error on Admin login

You realise what you've done? I'll never be able to tell anyone ever again that I've never heard of problems with FileZilla! Oh well, that still leaves WS FTP I guess.

Vger

2 Oct 2006, 9:22 PM
#13
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: error on Admin login

Vger:

You realise what you've done? I'll never be able to tell anyone ever again that I've never heard of problems with FileZilla! Oh well, that still leaves WS FTP I guess.

Vger
Me too...I have never seen any problems with FileZilla so far
dml311071, may be you can get in touch with FilieZilla team and tell them about this so they will come to know what the issue is!
San

3 Oct 2006, 7:35 PM
#14
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

Re: error on Admin login

I cannot fully blame filezilla just yet, I am not discounting a local issue completely, only stating what appears to have been the solution.

BTW, I have successfully installed Zen Cart on the FastHosts server using the 2gb Developer package. This is a very reasonably priced package so we'll see how it goes, big plus is that there are no traffic caps.

Thanks for your help everyone.

Now, just got to sort out my templates, is it me or is the admin page a real mess on a fresh install? I get the feeling that it is not being displayed properly, but I don't know what it is supposed to look like, maybe I have a corrupt stylesheet or an orphan link.

Ho-hum, looks like a new thread starting!

3 Oct 2006, 7:45 PM
#15
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: error on Admin login

dml311071:

Thanks for your help everyone.

Now, just got to sort out my templates, is it me or is the admin page a real mess on a fresh install? I get the feeling that it is not being displayed properly, but I don't know what it is supposed to look like, maybe I have a corrupt stylesheet or an orphan link.

Ho-hum, looks like a new thread starting!
Screenshot so that we can help you?

3 Oct 2006, 9:57 PM
#16
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

Re: error on Admin login

Hi again

Yup, problem with the templates. I have been through the html and php files that refer to the stylesheets and the directory structure checks out along with the filenames. I currently have the ClassicXHTML_1.0.1 template running and some of the store layout appears ok, but there are missing buttons and some of the text formatting appears wrong.

I have included a shot of the admin page, and the problem is clear; there appears to be absolutely no css formatting at all and, consequently, no css/js menus. Here I am running the blueadminv1.0 template.

The store and admin section have never looked right since the install. As mentioned, I have checked the filenames and links to the stylesheets fairly thoroughly, I get the feeling that I am missing something obvious.

Please put me out of my misery!

4 Oct 2006, 9:39 PM
#17
kcolbe01 avatar

kcolbe01

New Zenner

Join Date:
Oct 2006
Posts:
6
Plugin Contributions:
0

Re: error on Admin login

My admin page is not loading and I'm not getting nothing to login to on my page at : http://www.kristengiftedkards.com/zencart/index.php on the login and where it saids log in yourself but my page is not popping up like it should so I don't know what is wrong with it. I need help! I'm so new with this