Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / mysterious insertion of 'w' at top of pages

mysterious insertion of 'w' at top of pages

Locked
This thread is locked. New replies are disabled.
30 Oct 2008, 3:07 PM
#1
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Post #1 by tlyczko

Today in working on a dev site, I noticed a mysterious 'w' being inserted into my pages.

I am going to try re-creating my whole custom template and see if that makes it go away.

I found thzt ZC is generating code like this:

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <head><title>Zen Cart!, The Art of E-commerce</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="keywords" content="Canoe Accessories ecommerce, open source, shop, online shopping "><meta name="description" content="Zen Cart! : - Canoe Accessories ecommerce, open source, shop, online shopping"><meta http-equiv="imagetoolbar" content="no"><meta name="author" content="The Zen Cart™ Team and others"><meta name="generator" content="shopping cart program by Zen Cart™, <http://www.zen-cart.com> eCommerce"><base href="http://devwork/crhei/"><link rel="stylesheet" type="text/css" href="includes/templates/crhei2/css/stylesheet.css" _base_href="http://devwork/crhei/"><link rel="stylesheet" type="text/css" href="includes/templates/crhei2/css/stylesheet_css_buttons.css" _base_href="http://devwork/crhei/"><link rel="stylesheet" type="text/css" media="print" href="includes/templates/crhei2/css/print_stylesheet.css" _base_href="http://devwork/crhei/"></head><body id="indexHomeBody">**w** <div id="mainWrapper">

I thought the problem was in tpl_main_page.php, since this is where the body ID is generated, but I can't find anything there or in any of the /common files.

Any suggestions??

Thank you, Tom

30 Oct 2008, 3:35 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

use the grep tool in admin - tools developers tool kit

A bit cumbersome due to only a "w" and not a string

Zen-Venom Get Bitten

30 Oct 2008, 3:37 PM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #3 by website_rob

I solve this type problem by just re-uploading the Zen Cart 'index.php' file; mind you, sometimes I have to delete the current one before uploading to make sure of the overwrite.

The learning is in the doing.

Potent Products

30 Oct 2008, 3:50 PM
#4
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Post #4 by tlyczko

With regard to grepping, that's not helpful because of the code in tpl_main_page.php that concatenates a bunch of things to create the home page body id tag of indexHomeBody, there's no code in that tpl_main_page.php to generate a 'w'.

Which of the many 'index.php' files are you referring to, Website Rob?? The only one I changed was in an english folder and I've checked that one.

I'm looking at all the index.php files now.

Thank you, Tom

30 Oct 2008, 4:05 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #5 by kobra

Rob was referring to the one at the root of your cart....

Zen-Venom Get Bitten

30 Oct 2008, 4:14 PM
#6
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Post #6 by tlyczko

The recommended overwrite did not help.
I have last night's VM backup, I'll go back to that and recreate my today's changes, but go more slowly and hopefully I don't get the 'w' back again.
Thank you, everyone...
Tom