Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunitySetup and InstallationInstallation and Setup (Moderators: scott, DanO, Marty)Weird URL Not Found Error when running Admin
Pages: [1]   Go Down
Print
Author Topic: Weird URL Not Found Error when running Admin  (Read 279 times)
0 Members and 1 Guest are viewing this topic.
meganmcgees
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: October 28, 2005, 10:49:00 AM »

Hi All -

Let me first say I am a newbie at CGI & PERL, but do take direction well.  

I run Windows 98 on my system (don't laugh - it normally works well for me) and have my site hosted with Network Solutions in Unix.  I have CGI and PERL capability.

I downloaded the Calendar Script in the .zip format and extracted to a new file named Calendar on my remote directory.  

I did properly change the path to PERL (at least I think so - it is #!/usr/local/bin/perl)in both the calendar.pl and calendar_admin.pl documents

I uploaded all the files to my cgi-bin directory in ASCII format using WS-FTP 5.08 and successfully changed all the permissions.  

I successfully loaded calendar_pl - here -
 http://www.riverfrontsociety.com/cgi-bin/calendar.pl  

I then successfully loaded calendar_admin.pl - here -
 http://www.riverfrontsociety.com/cgi-bin/calendar_admin.pl  

But then it all goes bad, when I hit the "Continue" button, I get the following error -

The requested URL /~475235.484295//~475235.484295//cgi-bin/calendar_admin.pl was not found on this server.

When I run debug.pl I get the oh so generic Internal server Error -

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I called Network Solutions and do not have an error log available to me.  They are forwarding the errors to their engineering department and will "get back with me".

In the meantime, I thought I would post here to see if I can figure it out.  I am confused by the actual URL the admin set up is trying to find - it appears to be looking for a file outside of my cgi-bin. Is this normal?  Do I need to configure something differently on my end?

Any thoughts would be much appreciated!  Thank you!

[This message has been edited by meganmcgees (edited October 28, 2005).]

[This message has been edited by meganmcgees (edited October 28, 2005).]

[This message has been edited by meganmcgees (edited October 28, 2005).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: October 28, 2005, 12:07:00 PM »

** when I hit the "Continue" button, I get the following error - The requested URL /~475235.484295//~475235.484295//cgi-bin/calendar_admin.pl was not found on this server. **

It looks like the server is not reporting a couple of system variable properly. You can try editing the config.txt file in the /calendarscript/ directory and manually setting the two variables as follows:

calendar_admin_url=/cgi-bin/calendar_admin.pl
calendar_url=/cgi-bin/calendar.pl

Then in the calendar_admin.pl file change this line:

# The CGI URL for call-back
$Template::CGI_URL = $ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};

to:

# The CGI URL for call-back
$Template::CGI_URL = $AdminConfig->get("calendar_admin_url") | | $ENV{'SCRIPT_NAME'$ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};


** When I run debug.pl I get the oh so generic Internal server Error - Internal Server Error **

That could be caused by just about anything from a corrupted file to incorrect permissions. Without seeing the actual error message, it is impossible to say.

** I did properly change the path to PERL (at least I think so - it is #!/usr/local/bin/perl)in both the calendar.pl and calendar_admin.pl documents **

How about in the debug.pl file?

**  called Network Solutions and do not have an error log available to me. **

If you're serious about developing a web site, I'd suggest you find a host that does provide them.

JMO

Dan O.

------------------
    NOTE: This forum software adds a space between | | charcters which shouldn't be there. If using code copied from this forum, the space between those characters would need to be removed first.

[This message has been edited by DanO (edited October 28, 2005).]

Logged
meganmcgees
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: October 28, 2005, 01:32:00 PM »

Hi Dan -

Thanks for your help! I followed your advice -

quote:
It looks like the server is not reporting a couple of system variable properly. You can try editing the config.txt file in the /calendarscript/ directory and manually setting the two variables as follows:

calendar_admin_url=/cgi-bin/calendar_admin.pl
calendar_url=/cgi-bin/calendar.pl

Then in the calendar_admin.pl file change this line:

# The CGI URL for call-back
$Template::CGI_URL = $ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};

to:

# The CGI URL for call-back
$Template::CGI_URL = $AdminConfig->get("calendar_admin_url") | | $ENV{'SCRIPT_NAME'$ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};


and did get rid of the odd URL file error.  The calendar script appears to be working here -

http://www.riverfrontsociety.com/cgi-bin/calendar.pl

- but now I just get a different vague Internal Server Error when I go to -

http://www.riverfrontsociety.com/cgi-bin/calendar_admin.pl

quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


I DID remember to take the space out between the | | in the code you gave me.

I ran into a memory issue when I was trying to edit the admin.pl file in notepad and had to use word pad.  I saved it as a text file, then changed it to .pl prior to uploading.  Did I screw something up by doing it that way?  I did b/u the original .pl file so still have it.

As to not having an error log file, yeah, I am pretty ticked off about it.  The site is a not-for-profit with absolutely NO money and NSI was cheaper than my usual host.  If they are not willing to come up with an error log for me to use, I am going to ask my host guy if he will just match the NSI charge and move it over to him.  Not realy happy about having to wait until the engineers "take a look" to let me know if the issue is on my end or theirs.  

Thanks again for your help - let me know if you think of anything else or if I need to do something differently with the admin.pl!

Nora

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: October 28, 2005, 09:34:00 PM »

** now I just get a different vague Internal Server Error when I go to **

Sorry but like I said, such an error can be caused by just about anything but seeing as you just modified a file, I would look into possible errors in those modifications.

BTW. The line starting $Template::CGI_URL = $AdminConfig->get("calendar_admin_url") | | ...

should end with:

| | $ENV{'REQUEST_URI'};

It may display wrapped (on two lines) here in the forum when it all should be on a single line. Eg.

code:
$Template::CGI_URL = $AdminConfig->get("calendar_admin_url") | | $ENV{'SCRIPT_NAME'$ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};


** had to use word pad. I saved it as a text file, then changed it to .pl prior to uploading. Did I screw something up by doing it that way? **

I wouldn't think so but I couldn't say for certain.

Dan O.

------------------

Logged
meganmcgees
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: October 29, 2005, 08:33:00 AM »

Good morning, Dan -

Thanks for all your help.  I have been searching the boards this AM, still trying to figure it out, since I have yet to hear anything from NSI.  You are the man in helping people!  And if I ever can get the darn thing to work, I already have my eye on a couple of plug-ins from much2come.com

I did check the code line and there are no breaks, so that is cool.  

I guess I will just chill out until I see if I can get an error log out of NSI...

Thanks again!

Nora

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: