Subj : Re: [WINServer] Error & Template files To : All From : winserver.support@winserver.com Date : Mon Nov 26 2018 16:14:50 Newsgroups: wclistserve.win.server Received: by winserver.com (Wildcat! SMTP Router v7.0.454.6) for WINServer@winserver.com; Mon, 26 Nov 2018 17:14:49 -0500 Received: from [192.168.1.68] ([99.121.5.8]) by winserver.com (Wildcat! SMTP v7.0.454.6) with ESMTP id 2267421710.1.3120; Mon, 26 Nov 2018 17:14:48 -0500 Message-ID: <5BFC7059.6070508@winserver.com> Date: Mon, 26 Nov 2018 17:14:49 -0500 From: Hector Santos Organization: Santronics Software, Inc User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.8.1 MIME-Version: 1.0 To: WINServer@winserver.com Subject: Re: [WINServer] Error & Template files References: <5BFB2658.8000003@winserver.com> <5BFB2BFA.1030108@winserver.com> <5BFC00AE.8090109@winserver.com> <5BFC0725.40505@winserver.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------080403060301060403090503" On 11/26/2018 10:44 AM, David King wrote: > Hector > > OK so following your chronology the following: > > - check for http\errors\notfound.wct > Entered: http://www.military.world/errors/notfound.wct > Response: Error 00000002 Template File Not Found: wc:\http\errors\notfound.wct - Contact Web Master This is clearly a problem with your VDG setup. > What I do know is that the page (notfound.html) exists but for some reason Wildcat isn't displaying it. >For some reason Wildcat appears to search for the .wct and .htm extensions but not .html like it does elsewhere. I think that maybe the issue ? (please correct if I am wrong!) You are mixing things up. I am afraid I may confuse you. First, you need to get the VDG paths correct because if you get an ERROR 2 (FILE NOT FOUND) with your direct URL request: http://www.military.world/errors/notfound.wct then the folder does not exist or the file does not exist. Its that simple. Second, mixing up the ideas of *.WCT and *.HTM and *.HTML files and wcWEB treats them. Rather than to figure out what is confusing to you, lets begin with these two basic concepts: - Wildcat Template (WCT) HTML files - Pure HTML Files When you enter a URL in the browser, with the extension: .WCT Wildcat will process this file as a Template File .HTM(L) Wildcat will DUMP this file to the browser, not process. Again, that is WHEN you enter the URL yourself. This is MUCH different than how it works internally NOT ENTERING A URL, but how an WCX or WCWEB expects to do. Internally, it can be an WCX or wcWEB itself who is using the files in the http\template and http\errors folders. There are many optional file to dedending on the event. If WCX or WCWEB wants to do a template, despite the file name and extension, they will called: TemplateInit(filename, parameters) That begins the template processor and it doesn't matter what the extension is. This is why all the files in the HTTP\TEMPLATE\* are templates, even though there are mixed bags of *.HTM and *.WCT and also *.INC files. All templates because almost all of them are used by WCX applications or the wcWEB directly. For example, when you click "/client?who.wcn", wcWEB will run "/code/HTML-WHO.WCX" which will do the following: TemplateInit("WHOS_ONLINE.HTM","") to display the who's online. But if you did this directly, http://military.world/template/WHOS_ONLINE.HTM its not going to be processed as a templates. You're not support to access those files directly. This is why there are a mixture of *.HTM and *.WCT and even *.INC. It was all designed to be run via a WCX and not entered directly. So what about the HTTP\ERRORS\ folder? The files in the http\ERRORS\ folder and some other files in the HTTP\* and also HTTP\PUBLIC\*, the sequence I provided to you MAY apply, it depends. But look at it this way, NO ONE enters: http://www.military.world/errors/notfound.wct The concept of a "Not Found" display is as a response to a real not found problem like really have a non-existing file: http://www.military.world/MISSING.html Now the sequence I provided applies to the original idea of a "NOTFOUND.HTM" file: wcWEB sees MISSING.HTML does not exist, so it starts with setting the response path and file name using pseudo code logic: // Logic for Not found concept responsePath = "http\errors\" responseFile = "notfound.htm" // now check for .wct version If Exists(ForceExtension(responsePath+responseFile,"wct")) then responseFile = "notfound.wct" end if // now check for responsefile in custom path: If Exists(responsePath+"custom\"+responseFile) then responsePath = responsePath+"custom\" end if // now process *.WCT or dump *.HTM if GetExtension(ResponsePath+ResponseFile) = "WCT" then // we got a template file TemplateInit(ResponsePath+ResponseFile,"") // do a bunch of template stuff as it prints // to the browsers else // just dump to the browser, not processing PrintFile(ResponsePath+ResponseFile) end if Thats the basic idea. This is done for many files. Read the file: http\errors\readme_errors.txt The same logic is true for some other files in the HTTP\* and HTTP\PUBLIC\*, like: http\closed.wct or htm http\public\newuser.wct or htm and many more optional files that can be templates or pure html. I hope all this gives you some insight. The history is such that people only had *.HTM(l) and not *.WCT. Only over time, that we wanted to give them some template processing power, so if there was a matching *.WCT file, then the *.WCT was used. Fix the VDG path. -- Hector, Engineering & Technical Support Santronics Software, Inc. http://www.santronics.com (sales) http://www.winserver.com (support) http://www.winserver.com/AupInfo (Online AUP Help) Office: 305-248-3204 begin:vcard fn:Hector Santos n:Santos;Hector email;internet:winserver.support@winserver.com tel;work:305-248-3204 version:2.1 end:vcard --- Platinum Xpress/Win/WINServer v3.1 * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013) .