Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
I just installed the latest version of this plugin to my site and now my homepage only displays a blank white screen and my favicon. When I view source, all that displays is the code in the <head> </head> section and nothing else.
Backend still displays fine and the plugin is active in the configuration area.
Help!
Last edited by ShanghaiLad; 28 Sep 2012 at 02:48 AM.
Update - all pages are dead. Only displaying the <head> </head> section and then nothing else.
I believe I followed all of the directions properly.
Here is the view source code displaying, from a random page:
**UPDATE: removing the posted code from the tpl_main_page.php file gets things working again:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title>Stormy Sea [13897553] - 228RMB : Obido Educational Toys, Learning Made Fun</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Stormy Sea [13897553] Manipulatives Wooden Puzzles Table Games Role Play Child-size Furnishings Shanghai educational toys, Shanghai toy store, China wooden toys, China import toys" />
<meta name="description" content="Obido Educational Toys Stormy Sea [13897553] - Cannon balls, treasure chests, barrels, bottles and gold. Can your child balance them all on this wobbly, suspended ship or will they be lost to the sea? A roll of the die decides the next piece to be placed. Can be played together as a competitive or cooperative game. Bamboo toys are " />
<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" />
<link rel="icon" href="http://www.obidotoys.com/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.obidotoys.com/favicon.ico" type="image/x-icon" />
<base href="http://obidotoys.com/" />
<link rel="canonical" href="http://obidotoys.com/index.php?main_page=product_info&products_id=54" />
<link rel="stylesheet" type="text/css" href="includes/templates/toys_blue/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/toys_blue/css/stylesheet_css_buttons.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/toys_blue/css/stylesheet_footer_menu.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/toys_blue/css/print_stylesheet.css" />
<script type="text/javascript" src="includes/modules/pages/product_info/jscript_textarea_counter.js"></script>
script language="javascript" type="text/javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screen X=150,screenY=150,top=150,left=150')
}
function popupWindowPrice(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,scree nX=150,screenY=150,top=150,left=150')
}
//--></script>
</head>
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
}
?>
Last edited by ShanghaiLad; 28 Sep 2012 at 03:07 AM.
If you get a blank white page it means you have a PHP error that was caused based on the info you copied in. Most often this is becuase the PHP code copied in accidentally replaces, overwrites, or gets pushed between already existing code on the page.
The easiest way to diagnose exactly where the error is, is to turn on Error Logging for the Catalog and then look at the error log generated in the "cache" directory. Depending on what version of zen you are running, you may already have the file needed to turn that on. If not, you'll want to look at this post which has more information on where to find the file and how to activate it: http://www.zen-cart.com/showthread.p...+error+logging
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
My installation does not have such a file in that location. I am using the classic template. There is no common in that directory.
includes/templates/classic/
Any assistance would be appreciated. Also I am running V1.5.1, will this cause a problem for running Google Analytics?
Maka a new "common" folder inside the "classic" folder. then copy the tpl_header.php file from template_default/common to classic/common. edit the copied file.
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
Hi Design75,
Thanks for this great module. I have found it very useful. I have it set up for e-commerce tracking and I was wondering if I could I use this module to track refunds / cancellations?
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
Bookmarks