Print Page | Close Window

error on header.asp

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=5300
Printed Date: 09-March-2025 at 11:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: error on header.asp
Posted By: mike17
Subject: error on header.asp
Date Posted: 02-October-2012 at 4:35pm
Hi there, I uploaded the following code on header.asp to get the keywords geenrated by product cart.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--#include file="include-metatags.asp"-->
<html>
 <head>
  <%if pcv_PageName<>"" then%>
   <title><%=pcv_PageName%></title>
  <%end if%>
  <%GenerateMetaTags()%>
  <%Response.Buffer=True%> 
  <%
   Set conlayout=Server.CreateObject("ADODB.Connection")
   conlayout.Open scDSN
   Set RSlayout = conlayout.Execute("Select * From layout Where layout.ID=2")
   Set rsIconObj = conlayout.Execute("Select * From icons WHERE id=1")
  %>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <link type="text/css" rel="stylesheet" href="pcStorefront.css" />
  <!--#include file="inc_header.asp" -->
 </head>


I ended getting this error,

Microsoft VBScript compilation error '800a0411'

Name redefined

/NCFstore/pc/inc_header.asp, line 2

private const scIncHeader="1" --------------^

Can you please help ?





Replies:
Posted By: Guests
Date Posted: 02-October-2012 at 4:58pm
Hi Mike,

This means that inc_header.asp is included more than once.

Your code snippet shows it once (in the correct location). So, either it's included again in header.asp, or it's included in the core file (e.g. home.asp).

You need to find the other inclusion of inc_header.asp and remove it.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net