Flamzeron Posted July 2, 2011 Posted July 2, 2011 I still can't get my CGI message board to show up. Whenever I go to the link, I get a 500 Internal Server Error. http://mizuhobbs.heliohost.org/cgi-bin/talkbbs.cgi Also, here is my code. [Moved to https://gist.github.com/1061627] Thanks in advanced.
Guest Geoff Posted July 2, 2011 Posted July 2, 2011 Bareword found where operator expected at ./talkbbs.cgi line 84, near "/home/mizuho" (Missing operator before zuho?) String found where operator expected at ./talkbbs.cgi line 85, near "$logfile = /home/mizuho/p ublic_html/cgi-bin/talkbbs.log"" (Might be a runaway multi-line "" string starting on line 84) (Missing semicolon on previous line?) syntax error at ./talkbbs.cgi line 84, near "/home/mizuho" Execution of ./talkbbs.cgi aborted due to compilation errors.
Flamzeron Posted July 2, 2011 Author Posted July 2, 2011 Bareword found where operator expected at ./talkbbs.cgi line 84, near "/home/mizuho" (Missing operator before zuho?) String found where operator expected at ./talkbbs.cgi line 85, near "$logfile = /home/mizuho/p ublic_html/cgi-bin/talkbbs.log"" (Might be a runaway multi-line "" string starting on line 84) (Missing semicolon on previous line?) syntax error at ./talkbbs.cgi line 84, near "/home/mizuho" Execution of ./talkbbs.cgi aborted due to compilation errors. I don't understand. What exactly do I need to edit?
Guest Geoff Posted July 2, 2011 Posted July 2, 2011 It's your script, not mine. I'm just telling you the error that's causing your script not to run.
Flamzeron Posted July 2, 2011 Author Posted July 2, 2011 I didn't actually make the script. The script is of an old website I used to go to, which closed down abruptly. I'm trying to rehost it. I'm new to CGI hosting, so I don't know what to do.
Guest Geoff Posted July 2, 2011 Posted July 2, 2011 Those comments with the weird characters might be causing the problem. Can you remove those?
Krydos Posted July 2, 2011 Posted July 2, 2011 I didn't actually make the script. The script is of an old website I used to go to, which closed down abruptly. I'm trying to rehost it. I'm new to CGI hosting, so I don't know what to do. The first thing I would do if I were you would be to get an editor that displays line numbers. I could give you a few recommendations, but I don't know what operating system you're using. Then once you have line numbers enabled take a look at the errors and go to those line numbers and see if you can figure out what is wrong. Remember sometimes the error can actually be above the line number that the error is displayed on; the error line is just where the compiler/executor/whatever realized that there was something critically wrong with what it was trying to run. Keep a backup original copy so you can go back and revert any changes you make and just dive in and start trying to fix things. If you make it worse revert to a working backup copy and start from there again. A lot of times if I don't know what I'm doing I will make backup copies of code all over the place like 7-2-11_before-I-changed-line288.rar, 7-2-11_right-after-changing-line288.rar, etc etc. Worst case scenario you make a lot of mistakes and learn how to code.
Flamzeron Posted July 3, 2011 Author Posted July 3, 2011 I was able to figure out the problem, and my site showed up, but without the images going with it. I moved my images folder to the same folder where the cgi and perl files were, and edited the code to recognize that, but I'm getting a 500 error again. Here's my code again, updated and such. http://www.mediafire.com/?ybg4s98s9n7j5kr I figured uploading it to Mediafire would be easier.
Guest Geoff Posted July 3, 2011 Posted July 3, 2011 BTW, in the future, you can upload your code to pastebin. Okay, I've fixed your script. Next time, don't edit your files via M1croshoft Winders, it causes problems. Cpanel has a handy file manager that you can use to edit your files without appending CRLF line endings.
Flamzeron Posted July 3, 2011 Author Posted July 3, 2011 Thanks. It's showing up again. The logo and background color aren't showing up, though. Also, I get an error every time I click on one of the links (the "How to/Rules" and whatnot). How do I fix that?
Byron Posted July 3, 2011 Posted July 3, 2011 Thanks. It's showing up again. The logo and background color aren't showing up, though. Also, I get an error every time I click on one of the links (the "How to/Rules" and whatnot). How do I fix that? You can't use this kind of path inside of html: /home/mizuho/public_html/cgi-bin/images/imgtitle.gif /home/mizuho/public_html/cgi-bin/talkbbs.cgi?mode=admin Your image urls and page links should start with http:// like below: http://mizuhobbs.heliohost.org/cgi-bin/tal....cgi?mode=admin http://mizuhobbs.heliohost.org/cgi-bin/images/imgtitle.gif
Flamzeron Posted July 4, 2011 Author Posted July 4, 2011 Wow, I feel stupid. I should have known that. Thanks.
Flamzeron Posted July 6, 2011 Author Posted July 6, 2011 My page is broken again. I don't know how it happened. I even used the code editor on Heliohost. I used the Find/Replace feature, but I dunno if that means anything. http://pastebin.com/HsLSe4cH
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now