Re: WebCat Error Log problem (2.0.1, acgi, Mac)

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14008
interpreted = N
texte = Your ErrorTemplate.tmpl is writing the error log without 'thinking of' the file as a database. When you later view it as a database using a search criteria, it gets cached and never looks at the disk again. We purposely 'un-databased' it in order to reduce RAM overhead because some people were getting huge error logs sucked into RAM.Either do a [CloseDatabase] before viewing the log (to force a reload), or else change your template so that the log gets written as plain HTML (no longer a database), and view it directly from your browser as a plain HTML file without going thru WebCatalog.>Quick question on the Admin stuff in the WebCat 2.0.1 ACGI (Mac). My >ErrorTemplate.tmpl file looks like this: > >[appendfile file=/WebCatalog/ErrorLog.db&secure=F][date] [time] >[command] [ipaddress] [errormessage] >[/appendfile] > >and it correctly appends the ErrorLog.db and writes it to disk each time >there is an error. But the Errors.tmpl file, which looks like this >(the important part anyway): > >DateTimeCommandIP >AddressError >[search db=../ErrorLog.db&nedatedata=0] >[foundItems] >[date][time][command][ipaddress][errormessage] >[/foundItems] >[/search] > >doesn't cause WebCat to display the complete log. It only shows the >records in the log that were there at the moment that WebCat started up. >Yes, I did modify this slightly from the supplied Admin stuff with 2.0.1 >because the error log was not formatted as a table, so I stuck the table >tags in and changed it from errorlog.txt to errorlog.db. Is there any >apparent reason in the code above as to why it is not working? Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat Error Log problem (2.0.1, acgi, Mac) (Gil Poulsen 1997)
  2. Re: WebCat Error Log problem (2.0.1, acgi, Mac) (Grant Hulbert 1997)
  3. WebCat Error Log problem (2.0.1, acgi, Mac) (Gil Poulsen 1997)
Your ErrorTemplate.tmpl is writing the error log without 'thinking of' the file as a database. When you later view it as a database using a search criteria, it gets cached and never looks at the disk again. We purposely 'un-databased' it in order to reduce RAM overhead because some people were getting huge error logs sucked into RAM.Either do a [closedatabase] before viewing the log (to force a reload), or else change your template so that the log gets written as plain HTML (no longer a database), and view it directly from your browser as a plain HTML file without going thru WebCatalog.>Quick question on the Admin stuff in the WebCat 2.0.1 ACGI (Mac). My >ErrorTemplate.tmpl file looks like this: > >[appendfile file=/WebCatalog/ErrorLog.db&secure=F][date] [time] >[command] [ipaddress] [errormessage] >[/appendfile] > >and it correctly appends the ErrorLog.db and writes it to disk each time >there is an error. But the Errors.tmpl file, which looks like this >(the important part anyway): > >DateTimeCommandIP >AddressError >[search db=../ErrorLog.db&nedatedata=0] >[founditems] >[date][time][command][ipaddress][errormessage] >[/foundItems] >[/search] > >doesn't cause WebCat to display the complete log. It only shows the >records in the log that were there at the moment that WebCat started up. >Yes, I did modify this slightly from the supplied Admin stuff with 2.0.1 >because the error log was not formatted as a table, so I stuck the table >tags in and changed it from errorlog.txt to errorlog.db. Is there any >apparent reason in the code above as to why it is not working? Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

shipcost (1997) HomePage Caution (1997) executing via commandline (2003) Access Denied! But why? (1997) [WebDNA] Bug in [thisurlplusget] on v7 (2011) FAX orders (1996) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) taxTotal, grandTotal (1997) WCS Newbie question (1997) MATH TIME (1997) WebTV problems with WebCatalog?? (1998) Cold Fusion (1998) best way to store prefs (1998) WebTEN vs webSTAR (1998) why am I getting an authenticate dialog with no [protect]? (2000) SiteEdit NewFile.html ? (1997) RE: redirect with more than 256 characters (1999) WebDNA version? (2007) [SearchString] problem with [search] context (1997) [WebDNA] plupload ? (2012)