marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Pesky 500 error

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Pesky 500 error »
Welcome, Guest. Please Login or Register.
12/12/17 at 15:49:52
Home Help Search Login Register
   marty.net message board
   About cpshop
   Installation Help
   Pesky 500 error
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Pesky 500 error  (Read 1176 times)
LisaR
Green Dragon
*

Posts: 6



Go Scots!
   

Pesky 500 error
« on: 08/05/11 at 22:51:36 »
Reply with quote Modify message

Hi. I've downloaded and attempted to set up the cpshop. After following the instructions completely I'm able to get the cpadmin.cgi to work but not the cpshop.cgi...

Here is the link
http://unspoken.theresadevine.com/cgi-bin/cpshop.cgi

Here is the error log entry:
[Fri Aug 05 17:39:15 2011] [error] [client 24.35.164.230] File does not exist: /public_html/unspoken/500.shtml

I've done some surfing on the forums so thing's I've tried:

- Uploading with a different FTP program (used WS_FTP last)
- Deleting everything and starting over
- Starting over in the /cgi-bin/ folder (originally i had set a folder like /unspoken/shop/
- Setting $script_dir to "/home/public_html/unspoken/cgi-bin/"
- Setting $cpshop_filename to "cpshop.cgi"
- CHMOD 755 on cpshop.cgi, cptest.cgi and cpadmin.cgi
- CHMOD 766 on cpshop.cgi.config
- /cgi-bin/ is CHMOD 755
- Adding folders "cpbackup", "cplogs" and "cpcache" CHMOD 755
- CHMOD "unspoken" to 755

Anyone got any other suggestions? I'm using hostgator so I don't know if anyone has had any problems with hostgator before. At first I thought everything was cool because the cpadmin.cgi worked great. But I can't get cpshop.cgi to work. :/
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Pesky 500 error
« Reply #1 on: 08/05/11 at 23:00:19 »
Reply with quote Modify message

Try changing the $script_dir in cpshop.cgi to:

/home/tdevineh/public_html/unspoken/cgi-bin/

And the subfolders should usually be 777, but I'm guessing you've already tried that.

What's odd is that your other .cgi files are working just fine, meaning there's something probably wrong with the cpshop.cgi file itself.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
LisaR
Green Dragon
*

Posts: 6



Go Scots!
   

Re: Pesky 500 error
« Reply #2 on: 08/05/11 at 23:17:34 »
Reply with quote Modify message

Still nothing with the /tdevineh/ I can't believe I forgot that... x.x

I tried them out at 777 but it didn't work with that either.

Actually nothing works (even cpadmin.cgi) when it's under 777 so I changed things to 755 and they started working so that's why I had that idea to chmod 755. :/

Hum. Maybe I should try redownloading the cpshop.cgi?
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Pesky 500 error
« Reply #3 on: 08/05/11 at 23:57:00 »
Reply with quote Modify message

Yep, I'd start over with a fresh one.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
LisaR
Green Dragon
*

Posts: 6



Go Scots!
   

Re: Pesky 500 error
« Reply #4 on: 08/06/11 at 04:50:25 »
Reply with quote Modify message

Okay I've tried out with a fresh install a few times and I'm still getting the error. I contacted hostgator and they pulled this error message:

String found where operator expected at cpshop.cgi line 51, near "print ""
(Might be a runaway multi-line "" string starting on line 45)
(Missing semicolon on previous line?)
Bareword found where operator expected at cpshop.cgi line 51, near "print "Content"
(Do you need to predeclare print?)
Backslash found where operator expected at cpshop.cgi line 51, near "html\"
Backslash found where operator expected at cpshop.cgi line 51, near "n\"
String found where operator expected at cpshop.cgi line 51, at end of line
(Missing semicolon on previous line?)
syntax error at cpshop.cgi line 51, near "print ""
Can't find string terminator '"' anywhere before EOF at cpshop.cgi line 51.
[Fri Aug 05 23:42:59 2011] [error] [client 74.202.255.243] Premature end of script headers: cpshop.cgi
[Fri Aug 05 23:42:59 2011] [error] [client 74.202.255.243] File does not exist: /home/tdevineh/public_html/unspoken/500.shtml

I don't really know perl too well to figure out what this means.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Pesky 500 error
« Reply #5 on: 08/06/11 at 18:19:45 »
Reply with quote Modify message

Are you editing cpshop.cgi before uploading it? And are you using the Unix version or the PC version?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
LisaR
Green Dragon
*

Posts: 6



Go Scots!
   

Re: Pesky 500 error
« Reply #6 on: 08/06/11 at 18:40:41 »
Reply with quote Modify message

The only change I was making was the $script_dir declare at the top. I actually don't know Perl/CGI at all so the syntax is very greek to me. I can only relate it to what I'm familiar with which it looks like the closest thing is Java.

As for the version I'm using the Unix version. The server is Linux so I figured this would be the one. (?)

When I got that error message I tried downloading an older version of CPShop and tried installing that one. Just in case I inserted something into the code without realizing it. I'm getting the same error.

When I contacted HostGator I was mainly asking about the permissions on the server but they pasted back this error message. Unfortunately I can't view the message myself because I'm on a shared hosting but they are pretty quick to respond when I ask for an updated error message.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Pesky 500 error
« Reply #7 on: 08/07/11 at 07:50:27 »
Reply with quote Modify message

I'm pretty certain that the problem is starting with the editing process.  I don't know if it's what you're typing, or the text editor you're using, or how the file's getting saved -- but it's one of those.

Can you copy and paste the $script_dir line right out of cpshop.cgi, so I can check it for syntax?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
LisaR
Green Dragon
*

Posts: 6



Go Scots!
   

Re: Pesky 500 error
« Reply #8 on: 08/07/11 at 17:57:23 »
Reply with quote Modify message

cpshop.cgi

#!/usr/local/bin/perl

$script_dir = "/home/tdevineh/public_html/unspoken/cgi-bin/"; # IF YOU ADD THIS, BE SURE TO INCLUDE THE TRAILING SLASH!

and cpadmin.cgi

#!/usr/local/bin/perl

# SET THE PASSWORD HERE:
$password = "password";

# PROBLEM FIXERS
$script_dir         = "/home/tdevineh/public_html/unspoken/cgi-bin/"; # IF YOU ADD THIS, BE SURE TO INCLUDE THE TRAILING SLASH!

You think it might be program? Hmm.. That could be I was using the code view in Dreamweaver. (I like to use it because it ends my html tags.) When I open it up in notepad it's unreadable. I'll delete my local files and try once with Visual Studio to see the code. Then with Notepad++ (this is a dinky program I use sometimes.)
Logged
LisaR
Green Dragon
*

Posts: 6



Go Scots!
   

Re: Pesky 500 error
« Reply #9 on: 08/07/11 at 18:14:14 »
Reply with quote Modify message

That was it. It's Dreamweaver... Oh my god I am reliving 2002!

Dreamweaver was changing line 45 to the e"template; from what it was supposed to be.

I was wary of opening a cgi file in Microsoft Visual Studio... but it worked like a like a charm. I just can't run the .cgi files in there because I do not have perl installed on my computer here.

Thanks for all the responses. <3 Really I was out of my element.

You may want to add to never use Dreamweaver on the .cgi files.  
Logged
staycygills
Green Dragon
*

Posts: 1



Go Scots!
   

E-Mail
Re: Pesky 500 error
« Reply #10 on: 09/05/11 at 09:54:52 »
Reply with quote Modify message

I've seen the same issue with my install of VO. It IS very annoying.
Sometimes I could fix it by stopping (tc4stop) and restarting (tomcat4)
tomcat. However, that doesn't always work. I'm getting crushed with
this error again and it may be because I editied a XSL file with
Notepad. According to a TID, notepad is known to corrupt XSL files.
Bad new is that the TID didn't say how to remedy the problem.
Logged
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.