Zen Cart Logo
Forums / General Questions / Unwanted text above header

Unwanted text above header

Views: 1,194

Results 1 to 11 of 11
27 May 2010, 8:37 AM
#1
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Unwanted text above header

I've copied my active server onto another domain (using https://www.zen-cart.com/tutorials/index.php?article=100) in order to test some changes that I will make to the site - however for some reason a '0.00' has appeared above the header (and even above the 'down for maintenance' banner) ... I have copied the original files back (to try to eliminate the file causing the issue) and this text is still there..>>

can anyone suggest a fix because it is driving me mad..

_thanks

27 May 2010, 8:50 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Unwanted text above header

I would use the Developers Tool Kit to search for '0.00' to see where it might be coming from. In a stock Zencart installation, there aren't that many files (18) where that string appears.

27 May 2010, 9:10 AM
#3
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Unwanted text above header

thanks>> I haven't changed any of those files though!

27 May 2010, 5:38 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Unwanted text above header

stevesh:

I would use the Developers Tool Kit to search for '0.00' to see where it might be coming from. In a stock Zencart installation, there aren't that many files (18) where that string appears.

The "format" of this looks like it could belong to a "shopping cart value" that was (once) part of a header.

Does the "text" change - say to 9.95, if you add a product to the cart that costs 9.95?

27 May 2010, 8:57 PM
#5
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Unwanted text above header

thanks - no it doesn't.. unfortunately .. but it is removed when I replace my customised 'english.php' with the original but I cannot figure why - there isn't a '0.00' in that file..

all a bit strange > if there are any suggestions as to why please comment.

_thanks

27 May 2010, 9:05 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Unwanted text above header

What software did you use to edit that language file?

27 May 2010, 10:48 PM
#7
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Unwanted text above header

dreamweaver..

... incidentally I went through the changes one by one and the problem was that I hadn't included some new entries that I had previously included - this doesn't explain why it displayed '0.00' but or why it was at the very top of the screen but if anyone should come across that study your 'english.php' file.

_thanks for the help fellas

28 May 2010, 11:22 AM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Unwanted text above header

g_force:

dreamweaver..

Therein lies your problem***... php files should be edited ONLY in a plain text editor, such as Emerald Editor, or Notepad++.

Put Dreamweaver back in its box and store the box in your loft or shed.

***(Unless you are fully aware of how to use DW to manage php material).

28 May 2010, 8:34 PM
#9
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Unwanted text above header

surely that has nothing to do with it - the code is still the same

28 May 2010, 8:38 PM
#10
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: Unwanted text above header

If you use anything other than a plain text editor it can add "invisible" characters into the file, change the character set the file is saved with, and mess with line breaks and returns. Some of these things can make a site behave weird while hiding the cause from easy view.

28 May 2010, 8:41 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Unwanted text above header

To be honest... it's about 4 years since I did any serious work on DW... Building these ZC sites is (for me) faster and easier in a text editor - even the parts where html is evident.

So I don't know how DW really handles PHP these days.

I just know that editors that can do ANY kind of formatting can spell problems, so I always bring these files over then use Emerald Editor to work on them.