-
Re: Error 540 in Guest book page
Thanks for the help.
I used the Publish Site from Fusion 9 and published the entire site.
Any ideas as to why it does not publish properly? This only happens with
the pages that have the Guestbook feature.
"Hobbit" <hobbitworld@hotmail.com> wrote in message
news:e47l3o$1n24@flsun90netnews01.netobjects.com.. .
> David,
>
> If I remove the following code from your source and save as '.html' you
> page loads OK:
>
> <%
> nof_rootDir="../"
> nof_scriptDir="scripts"
> nof_debug=false
> nof_sitePath = GetSitePath(nof_rootDir)
>
> function GetSitePath(RootDir)
> Dim relPath
> relPath = split(RootDir, "/")
> forwardSteps = UBound(relPath) - 1
> if forwardSteps = 0 and relPath(0) = "." then forwardSteps = -1
> GetSitePath = Server.MapPath(".")
> for idx=0 to forwardSteps
> GetSitePath = Left(GetSitePath, inStrRev(GetSitePath, "\") - 1)
> next
> GetSitePath = GetSitePath & "\"
> end function
> %>
> <%
> sub IncludeLib(ByVal lib, ByVal sitePath, ByVal scriptDir)
> dim fso, f, buf, filePath
>
> Set fso = Server.CreateObject("Scripting.FileSystemObject")
> filePath = sitePath & scriptDir & "\" & lib
> if fso.FileExists(filePath) then
> set f = fso.OpenTextFile(filePath, 1, false, -2)
> buf = f.ReadAll
> f.close()
> set f = nothing
>
> Dim regEx
> Set regEx = New RegExp
> regEx.Pattern = "^\s*<" & chr(37) & "\s*"
> regEx.IgnoreCase = True
> regEx.Global = True
> buf = regEx.Replace(buf,"")
> regEx.Pattern = "\s*" & chr(37) & ">\s*$"
> regEx.IgnoreCase = True
> regEx.Global = True
> buf = regEx.Replace(buf, "")
> set regEx = nothing
>
> ExecuteGlobal buf
> else
> if nof_debug then
> Response.Write "Could not include the file `" & filePath & "`."
> else
> Response.Write "<p>An error occured. Please contact the site
> administrator.</p>"
> Response.Write "<p>Error code: 103</p>"
> end if
> Response.End
> end if
>
> set fso = nothing
> end sub
> %>
> <%
> call IncludeLib("gb_XmlLib.asp", nof_sitePath, nof_scriptDir)
> call IncludeLib("gb_CdoMail.asp", nof_sitePath, nof_scriptDir)
> %>
> <%
> call IncludeLib("gb_admin.asp", nof_sitePath, nof_scriptDir)
> %>
>
> Should this be located between the HEAD tags or else where??
>
> Kevin.
>
>
>
> "Hobbit" <hobbitworld@hotmail.com> wrote in message
> news:e47h6m$1n32@flsun90netnews01.netobjects.com.. .
>> David,
>>
>> I just see your code (source)..
>>
>>
>> <David> wrote in message
>> news:e47gu4$1n31@flsun90netnews01.netobjects.com.. .
>>> Thanks for the review. I'm not sure what you are referring to.
>>>
>>> When I bring up the "Guest Comments" page, I get a form that allows to
>>> submit information.
>>>
>>> At the bottom is where I get the error.
>>>
>>> That's the part I am having trouble with.
>>>
>>> Any help is greatly appreciated.
>>>
>>> "Hobbit" <hobbitworld@hotmail.com> wrote in message
>>> news:e47fo0$1n21@flsun90netnews01.netobjects.com.. .
>>>> David,
>>>>
>>>> I don't know ASP, but your page just loads as plain text. Should you
>>>> have
>>>> something at the HEAD of your page which identifies it as HTML?
>>>>
>>>> Regards,
>>>>
>>>> Kevin.
>>>>
>>>>
>>>> <David> wrote in message
>>>> news:e47clc$s41@flsun90netnews01.netobjects.com...
>>>>> www.trailcreekvt.com
>>>>>
>>>>> After clikcing on "Guest Comments", (scroll to the bottom) the user
>>>>> gets:
>>>>>
>>>>> An error occured. Please contact the site administrator.
>>>>>
>>>>> Error code: 540
>>>>>
>>>>> I can't find this error code in the documentation and I can't figure
>>>>> out
>>>>> why this is happening.
>>>>>
>>>>> The same thing happens with the Guestbook Admin feature on the "Board
>>>>> Use
>>>>> Only" page.
>>>>>
>>>>> Can someone tell me what I'm doing wrong?
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
-
Re: Error 540 in Guest book page
Things are getting better (sort of).
I chaged the script style from ASP to PHP. The page loads fine.
I am still getting the Error 540 error.
Any thoughts?
www.trailcreekvt.com
Guest Comments page
<David> wrote in message news:e48bb3$3cv2@flsun90netnews01.netobjects.com.. .
> Thanks for the help.
>
> I used the Publish Site from Fusion 9 and published the entire site.
>
> Any ideas as to why it does not publish properly? This only happens with
> the pages that have the Guestbook feature.
>
> "Hobbit" <hobbitworld@hotmail.com> wrote in message
> news:e47l3o$1n24@flsun90netnews01.netobjects.com.. .
>> David,
>>
>> If I remove the following code from your source and save as '.html' you
>> page loads OK:
>>
>> <%
>> nof_rootDir="../"
>> nof_scriptDir="scripts"
>> nof_debug=false
>> nof_sitePath = GetSitePath(nof_rootDir)
>>
>> function GetSitePath(RootDir)
>> Dim relPath
>> relPath = split(RootDir, "/")
>> forwardSteps = UBound(relPath) - 1
>> if forwardSteps = 0 and relPath(0) = "." then forwardSteps = -1
>> GetSitePath = Server.MapPath(".")
>> for idx=0 to forwardSteps
>> GetSitePath = Left(GetSitePath, inStrRev(GetSitePath, "\") - 1)
>> next
>> GetSitePath = GetSitePath & "\"
>> end function
>> %>
>> <%
>> sub IncludeLib(ByVal lib, ByVal sitePath, ByVal scriptDir)
>> dim fso, f, buf, filePath
>>
>> Set fso = Server.CreateObject("Scripting.FileSystemObject")
>> filePath = sitePath & scriptDir & "\" & lib
>> if fso.FileExists(filePath) then
>> set f = fso.OpenTextFile(filePath, 1, false, -2)
>> buf = f.ReadAll
>> f.close()
>> set f = nothing
>>
>> Dim regEx
>> Set regEx = New RegExp
>> regEx.Pattern = "^\s*<" & chr(37) & "\s*"
>> regEx.IgnoreCase = True
>> regEx.Global = True
>> buf = regEx.Replace(buf,"")
>> regEx.Pattern = "\s*" & chr(37) & ">\s*$"
>> regEx.IgnoreCase = True
>> regEx.Global = True
>> buf = regEx.Replace(buf, "")
>> set regEx = nothing
>>
>> ExecuteGlobal buf
>> else
>> if nof_debug then
>> Response.Write "Could not include the file `" & filePath & "`."
>> else
>> Response.Write "<p>An error occured. Please contact the site
>> administrator.</p>"
>> Response.Write "<p>Error code: 103</p>"
>> end if
>> Response.End
>> end if
>>
>> set fso = nothing
>> end sub
>> %>
>> <%
>> call IncludeLib("gb_XmlLib.asp", nof_sitePath, nof_scriptDir)
>> call IncludeLib("gb_CdoMail.asp", nof_sitePath, nof_scriptDir)
>> %>
>> <%
>> call IncludeLib("gb_admin.asp", nof_sitePath, nof_scriptDir)
>> %>
>>
>> Should this be located between the HEAD tags or else where??
>>
>> Kevin.
>>
>>
>>
>> "Hobbit" <hobbitworld@hotmail.com> wrote in message
>> news:e47h6m$1n32@flsun90netnews01.netobjects.com.. .
>>> David,
>>>
>>> I just see your code (source)..
>>>
>>>
>>> <David> wrote in message
>>> news:e47gu4$1n31@flsun90netnews01.netobjects.com.. .
>>>> Thanks for the review. I'm not sure what you are referring to.
>>>>
>>>> When I bring up the "Guest Comments" page, I get a form that allows to
>>>> submit information.
>>>>
>>>> At the bottom is where I get the error.
>>>>
>>>> That's the part I am having trouble with.
>>>>
>>>> Any help is greatly appreciated.
>>>>
>>>> "Hobbit" <hobbitworld@hotmail.com> wrote in message
>>>> news:e47fo0$1n21@flsun90netnews01.netobjects.com.. .
>>>>> David,
>>>>>
>>>>> I don't know ASP, but your page just loads as plain text. Should you
>>>>> have
>>>>> something at the HEAD of your page which identifies it as HTML?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Kevin.
>>>>>
>>>>>
>>>>> <David> wrote in message
>>>>> news:e47clc$s41@flsun90netnews01.netobjects.com...
>>>>>> www.trailcreekvt.com
>>>>>>
>>>>>> After clikcing on "Guest Comments", (scroll to the bottom) the user
>>>>>> gets:
>>>>>>
>>>>>> An error occured. Please contact the site administrator.
>>>>>>
>>>>>> Error code: 540
>>>>>>
>>>>>> I can't find this error code in the documentation and I can't figure
>>>>>> out
>>>>>> why this is happening.
>>>>>>
>>>>>> The same thing happens with the Guestbook Admin feature on the "Board
>>>>>> Use
>>>>>> Only" page.
>>>>>>
>>>>>> Can someone tell me what I'm doing wrong?
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
-
Re: Error 540 in Guest book page
David,
If I remove the following code from your source and save as '.html' you page
loads OK:
<%
nof_rootDir="../"
nof_scriptDir="scripts"
nof_debug=false
nof_sitePath = GetSitePath(nof_rootDir)
function GetSitePath(RootDir)
Dim relPath
relPath = split(RootDir, "/")
forwardSteps = UBound(relPath) - 1
if forwardSteps = 0 and relPath(0) = "." then forwardSteps = -1
GetSitePath = Server.MapPath(".")
for idx=0 to forwardSteps
GetSitePath = Left(GetSitePath, inStrRev(GetSitePath, "\") - 1)
next
GetSitePath = GetSitePath & "\"
end function
%>
<%
sub IncludeLib(ByVal lib, ByVal sitePath, ByVal scriptDir)
dim fso, f, buf, filePath
Set fso = Server.CreateObject("Scripting.FileSystemObject")
filePath = sitePath & scriptDir & "\" & lib
if fso.FileExists(filePath) then
set f = fso.OpenTextFile(filePath, 1, false, -2)
buf = f.ReadAll
f.close()
set f = nothing
Dim regEx
Set regEx = New RegExp
regEx.Pattern = "^\s*<" & chr(37) & "\s*"
regEx.IgnoreCase = True
regEx.Global = True
buf = regEx.Replace(buf,"")
regEx.Pattern = "\s*" & chr(37) & ">\s*$"
regEx.IgnoreCase = True
regEx.Global = True
buf = regEx.Replace(buf, "")
set regEx = nothing
ExecuteGlobal buf
else
if nof_debug then
Response.Write "Could not include the file `" & filePath & "`."
else
Response.Write "<p>An error occured. Please contact the site
administrator.</p>"
Response.Write "<p>Error code: 103</p>"
end if
Response.End
end if
set fso = nothing
end sub
%>
<%
call IncludeLib("gb_XmlLib.asp", nof_sitePath, nof_scriptDir)
call IncludeLib("gb_CdoMail.asp", nof_sitePath, nof_scriptDir)
%>
<%
call IncludeLib("gb_admin.asp", nof_sitePath, nof_scriptDir)
%>
Should this be located between the HEAD tags or else where??
Kevin.
"Hobbit" <hobbitworld@hotmail.com> wrote in message
news:e47h6m$1n32@flsun90netnews01.netobjects.com.. .
> David,
>
> I just see your code (source)..
>
>
> <David> wrote in message
> news:e47gu4$1n31@flsun90netnews01.netobjects.com.. .
>> Thanks for the review. I'm not sure what you are referring to.
>>
>> When I bring up the "Guest Comments" page, I get a form that allows to
>> submit information.
>>
>> At the bottom is where I get the error.
>>
>> That's the part I am having trouble with.
>>
>> Any help is greatly appreciated.
>>
>> "Hobbit" <hobbitworld@hotmail.com> wrote in message
>> news:e47fo0$1n21@flsun90netnews01.netobjects.com.. .
>>> David,
>>>
>>> I don't know ASP, but your page just loads as plain text. Should you
>>> have
>>> something at the HEAD of your page which identifies it as HTML?
>>>
>>> Regards,
>>>
>>> Kevin.
>>>
>>>
>>> <David> wrote in message
>>> news:e47clc$s41@flsun90netnews01.netobjects.com...
>>>> www.trailcreekvt.com
>>>>
>>>> After clikcing on "Guest Comments", (scroll to the bottom) the user
>>>> gets:
>>>>
>>>> An error occured. Please contact the site administrator.
>>>>
>>>> Error code: 540
>>>>
>>>> I can't find this error code in the documentation and I can't figure
>>>> out
>>>> why this is happening.
>>>>
>>>> The same thing happens with the Guestbook Admin feature on the "Board
>>>> Use
>>>> Only" page.
>>>>
>>>> Can someone tell me what I'm doing wrong?
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
-
Error 540 in Guest book page
www.trailcreekvt.com
After clikcing on "Guest Comments", (scroll to the bottom) the user gets:
An error occured. Please contact the site administrator.
Error code: 540
I can't find this error code in the documentation and I can't figure out why
this is happening.
The same thing happens with the Guestbook Admin feature on the "Board Use
Only" page.
Can someone tell me what I'm doing wrong?
-
Re: Error 540 in Guest book page
David,
I don't know ASP, but your page just loads as plain text. Should you have
something at the HEAD of your page which identifies it as HTML?
Regards,
Kevin.
<David> wrote in message news:e47clc$s41@flsun90netnews01.netobjects.com...
> www.trailcreekvt.com
>
> After clikcing on "Guest Comments", (scroll to the bottom) the user gets:
>
> An error occured. Please contact the site administrator.
>
> Error code: 540
>
> I can't find this error code in the documentation and I can't figure out
> why this is happening.
>
> The same thing happens with the Guestbook Admin feature on the "Board Use
> Only" page.
>
> Can someone tell me what I'm doing wrong?
>
>
-
Re: Error 540 in Guest book page
Thanks for the review. I'm not sure what you are referring to.
When I bring up the "Guest Comments" page, I get a form that allows to
submit information.
At the bottom is where I get the error.
That's the part I am having trouble with.
Any help is greatly appreciated.
"Hobbit" <hobbitworld@hotmail.com> wrote in message
news:e47fo0$1n21@flsun90netnews01.netobjects.com.. .
> David,
>
> I don't know ASP, but your page just loads as plain text. Should you have
> something at the HEAD of your page which identifies it as HTML?
>
> Regards,
>
> Kevin.
>
>
> <David> wrote in message
> news:e47clc$s41@flsun90netnews01.netobjects.com...
>> www.trailcreekvt.com
>>
>> After clikcing on "Guest Comments", (scroll to the bottom) the user gets:
>>
>> An error occured. Please contact the site administrator.
>>
>> Error code: 540
>>
>> I can't find this error code in the documentation and I can't figure out
>> why this is happening.
>>
>> The same thing happens with the Guestbook Admin feature on the "Board Use
>> Only" page.
>>
>> Can someone tell me what I'm doing wrong?
>>
>>
>
>
-
Re: Error 540 in Guest book page
David,
I just see your code (source)..
<David> wrote in message news:e47gu4$1n31@flsun90netnews01.netobjects.com.. .
> Thanks for the review. I'm not sure what you are referring to.
>
> When I bring up the "Guest Comments" page, I get a form that allows to
> submit information.
>
> At the bottom is where I get the error.
>
> That's the part I am having trouble with.
>
> Any help is greatly appreciated.
>
> "Hobbit" <hobbitworld@hotmail.com> wrote in message
> news:e47fo0$1n21@flsun90netnews01.netobjects.com.. .
>> David,
>>
>> I don't know ASP, but your page just loads as plain text. Should you have
>> something at the HEAD of your page which identifies it as HTML?
>>
>> Regards,
>>
>> Kevin.
>>
>>
>> <David> wrote in message
>> news:e47clc$s41@flsun90netnews01.netobjects.com...
>>> www.trailcreekvt.com
>>>
>>> After clikcing on "Guest Comments", (scroll to the bottom) the user
>>> gets:
>>>
>>> An error occured. Please contact the site administrator.
>>>
>>> Error code: 540
>>>
>>> I can't find this error code in the documentation and I can't figure out
>>> why this is happening.
>>>
>>> The same thing happens with the Guestbook Admin feature on the "Board
>>> Use
>>> Only" page.
>>>
>>> Can someone tell me what I'm doing wrong?
>>>
>>>
>>
>>
>
>
-
Re: Error 540 in Guest book page
Nice site by the way.
Are you using the Forms Handler component or your own script?
If the latter I am not conversant enough with scripting to comment. However,
if the former, then have you completed the Forms Handler properties? In
particular have you set up the items on the General tab, as well as the
'Success' field on the Page tab.
I was getting this problem as well. I found it was a Server error. If you
are running on a Windows Server the server can't process the scripts (or so
my server tells me!) I switched to their Linux server and everything worked
fine once I could set permissions on the relevant directories.
Oh yes...that's the other one. If permissions haven't been set, that can
cause the 540 error as well.
Hope these ideas help.
Tony
<David> wrote in message news:e48d3a$3cu5@flsun90netnews01.netobjects.com.. .
> Things are getting better (sort of).
>
> I chaged the script style from ASP to PHP. The page loads fine.
>
> I am still getting the Error 540 error.
>
> Any thoughts?
>
> www.trailcreekvt.com
>
> Guest Comments page
>
> <David> wrote in message
> news:e48bb3$3cv2@flsun90netnews01.netobjects.com.. .
>> Thanks for the help.
>>
>> I used the Publish Site from Fusion 9 and published the entire site.
>>
>> Any ideas as to why it does not publish properly? This only happens with
>> the pages that have the Guestbook feature.
>>
>> "Hobbit" <hobbitworld@hotmail.com> wrote in message
>> news:e47l3o$1n24@flsun90netnews01.netobjects.com.. .
>>> David,
>>>
>>> If I remove the following code from your source and save as '.html' you
>>> page loads OK:
>>>
>>> <%
>>> nof_rootDir="../"
>>> nof_scriptDir="scripts"
>>> nof_debug=false
>>> nof_sitePath = GetSitePath(nof_rootDir)
>>>
>>> function GetSitePath(RootDir)
>>> Dim relPath
>>> relPath = split(RootDir, "/")
>>> forwardSteps = UBound(relPath) - 1
>>> if forwardSteps = 0 and relPath(0) = "." then forwardSteps = -1
>>> GetSitePath = Server.MapPath(".")
>>> for idx=0 to forwardSteps
>>> GetSitePath = Left(GetSitePath, inStrRev(GetSitePath, "\") - 1)
>>> next
>>> GetSitePath = GetSitePath & "\"
>>> end function
>>> %>
>>> <%
>>> sub IncludeLib(ByVal lib, ByVal sitePath, ByVal scriptDir)
>>> dim fso, f, buf, filePath
>>>
>>> Set fso = Server.CreateObject("Scripting.FileSystemObject")
>>> filePath = sitePath & scriptDir & "\" & lib
>>> if fso.FileExists(filePath) then
>>> set f = fso.OpenTextFile(filePath, 1, false, -2)
>>> buf = f.ReadAll
>>> f.close()
>>> set f = nothing
>>>
>>> Dim regEx
>>> Set regEx = New RegExp
>>> regEx.Pattern = "^\s*<" & chr(37) & "\s*"
>>> regEx.IgnoreCase = True
>>> regEx.Global = True
>>> buf = regEx.Replace(buf,"")
>>> regEx.Pattern = "\s*" & chr(37) & ">\s*$"
>>> regEx.IgnoreCase = True
>>> regEx.Global = True
>>> buf = regEx.Replace(buf, "")
>>> set regEx = nothing
>>>
>>> ExecuteGlobal buf
>>> else
>>> if nof_debug then
>>> Response.Write "Could not include the file `" & filePath & "`."
>>> else
>>> Response.Write "<p>An error occured. Please contact the site
>>> administrator.</p>"
>>> Response.Write "<p>Error code: 103</p>"
>>> end if
>>> Response.End
>>> end if
>>>
>>> set fso = nothing
>>> end sub
>>> %>
>>> <%
>>> call IncludeLib("gb_XmlLib.asp", nof_sitePath, nof_scriptDir)
>>> call IncludeLib("gb_CdoMail.asp", nof_sitePath, nof_scriptDir)
>>> %>
>>> <%
>>> call IncludeLib("gb_admin.asp", nof_sitePath, nof_scriptDir)
>>> %>
>>>
>>> Should this be located between the HEAD tags or else where??
>>>
>>> Kevin.
>>>
>>>
>>>
>>> "Hobbit" <hobbitworld@hotmail.com> wrote in message
>>> news:e47h6m$1n32@flsun90netnews01.netobjects.com.. .
>>>> David,
>>>>
>>>> I just see your code (source)..
>>>>
>>>>
>>>> <David> wrote in message
>>>> news:e47gu4$1n31@flsun90netnews01.netobjects.com.. .
>>>>> Thanks for the review. I'm not sure what you are referring to.
>>>>>
>>>>> When I bring up the "Guest Comments" page, I get a form that allows to
>>>>> submit information.
>>>>>
>>>>> At the bottom is where I get the error.
>>>>>
>>>>> That's the part I am having trouble with.
>>>>>
>>>>> Any help is greatly appreciated.
>>>>>
>>>>> "Hobbit" <hobbitworld@hotmail.com> wrote in message
>>>>> news:e47fo0$1n21@flsun90netnews01.netobjects.com.. .
>>>>>> David,
>>>>>>
>>>>>> I don't know ASP, but your page just loads as plain text. Should you
>>>>>> have
>>>>>> something at the HEAD of your page which identifies it as HTML?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Kevin.
>>>>>>
>>>>>>
>>>>>> <David> wrote in message
>>>>>> news:e47clc$s41@flsun90netnews01.netobjects.com...
>>>>>>> www.trailcreekvt.com
>>>>>>>
>>>>>>> After clikcing on "Guest Comments", (scroll to the bottom) the user
>>>>>>> gets:
>>>>>>>
>>>>>>> An error occured. Please contact the site administrator.
>>>>>>>
>>>>>>> Error code: 540
>>>>>>>
>>>>>>> I can't find this error code in the documentation and I can't figure
>>>>>>> out
>>>>>>> why this is happening.
>>>>>>>
>>>>>>> The same thing happens with the Guestbook Admin feature on the
>>>>>>> "Board Use
>>>>>>> Only" page.
>>>>>>>
>>>>>>> Can someone tell me what I'm doing wrong?
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules