View Single Post
  #7  
Old 12-14-2004, 12:51 PM
 
towbar towbar is offline
 

Member
  
Join Date: Feb 2004
Location: UK
Posts: 20
 

Default

Quote:
Originally Posted by Emerson
Sorry, I just realised you were tying to add the code to the home.php file and no the tpl file.

You could try to add the following... right before the last ?> in home.php

Quote:
require("stats/spider_trap.php");

the error at the bottom of the page

INVALID SQL: 1046 : No Database Selected
SQL QUERY FAILURE: UPDATE xcart_sessions_data SET data='a:24:{s:11:\"editor_mode\";s:0:\"\";s:8:\"is _robot\";s:1:\"N\";s:5:\"robot\";s:0:\"\";s:11:\"i s_location\";s:1:\"Y\";s:9:\"adaptives\";a:12:{s:4 :\"isJS\";s:1:\"Y\";s:5:\"isDOM\";s:1:\"Y\";s:8:\" isStrict\";s:0:\"\";s:6:\"isJava\";s:1:\"Y\";s:7:\ "browser\";s:4:\"MSIE\";s:7:\"version\";s:3:\"6.0\ ";s:8:\"platform\";s:5:\"Win32\";s:8:\"isCookie\"; s:1:\"Y\";s:8:\"screen_x\";s:4:\"1024\";s:8:\"scre en_y\";s:3:\"768\";s:7:\"plugins\";a:1:{i:0;s:0:\" \";}s:14:\"is_first_start\";s:0:\"\";}s:26:\"sessi on_failed_transaction\";s:0:\"\";s:16:\"add_to_car t_time\";s:0:\"\";s:17:\"always_allow_shop\";s:0:\ "\";s:16:\"current_url_page\";s:30:\"http://www.towbar.biz/home.php\";s:12:\"current_date\";i:1103060850;s:19 :\"session_create_date\";i:1103055841;s:4:\"wlid\" ;s:0:\"\";s:10:\"js_enabled\";s:1:\"Y\";s:11:\"top _message\";s:0:\"\";s:15:\"referer_session\";s:69: \"XXXX:+++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++\";s:5:\"login\";s:0:\"\";s:1 0:\"login_type\";s:0:\"\";s:6:\"logged\";s:0:\"\"; s:4:\"cart\";s:0:\"\";s:12:\"stats_pageid\";s:1:\" 1\";s:15:\"stats_page_time\";i:1103060850;s:18:\"s tats_pages_string\";s:3:\"2-1\";s:19:\"stats_transactionid\";s:0:\"\";s:22:\"s tats_transaction_step\";s:0:\"\";}' WHERE sessid='2d95166696be309213a0593436f34e04'
__________________
andy

X cart 5 ver 5.0.14
PHP: 5.3.2-1ubuntu4.24 details >>
MySQL server: 5.1.67-0ubuntu0.10.04.1 (InnoDB engine support enabled)
Web server: Apache
Operating system: Linux
XML parser: found
GDLib: found (2.0)
Translation driver: Database
Curl version: 7.19.7
Reply With Quote