Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

debug help

 [1/8] from: ryanc:iesco-dms at: 6-Oct-2000 13:56


Could someone try to pull up www.hypermenu.com/index.r from there view browser and let me know what happens. I keep getting this error: ** Math Error: Attempt to divide by zero. ** Where: pbar/data: b / l show
>>
Thanks, --Ryan

 [2/8] from: joel:neely:fedex at: 6-Oct-2000 16:09


I got a blank white page bearing the text REBOL [] icon "test" %test on the top line. -jn- [ryanc--iesco-dms--com] wrote:
> Could someone try to pull up www.hypermenu.com/index.r from there view > browser and let me know what happens. I keep getting this error: > > ** Math Error: Attempt to divide by zero. > ** Where: pbar/data: b / l show > >>
That looks like a lower-case letter-L to me, not a digit one... -- ; Joel Neely [joel--neely--fedex--com] 901-263-4460 38017/HKA/9677 REBOL [] print to-string debase decompress #{ 789C0BCE0BAB4A7176CA48CAB53448740FABF474F3720BCC B6F4F574CFC888342AC949CE74B50500E1710C0C24000000}

 [3/8] from: larry:ecotope at: 6-Oct-2000 14:22


Hi Ryan Yup, I get the same result. In console mode I read your index.r file as: REBOL [] icon "test" %test This is a bug in the View Test Panel (demo-init). Apparently your index.r file is too short for the test-panel progress bar to function correctly. You should report this to feedback or directly to [carl--rebol--com]. For a workaround, you could try adding a message using the summary keyword. -Larry

 [4/8] from: al:bri:xtra at: 6-Oct-2000 14:46


> REBOL [] icon "test" %test
I suspect that: %test is meant to be: %test.r
> > ** Math Error: Attempt to divide by zero. > > ** Where: pbar/data: b / l show
That's most likely an error in View. Probably can't handle a file that doesn't exist? 'l is most likely to be length? of read page? Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [5/8] from: ryanc:iesco-dms at: 6-Oct-2000 15:21


Ahh! pbar is the progress bar. That never occurred to me. And yes Larry, I think your right that its too short, but not in the way you think. I bet its size really is zero. You see my index.r is actually a CGI. And as odd as it may sound, something to do with the fact its a CGI is causing the problem and its not anything to do with the index files syntax or contents. Now I can rule out my junk--Thanks. Has anybody ran an index.r as a CGI? If not, can someone try to run an index.r as a CGI on thier server? Here is the one I am using. #!/usr/local/bin/rebol/rebol -c REBOL [] prin "Content-Type: text/plain" ;I have also tried text/html--no difference prin to-char 10 ;I know, im just being over explicit prin to-char 10 ;I have tried many variations, the shortest being {}, and rebol.com's. No difference. prin {REBOL [] icon "test" %test.r} ;actual existence of file irrelevant for this test. Thanks --Ryan [larry--ecotope--com] wrote:
> Hi Ryan > Yup, I get the same result. In console mode I read your index.r file as:
<<quoted lines omitted: 19>>
> > --Ryan > >
-- Ryan Cole Programmer Analyst www.iesco-dms.com 707-468-5400 I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world. -Einstein

 [6/8] from: allen:rebolforces at: 7-Oct-2000 11:35


This might be a clue too
>> read http://www.hypermenu.com/index.r
== {REBOL [] icon "test" %test.r} OK so lets see if the target file is where it should be then.. read http://www.hypermenu.com/test.r ** User Error: Error. Target url: http://www.hypermenu.com/test.r could not be retrieve d. Server response: HTTP/1.0 500 Internal Server Error. ** Where: read http://www.hypermenu.com/test.r Doesn't look like the file is available. Cheers, Allen K

 [7/8] from: g:santilli:tiscalinet:it at: 7-Oct-2000 18:25


Hello [ryanc--iesco-dms--com]! On 07-Ott-00, you wrote: r> Has anybody ran an index.r as a CGI? If not, can someone try r> to run an index.r as a CGI on thier server? Here is the one I r> am using. [...] Try adding a Content-Length header. This should make the server happier, too. :-) Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

 [8/8] from: ryanc:iesco-dms at: 9-Oct-2000 9:21


YIPPEEEEE!!!! It works! Excellent quick-fix Gabriele! WHOOOOOOOOO!!!!!! --Ryan [g--santilli--tiscalinet--it] wrote:
> Hello [ryanc--iesco-dms--com]! > On 07-Ott-00, you wrote:
<<quoted lines omitted: 9>>
> Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer > Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
-- Ryan Cole Programmer Analyst www.iesco-dms.com 707-468-5400 I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world. -Einstein

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted