Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / ezpages showing strange text at top of each page

ezpages showing strange text at top of each page

Started by banjer on 9 Sep 2011, 1:50 PM · Views: 661

Results 1 to 2 of 2
9 Sep 2011, 1:50 PM
#1
banjer avatar

banjer

New Zenner

Join Date:
Sep 2011
Location:
NC
Posts:
4
Plugin Contributions:
0

Post #1 by banjer

Hi,

I have EZ-Pages installed and it has worked great, but after upgrading from Zen Cart v1.3.8a to v.1.3.9h, I see a string at the top of every page that looks like this (snippet I took from viewing the page source in Firefox):

<body id="pageBody" class="page13">
13_en
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>My Page Title</title>

The "13_en" is what I'm referring to. Its visible on all pages created with EZ-pages. Each page is different and I can tell that it is the page id (pages_id field in the ezpages db table) followed by _en for what I'm guessing is referring to language (English).

I've grepped the site files for a bunch of strings like "pages_id" or "_en" but can't seem to figure out whats causing this. Any idea what file(s) may be generating this string?

Thanks!

10 Sep 2011, 10:33 PM
#2
banjer avatar

banjer

New Zenner

Join Date:
Sep 2011
Location:
NC
Posts:
4
Plugin Contributions:
0

Post #2 by banjer

Figured it out. Simple SEO module had an echo statement I had to remove. Not sure why it wasn't an issue before.

includes/init_includes/init_ssu.php:

	function _set_name($sql_query, $cache, $identifier, $id){
		$result = $this->_get_name_from_db($sql_query, $cache);
		$result = $this->_parse_name($result).$identifier.$id;
		$file_name = $this->{"build_$cache"}($id);
		//echo $file_name;
		// write to file EVEN if we get an empty content, that just means the productname is blank
		$this->_write_to_file($this->cache_path[$cache].$file_name, $result);
		return $result;
	}

I commented out echo $file_name; above and it fixed it.