Forums / Templates, Stylesheets, Page Layout / Newbie needing help with error message

Newbie needing help with error message

Locked
Results 1 to 20 of 21
This thread is locked. New replies are disabled.
23 Mar 2007, 14:42
#1
gypsycrafter avatar

gypsycrafter

New Zenner

Join Date:
Mar 2007
Posts:
63
Plugin Contributions:
0

Newbie needing help with error message

I am getting the following when I click on a few categories.

Can anyone explain what it is and how I fix it please. Please be very specific as I am very new to this and a IT phoebic :lamo:

Warning: Cannot modify header information - headers already sent by (output started at /home/passion4/public_html/store/includes/languages/english/index.php:117) in /home/passion4/public_html/store/includes/functions/functions_general.php on line 44


many thanks

Michelle
23 Mar 2007, 14:46
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: Newbie needing help with error message

You have a blank space at the end of a php file - after the closing tag (?> ).

Look at your configure.php files, and go right to the end, where you see ?> .

Make sure there are no blank spaces after the final >

look also at: includes/functions/functions_general.php and your index.php files
23 Mar 2007, 16:37
#3
gypsycrafter avatar

gypsycrafter

New Zenner

Join Date:
Mar 2007
Posts:
63
Plugin Contributions:
0

Re: Newbie needing help with error message

Where am I looking for the configure php. Is it in my store admin, or on my ftp?


Sorry but I really am thick when it comes to this.:blush:
23 Mar 2007, 17:00
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Newbie needing help with error message

I'm not seeing any extra white space in any of the files listed. It seems ok in FF and IE (couldn't trigger the error). :unsure: Could be just one of those odd things.

Anyone else want to take a look at http://passion4crafts.co.uk/store/?
23 Mar 2007, 17:18
#5
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

Re: Newbie needing help with error message

I also can not see any errors, was there a specific category that was causing trouble?
23 Mar 2007, 17:20
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: Newbie needing help with error message

Well... you're right, Mary... I don't get the error either.
23 Mar 2007, 18:09
#7
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Newbie needing help with error message

/languages/english/index.php is what it's complaining about. Blank line at the end of the file.
23 Mar 2007, 18:31
#9
gypsycrafter avatar

gypsycrafter

New Zenner

Join Date:
Mar 2007
Posts:
63
Plugin Contributions:
0

Re: Newbie needing help with error message

Chuckl:

/languages/english/index.php is what it's complaining about. Blank line at the end of the file.


Can you tell me where I am looking for this blank line as at the end of the file means nothing to me.......

If at all possible could you put what I am supposed to be seeing when I open up ]/languages/english/index.php
23 Mar 2007, 21:22
#10
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

Re: Newbie needing help with error message

Sorry if someone got to this already, sometimes they make me work while I'm at work :P
You need to make sure there is nothing after

/*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/

define('HEADING_TITLE', 'blah blah blah');

}

?>

at the very end of the file, if you open it up in a (good) text editor, there should be no extra lines or blank spaces after the ?>. If you can use the arrow keys to navigate past it, you'll need to delete your way back up to the > and then reload the file up to the server.
24 Mar 2007, 03:10
#11
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Newbie needing help with error message

TMC_Sherpa:

Sorry if someone got to this already, sometimes they make me work while I'm at work :P
You need to make sure there is nothing after

/*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/

define('HEADING_TITLE', 'blah blah blah');

}

?>

at the very end of the file, if you open it up in a (good) text editor, there should be no extra lines or blank spaces after the ?>. If you can use the arrow keys to navigate past it, you'll need to delete your way back up to the > and then reload the file up to the server.


There aren't any blanks. I checked the file earlier in Crimson Editor. No extra white space in any of the files mentioned in the error message. :dontgetit
24 Mar 2007, 03:39
#12
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Newbie needing help with error message

gypsycrafter:

Here is a link to one of the error categories.

http://passion4crafts.co.uk/store/index.php?main_page=index&cPath=331_333_340


Curiouser and curiouser... it seems to happen only on certain products in certain subcateories. It happens in BASIC GREY :: 12x12 PAPERS on products BLACK TIE and CHRISTMAS. The other subcategories 12x12 PAPERS are fine. Both BLACK TIE and CHRISTMAS only have one product in the subcategory (supposedly).

Any thoughts?
24 Mar 2007, 07:41
#13
gypsycrafter avatar

gypsycrafter

New Zenner

Join Date:
Mar 2007
Posts:
63
Plugin Contributions:
0

Re: Newbie needing help with error message

hhhmmmmmmmmm, well if you are all stumped that means I am at a dead end.
24 Mar 2007, 09:32
#14
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Newbie needing help with error message

Stumped? Confused on a higher level is the term...
I am still suspicious of a blank line/whitespace as the file referenced - /store/includes/languages/english/index.php does have a blank line at the bottom in the 1.3.7 distribution files.
Might be an idea to follow up on Mary Ellens' comment about single products. i.e. Add a couple of dummy products to BLACK TIE or CHRISTMAS, and see if the error disappears.

Chuck
24 Mar 2007, 11:51
#15
gypsycrafter avatar

gypsycrafter

New Zenner

Join Date:
Mar 2007
Posts:
63
Plugin Contributions:
0

Re: Newbie needing help with error message

:thumbsup: Putting in another priduct makes it work ok......thank you Chuckl

Is there any reason for this?
24 Mar 2007, 11:55
#16
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Newbie needing help with error message

Deep in the fundamental heart of things, there is a reason... but heaven only knows what it is. I still suspect a blank line is the cause.

Oh, and don't thank me, credit goes to Mary Ellen for noticing the connection.
25 Mar 2007, 03:35
#17
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Newbie needing help with error message

Chuckl, I think it would happen all the time if there was white space in a php file. php is very picky about that.

I have no clue why it's doing that. I know I've set up subcategories with only one product and haven't had a problem. Very odd.
25 Mar 2007, 05:50
#18
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Newbie needing help with error message

AFO, You are of course right. I'm also unable to duplicate it, and the engineer in me says - 'if every other time it was whitespace, its probably whitespace'.

At a guess, a loop or if then else etc that it executed only in the 1 product case. Data returned from a query with a linefeed in it. Cosmic rays. Butterflies flapping...
25 Mar 2007, 08:06
#19
gypsycrafter avatar

gypsycrafter

New Zenner

Join Date:
Mar 2007
Posts:
63
Plugin Contributions:
0

Re: Newbie needing help with error message

May this be connected, found this error message when trying to search using the manufacturers bo

Warning: constant() [function.constant]: Couldn't find constant in /home/passion4/public_html/store/includes/init_includes/init_add_crumbs.php on line 45

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from where manufacturers_id = 40' at line 2
in:
[select from where manufacturers_id = 40]

:lamo: :lamo: :lamo: HHHEEELLLLPPPP!!!!!!!
25 Mar 2007, 09:38
#20
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Newbie needing help with error message

Ouch! You do find them don't you?
Looks to me like it is attempting to find a constant when the item is not a constant. Definitely one for the devs to have a look.
As a temporary measure, you may be able to get rid of the error by disabling breadcrumbs in admin-config-layout settings.