PDA

View Full Version : Help! Guestbook "File contains no data"


Bekariso
11-11-1998, 05:24 PM
When I click on my "sign" guestbook link on my Guestbook page (http://www.susogi.net/Bekariso/GuestBook/guestbook.html), I immediately get a "File contains no data" message. The "sign guestbook" is linked to "/cgi-bin/GuestBook/guestbook.cgi"

I made some changes in my guestbook.setup.cgi -- but just font formatting and changing a background image file. What's with this? Is it a server problem, or did I break it? If I did, what do I look for to fix it?

Help!

Bekariso

Deb
11-11-1998, 06:12 PM
Your .cgi file is full of carriage returns...

Be SURE when are editing your GuestBook files to use a TEXT ONLY editor... UltraEdit is perfect http://www.ultraedit.com Notepad does tend to put in the carriage returns.....

Also very important that the file permissions are not changed. The best thing to do is NOT delete the files... just overwrite them when you make an edit.. this way the permissions do not get changed from what they need to be.

Your guestbook has been fixed.. hope this helps for next time

Deb

Bekariso
11-11-1998, 08:00 PM
Hmm, how strange . . . I was using Note Tab Light which is a freeware editor that was supposed to be good for HTML because it wouldn't put anything else in. We had UltraEdit for a while, but it expired and we couldn't afford to register (Cdn money being worth beans in US since last summer), so we've been using this one. Almost all our html files have been edited it in it, too, and they seem to be okay. Hmm . . . I'll have to think about it and see if we can find something better -- which is hard when the program doesn't do what it claims it will do (or does what it says it will not do).

Anyway, I don't plan on doing anything more with my cgi file in the forseeable future . . .

Thanks so much for fixing it! It's really appreciated.

Ayeir

Deb
11-11-1998, 08:06 PM
You may want to check and see if it allows different formatting options.

For example with UltraEdit I can easily switch between dos and unix formatting...

For html either is fine.. but for cgi it's best to use unix...

It'd be nice if everything was compatible :/

Deb