fetch w/ IF and 82 error

iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

fetch w/ IF and 82 error

Post by iclbloom »

why does this not work, IF stmts?

<SCRIPT LANGUAGE=vortex>
<A NAME=main PUBLIC>
<$page = http://www.thunderstone.com>
<if $page ="">
<fetch PARALLEL $page><$fetch_ret = $ret>
<else>
<fetch PARALLEL $page><$fetch_ret = $ret>
</if>
<urltext>
<urllinks>
</fetch>

Also

what is unknowntype(82) in body and meta columns of the html table in webinator mean?

Thanks
Leon Bloom
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

fetch w/ IF and 82 error

Post by mark »

You don't say what doesn't work. And both sides of your <if> are pretty much the same. But it should be
<if $page eq "">
And the </fetch> needs to be inside the <if>. You have to following nesting rules. You can't intersperse opens and closes of procedural items.

In what context are you seeing unknowntype(82)? What procedure are you performing? What line of the script is the error on? What statement is on that line and maybe on lines before it?
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

fetch w/ IF and 82 error

Post by iclbloom »

Got ya on the fetch issue.

The unknowntype(82) shows up in the body and meta columns of the html table created when I run:

gw -dtest -y http://www.website.com

Thanks
Leon Bloom
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

fetch w/ IF and 82 error

Post by mark »

Something like that doesn't usually show up in gw unless you have an old version and try to use -s on a table where they are blob fields.
Are you sure that's the command it's coming from and not one with a -s option? Was the database created by the same version of gw that you're using when you get the message? Please include the actual message and a few surrounding lines of output.
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

fetch w/ IF and 82 error

Post by iclbloom »

My bad, I did not realize body and meta are blobs
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

fetch w/ IF and 82 error

Post by iclbloom »

User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

fetch w/ IF and 82 error

Post by mark »

Not really related to this thread, but...

What kind of error message(s) are you getting when you try that? View the source of the resulting page...
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

fetch w/ IF and 82 error

Post by iclbloom »

Never mind ... I keep forgetting to put
<urlcp dnsmode system>
when I use fetch.

No error message is generated, just a blank page.

Thanks
Leon Bloom