dpeterson
Posts: 13
|
| Posted: 08/06/2007, 7:24 AM |
|
We are in the process of testing our projects with the new CodeCharge version when we stumbled on this error. I was posting it here to see if anyone else got the error and how they dealt with it.
We use SQL Server 2000 database with .ASP code (server side) on Windows XP Platform. We use Javascript on the client side.
At first, nothing went wrong. All of our projects were fine after the conversion up until we made any change to the project and recompiled. First, there was this error
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'CCSContentType'
/PelicanTest/Common.asp, line 138
Checked Common.asp, and CCSContentType was never declared. This is strange because I never edited the Common.asp file. I declared the variable. I get another undecalred variable(Variable is undefined: 'CCSBr' - line 2849 in Classes.asp).
Fine. I'll declare that one. I checked my old version and that variable is in place of a "<BR>" tag. So I declare it as a constant variable
Const CCSBr = "<BR>"
I get another undeclared constant CCSUseAmps. I delcared it and set it to "TRUE"
Now, I get an error with one of my actual pages. It's missing a variable called 'CCSAmps'
I go the line of code
TemplateBlock.Variable("Action") = IIF(CCSUseAmps, Replace(HTMLFormAction, "&", CCSAmps), HTMLFormAction)
I'm not sure what to put in there. It looks like it wants a constant value for Ampersands. so I declare CCSAmps = "&"
This occurs for every page. After that, I get another undeclared variable in Classes
Variable is undefined: 'CCSIsXHTML'
/PelicanTest/Classes.asp, line 2715
I set it to false since my page is not XHTML. Now I get another one:
Variable is undefined: 'CCSSelected'
/PelicanTest/Classes.asp, line 2791
It's some code in the Show sub-routine and it looks completely different from the original code. I comb through the code and find the most similiar lines. In the place of where the new variable is I find the string "SELECTED". So I declare CCSSelected = "SELECTED"
Then...finally...the page comes up. It seems to work fine after that, so I assume I declared all of these new constants correctly. Of course, I could only test a few pages in one project because of the fact that I have to edit each file manually.
I was wondering if anyone else came up with these errors and how they avoided having to manually put all this code in. Perhaps there is something wrong with the .asp compiler?
|
 |
 |
TheunisP
Posts: 342
|
| Posted: 08/06/2007, 10:22 AM |
|
your common files are out of step template.asp, common.asp etc.
recompile and upload the whole project again
|
 |
 |
dpeterson
Posts: 13
|
| Posted: 08/06/2007, 10:29 AM |
|
I guess I didn't put that in my post. Before I did anything, I deleted all the .ASP files (including the common files), recomplied, and pushed it out.
|
 |
 |
TheunisP
Posts: 342
|
| Posted: 08/06/2007, 10:40 AM |
|
there is no 2 ways, it's referencing global variables/declarations - it might be that a write is not overwriting - always have the same problem between upgrades - names differ but the cause is the same
do you do a direct ftp publish? consider deleting the local ASP files, mind you not the event ASPs 
|
 |
 |
dpeterson
Posts: 13
|
| Posted: 08/06/2007, 10:47 AM |
|
I do a direct push (not with ftp I have access to the server directly through windows)
I just retried it and the error still persisted. Here is how I recompiled:
1) Deleted all .asp files off the server (save the event ones of course)
2) Deleted all the .asp files off the local
3) Recompiled
4) Copied all .asp files from local to server
5) Tested
I made the above changes (my first post) to some files and not any others. The ones that weren't working before still weren't working. When I added in the one line ( Const CCSAmps = "&" ) they worked.
I guess what I was wondering is if anyone else had this happen to them (where the overwirte is not overwriting) and if they figured out a way to force it to overwrite.
|
 |
 |
TheunisP
Posts: 342
|
| Posted: 08/06/2007, 11:00 AM |
|
yes "where the overwirte is not overwriting" - stopped counting the number of times support told me to manually delete files
mmm.... I was thinking of using Project Save As... but remembered I only dreamt that functionality
this is what support gonna tell you delete everything but that CCP and event files and recompile
ps DELETE ALL THE COMMON FILES classes, template etc etc. as well
|
 |
 |
|