Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Unwanted code on front page after install

Unwanted code on front page after install

Locked

Views: 1,554

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
31 Jan 2007, 8:44 PM
#1
mopho avatar

mopho

New Zenner

Join Date:
Jan 2007
Posts:
5
Plugin Contributions:
0

Unwanted code on front page after install

Hello. I just installed ZC 1.3.7 on my site. On my front page underneith 'Sales message goes here' as well as all other pages that I've looked at is the following code where the buttons should be:

[TESTING INFO: Time page: index was loaded is: 14:46:26

Session ID: xxxxxxxxxxxxxxxxxxxxxxxxx
REGISTERED GLOBALS is: OFF Session Timeout: 1440s

GLOBALS[] and HTTP_GET_VARS['main_page'] and _GET['main_page'] = - - index

_SERVER['PHP_SELF'] and _GET['PHP_SELF'] and PHP_SELF and _SESSION['PHP_SELF'] = /index.php - - /index.php -

getenv('REQUEST_URI') = /index.php

SERVER_NAME = colorcrazegifts.com

SCRIPT_FILENAME = xxxxxxxxxxxxxxxxxxxx

HTTP_REFERER =

template_dir = classic

$cPath=

TEST LANGUAGE TEST_LANGUAGE

SERVER_NAME within HTTP_REFERER - No

getenv replacements:
$_SERVER[HTTPS]
$_SERVER[HTTP_USER_AGENT] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
$_SERVER[REQUEST_URI] /index.php
$_SERVER[SSL_SESSION_ID]
$_SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.5

TEST BACK NONE-1
Go to: http://colorcrazegifts.com/index.php?main_page=index

GET variables:
main_page => index

POST variables:

COOKIE variables:
zenAdminID => xxxxxxxxxxxxxxxxxxxxx
zenid => xxxxxxxxxxxxxxxxxxxxxxxxx

SESSION variables:
customers_host_address => xxxxxxxxxxxxxxxxxxxxx
cartID =>
cart => Object
navigation => Object
check_valid => true
language => english
languages_id => 1
languages_code => en
currency => USD
updateExpirations => 1
session_counter => 1
customers_ip_address =>xxxxxxxxxxxxxxxxxx
customers_host_address => xxxxxxxxxxxxxxxxxxxxxxxxxxx
cartID =>
cart => Object
observers => Array
contents => Array
total => 0
weight => 0
cartID =>
content_type =>
free_shipping_item => 0
free_shipping_weight => 0
free_shipping_price => 0
navigation => Object
observers => Array
path => Array
0 => Array
page => index
mode => NONSSL
get =>
post => Array
snapshot => Array
check_valid => true
language => english
languages_id => 1
languages_code => en
currency => USD
updateExpirations => 1
session_counter => 1
customers_ip_address =>xxxxxxxxxxxxxxxx

FILES variables:(if any)

Any ideas why?

SIte is http://colorcrazegifts.com/index.php

Thanks!

31 Jan 2007, 9:17 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Unwanted code on front page after install

mopho:

Any ideas why?

Yes ... you've somehow activated the tpl_header_test_info.php instead of the usual tpl_header.php in your active template.

This typically requires renaming the file to tpl_header.php, or copying the tpl_header_test_info.php file to a file named tpl_header.php in your custom template folder.

31 Jan 2007, 9:28 PM
#3
mopho avatar

mopho

New Zenner

Join Date:
Jan 2007
Posts:
5
Plugin Contributions:
0

Re: Unwanted code on front page after install

That did it! Just tell me where to send the box of chocolates!

Moishe