Hi Hector
I'm adjusting my customized templates to your new ones. It's very cool now to have a "custom" directory. Now I found the message_create_error.htm
isn't used anymore, it displays a generic error page. I looked at the html- create message code and see a reference to this template. But why it isn't displayed?
Thanks
Rolf
Not sure Rolf, the code does refer to "wc:\http\template\message_create_error.htm" rigth?right?
const TplMessageError = "wc:\http\template\message_create_error.htm"
Anything that goes via WC:\ to the template folder will be checked first in the CUSTOM folder. So I guess make sure your custom version is spelled
Maybe you can compile HTML-CREATE MESSAGE to force an ERROR condition to
see if it works. like here where it gets the Posting Conference TCONFDESC:
if not GetConfDesc(postconfnum, Conference) then
// 451.3
ErrorNumber = GetLastError()
ErrorMsg = "Accessing Conference #"+Str(postconfnum)
if not DoErrorTemplate(ErrorNumber,ErrorMsg,params) then
PrintWebError(ErrorNumber,ErrorMsg)
end if
end
end if
Remove the NOT so that it forces the ERROR, this is just for testing it. Delete the WCX when you are done.
--
HLS
Rolf, I just create a:in
custom\message_create_error.htm
file with the following:
<html>
<body>
<h3> It worked! </h3>
</body>
</html>
I then changed HTML-CREATE MESSAGE.WCC to force the error like I explained below and I got the above information "It Worked" when I tried to post a
new message via the web.
So just make sure its spelled right. Hmmmmm, maybe there is another
POSTING ERROR type that is not using this template?
---
HLS
On 2007-03-16 4:24 PM, HECTOR SANTOS wrote to ROLF KNOBEL:
Not sure Rolf, the code does refer to "wc:\http\template\message_create_error.htm" rigth?
const TplMessageError = "wc:\http\template\message_create_error.htm"
Anything that goes via WC:\ to the template folder will be checked first
the CUSTOM folder. So I guess make sure your custom version is spelledright?
Maybe you can compile HTML-CREATE MESSAGE to force an ERROR condition to see if it works. like here where it gets the Posting Conference TCONFDESC:
if not GetConfDesc(postconfnum, Conference) then
// 451.3
ErrorNumber = GetLastError()
ErrorMsg = "Accessing Conference #"+Str(postconfnum)
if not DoErrorTemplate(ErrorNumber,ErrorMsg,params) then
PrintWebError(ErrorNumber,ErrorMsg)
end if
end
end if
Remove the NOT so that it forces the ERROR, this is just for testing it. Delete the WCX when you are done.
--
HLS
cool nowOn 2007-03-16 4:05 PM, ROLF KNOBEL wrote to HECTOR SANTOS:
Hi Hector
I'm adjusting my customized templates to your new ones. It's very
html-to have a "custom" directory. Now I found the message_create_error.htm isn't used anymore, it displays a generic error page. I looked at the
isn'tcreate message code and see a reference to this template. But why it
displayed?
Thanks
Rolf
Not sure Rolf, the code does refer to "wc:\http\template\message_create_error.htm" rigth?right?
const TplMessageError = "wc:\http\template\message_create_error.htm"
Anything that goes via WC:\ to the template folder will be checked first in the CUSTOM folder. So I guess make sure your custom version is spelled
Maybe you can compile HTML-CREATE MESSAGE to force an ERRORcondition to
see if it works. like here where it gets the Posting Conference TCONFDESC:
if not GetConfDesc(postconfnum, Conference) then
// 451.3
ErrorNumber = GetLastError()
ErrorMsg = "Accessing Conference #"+Str(postconfnum)
if not DoErrorTemplate(ErrorNumber,ErrorMsg,params) then
PrintWebError(ErrorNumber,ErrorMsg)
end if
end
end if
Remove the NOT so that it forces the ERROR, this is just for testing it. Delete the WCX when you are done.
--
HLS
On 2007-03-16 4:05 PM, ROLF KNOBEL wrote to HECTOR SANTOS:now
Hi Hector
I'm adjusting my customized templates to your new ones. It's very cool
message_create_error.htmto have a "custom" directory. Now I found the
html-isn't used anymore, it displays a generic error page. I looked at the
isn'tcreate message code and see a reference to this template. But why it
displayed?
Thanks
Rolf
Rolf, the only thing I can see that could relate to your question is that the error template is NOT used for ALL error conditions. Was there a particular posting error or warning that was shown that wasn't using the template?critical
From looking at HTML-CREATE MESSAGE.WCC, I can see there are a few
errors where it just shows a generic display, no error template is used.
Is that it?
--
HLS
On 2007-03-16 4:41 PM, HECTOR SANTOS wrote to ROLF KNOBEL:explained
Rolf, I just create a:
custom\message_create_error.htm
file with the following:
<html>
<body>
<h3> It worked! </h3>
</body>
</html>
I then changed HTML-CREATE MESSAGE.WCC to force the error like I
= "wc:\http\template\message_create_error.htm"below and I got the above information "It Worked" when I tried to post a new message via the web.
So just make sure its spelled right. Hmmmmm, maybe there is another POSTING ERROR type that is not using this template?
---
HLS
On 2007-03-16 4:24 PM, HECTOR SANTOS wrote to ROLF KNOBEL:
Not sure Rolf, the code does refer to "wc:\http\template\message_create_error.htm" rigth?
const TplMessageError
first inAnything that goes via WC:\ to the template folder will be checked
spelledthe CUSTOM folder. So I guess make sure your custom version is
condition toright?
Maybe you can compile HTML-CREATE MESSAGE to force an ERROR
TCONFDESC:see if it works. like here where it gets the Posting Conference
it.if not GetConfDesc(postconfnum, Conference) then
// 451.3
ErrorNumber = GetLastError()
ErrorMsg = "Accessing Conference #"+Str(postconfnum)
if not DoErrorTemplate(ErrorNumber,ErrorMsg,params) then
PrintWebError(ErrorNumber,ErrorMsg)
end if
end
end if
Remove the NOT so that it forces the ERROR, this is just for testing
Delete the WCX when you are done.
--
HLS
message_create_error.htmOn 2007-03-16 4:05 PM, ROLF KNOBEL wrote to HECTOR SANTOS:
Hi Hector
cool nowI'm adjusting my customized templates to your new ones. It's very
to have a "custom" directory. Now I found the
ithtml-isn't used anymore, it displays a generic error page. I looked at the
create message code and see a reference to this template. But why
isn't
displayed?
Thanks
Rolf
Confusing is that you don't distribute this file with your templates.
First: with removing NOT as you wrote it displays the error template as it should.first in
What I did: Create a message (conference 0) and type a bad name on
the "to" field. The template isn't used for the error display.
What I found: there's a missing error template handling in html-create message:
if CarbonInvalidCount() > 0 then
print "<p><font color='red'><b>";
print "Error: ";CarbonInvalidCount();" invalid receipients name(s): ";
print "</b></font></p>"
dim bad as TInvalidUserInfo
if CarbonInvalidFirst(bad) then
do
print "TO: <b>""";bad.info.name;"""</b><font color=red>
reason: ";bad.describe;"</font><br>"
if not CarbonInvalidNext(bad) then
exit do
end if
loop
end if
print "<p>Backup to previous page and correct the indicated input field.</p>"
end
end if
This is exactly the error message displayed after typing a bad receipient.
Thanks
Rolf
On 2007-03-16 4:24 PM, HECTOR SANTOS wrote to ROLF KNOBEL:
Not sure Rolf, the code does refer to "wc:\http\template\message_create_error.htm" rigth?
const TplMessageError = "wc:\http\template\message_create_error.htm"
Anything that goes via WC:\ to the template folder will be checked
TCONFDESC:the CUSTOM folder. So I guess make sure your custom version is spelledright?
Maybe you can compile HTML-CREATE MESSAGE to force an ERRORcondition to
see if it works. like here where it gets the Posting Conference
if not GetConfDesc(postconfnum, Conference) then
// 451.3
ErrorNumber = GetLastError()
ErrorMsg = "Accessing Conference #"+Str(postconfnum)
if not DoErrorTemplate(ErrorNumber,ErrorMsg,params) then
PrintWebError(ErrorNumber,ErrorMsg)
end if
end
end if
Remove the NOT so that it forces the ERROR, this is just for testing it. Delete the WCX when you are done.
--
HLS
the html-On 2007-03-16 4:05 PM, ROLF KNOBEL wrote to HECTOR SANTOS:
Hi Hector
nowI'm adjusting my customized templates to your new ones. It's very cool
message_create_error.htmto have a "custom" directory. Now I found the
isn't used anymore, it displays a generic error page. I looked at
isn'tcreate message code and see a reference to this template. But why it
displayed?
Thanks
Rolf
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 427 |
Nodes: | 16 (2 / 14) |
Uptime: | 96:30:00 |
Calls: | 9,047 |
Calls today: | 4 |
Files: | 13,395 |
Messages: | 6,014,436 |