Zen Cart Logo
Forums / Installing on a Linux/Unix Server / error messages after installation - HELP!

error messages after installation - HELP!

Locked

Views: 3,451

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
21 May 2006, 6:42 AM
#1
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

error messages after installation - HELP!

Hi all

I have the following message after I have uploaded all the files to my server:

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/justsoho/macsoftware.com.au/zencart/index.php:2) in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/includes/application_top.php on line 55

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/justsoho/macsoftware.com.au/zencart/index.php:2) in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/includes/application_top.php on line 60

Warning: main(DIR_WS_INCLUDESauto_loaders/config.core.php): failed to open stream: No such file or directory in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/includes/application_top.php on line 83

Warning: main(DIR_WS_INCLUDESauto_loaders/config.core.php): failed to open stream: No such file or directory in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/includes/application_top.php on line 83

Warning: main(): Failed opening 'DIR_WS_INCLUDESauto_loaders/config.core.php' for inclusion (include_path='.:/usr/local/lib/php') in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/includes/application_top.php on line 83

Warning: dir(DIR_WS_INCLUDESauto_loaders): failed to open dir: No such file or directory in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/includes/application_top.php on line 84

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/justsoho/macsoftware.com.au/zencart/index.php:2) in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/includes/application_top.php on line 105

From some checking online, it seems to be something to do with excess white space...is this correct? if so - do I simply open the PHP file - and delete white space on the appropriate line? and reupload to the server.

any help much appreciated as I have been wrestling with this for 2 days now!

best wishes
bexford

21 May 2006, 2:22 PM
#2
vger avatar

vger

Past Contributor

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

Re: error messages after installation - HELP!

Yes, just delete all white apace before the opening and after the closing php tag. In PHP any white space is seen as being something, so when it happens before the opening or after the closing php tag it throws up an error.

Vger

29 May 2006, 5:04 AM
#3
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: error messages after installation - HELP!

hi there

unfortunately...I am still getting "header" error messages. I have opened up the appropriate PHP file and there wasn't any additional white space at either the beginning or end of the php code.

it is indicating a problem on line 100 of the sessions.php file....but I cannot for the life of me see any additional white space on this line so not sure why this error is being thrown up! the error messages is as follows:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hsphere/local/home/justsoho/macsoftware.com.au/zencart/index.php:2) in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/includes/functions/sessions.php on line 100

this is clearly a common problem with zen cart and I really need to get this fixed so apologies if I am going over old ground.

I am opening up the PHP file in GoLive...have scrolled down to line 100 and it all looks ok so am really stuck now!

any help, as ever, much appreciated.

Bexford

29 May 2006, 7:57 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: error messages after installation - HELP!

You're looking at the 2nd half of the error message. You need to look at the FIRST file it mentions, not the last....

output started at /hsphere/local/home/justsoho/macsoftware.com.au/zencart/index.php:2

Remove the extra blank lines or spaces in that file which sit outside the <?php and ?>

30 May 2006, 4:10 AM
#5
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: error messages after installation - HELP!

hi there

thanks for the reply - i have checked the index.php file as you suggested - but there isn't any superfluous white space sitting outside <?php and ?> .... so ma now at a loss as to what to do.

the first four lines of the php file are as follows:

1<meta http-equiv="content-type" content="text/html;charset=utf-8">
2<?php
3/**
4* index.php represents the hub of the Zen Cart MVC system

dpes this offer any clues to where the problem is???!!

this issue is driving me crazy!

thanks as always for any help
cheers
Bexford

30 May 2006, 4:13 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: error messages after installation - HELP!

I have see this on other sites ... no clue why ...

php files do not start with:

<meta http-equiv="content-type" content="text/html;charset=utf-8">

That is your error ...

Something has added that to your code and goobered up your files ...

Get a clean Zen Cart v1.3.0.1 from here ... and upload it to your site ... see if that doesn't correct these issues ...

30 May 2006, 4:22 AM
#7
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: error messages after installation - HELP!

hey there

thanks for the quick reply! I thought it may be something to do with that....as a quick alternative - can I not simply delete that line of code.....and re-save the file back to my server to clear the problem?

if not, will go down the clean install route you suggest!

cheers
Bexford

30 May 2006, 4:28 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: error messages after installation - HELP!

Providing that is the only file with it ... :smile:

30 May 2006, 4:51 AM
#9
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: error messages after installation - HELP!

hi again!

that's worked a treat - no need for the clean install so thanks very much for all your help.

am just starting on the "fun" bit now of customisation of the classic template to how I want it to look....can i assume that the file I need to access for chnaging font sizes, colors, etc is the stylesheet_original.css?

I will need to be changing the font.....adding a banner of my own etc....changing the colors behind the headings etc.

thanks again for all your help

Bexford

30 May 2006, 5:20 AM
#11
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: error messages after installation - HELP!

great - will do!

thanks again
Bexford

30 May 2006, 7:15 AM
#12
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: error messages after installation - HELP!

this is soooooo frustrating!

having cured the intial problem.....and all working ok - I have just come back to it and now havea different set of error messages. no files have been chnaged - I left the house to go shopping so not sure why these new warnings are appearing!

this is the emssage I now get:

Warning: main(includes/templates/template_default/common/html_header.php): failed to open stream: No such file or directory in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/index.php on line 43

Warning: main(includes/templates/template_default/common/html_header.php): failed to open stream: No such file or directory in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/index.php on line 43

Fatal error: main(): Failed opening required 'includes/templates/template_default/common/html_header.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/justsoho/macsoftware.com.au/zencart/index.php on line 43

any help as always, much appreciated.
Bexford

31 May 2006, 4:59 AM
#13
drbyte avatar

drbyte

Sensei

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

Re: error messages after installation - HELP!

What's your URL?

Who are you hosting with?

31 May 2006, 5:06 AM
#14
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: error messages after installation - HELP!

hey there

the url is https://www.macsoftware.com.au and is currently hosted on US servers at quadrahosting.com

I am actually doing a clean install of zencart right now to start all over again. have been wrestling with this for so long I think it's just best to start at the beginning! I should point out I am actually a designer, not a programmer - but chose zencart as my e-commerce option as a previous store of mine was os comm and that was a nighmare to customise in many ways so thought this would be easier all round!

to have these many issues with just the installation and set-up process is certainly very frustrating but the forums seem very active and the FAQ section is very comprehensive so am sure I will gett here - is a mission of mine now!

cheers
Bexford

31 May 2006, 6:12 AM
#15
drbyte avatar

drbyte

Sensei

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

Re: error messages after installation - HELP!

How exactly are you uploading the PHP files etc to your server?

1 Jun 2006, 7:31 AM
#16
bexford avatar

bexford

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: error messages after installation - HELP!

Hi again

I am uploading using TRANSMIT....the ftp program I sue for all my websites.

cheers
Bexford

1 Jun 2006, 7:56 AM
#17
cr33dog avatar

cr33dog

New Zenner

Join Date:
Dec 2005
Posts:
50
Plugin Contributions:
0

Re: error messages after installation - HELP!

Assume you're on a mac - the only free alternative AFAIK is called "FUGU" - you can get it from:
http://rsug.itd.umich.edu/software/fugu/

In case you want to rule out your FTP program....

HTH,
Chris