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


Login with username, password and session length

Search

 
Advanced search

8026 Posts in 1851 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunitySetup and InstallationInstallation and Setup (Moderators: scott, DanO, Marty)File not Found Errors on Links in Calendar and Admin
Pages: [1]   Go Down
Print
Author Topic: File not Found Errors on Links in Calendar and Admin  (Read 298 times)
0 Members and 1 Guest are viewing this topic.
Dewey
Guest
« on: August 12, 2006, 06:18:00 PM »

Installed CalendarScript and set all permissions.  cgi path is good.  The first pages of Calendar.pl and calendar_admin.pl both display properly and debug.pl shows no errors.  However all links in calendar.pl and calendar_admin.pl - including the "Continue" button on the first screen in calendar_admin - are bad resulting in "Page not Found" browser errors, therefore I can't get past the first screen in either application. Sounds like a path issue somewhere, but I can't find it. I have moved the application from the CS subdirectory, back to the cgi-bin root and same results. Any suggestions?  Here is the link -you can hover over the calendar links and see the problem in the status bar:
www.tarponspringsband.com/cgi-bin/CS/calendar.pl

Windows XP client accessing a Unix web server.

Thanks!!!

Logged
Sonny
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #1 on: August 12, 2006, 08:42:00 PM »

Make sure the full paths or set in both

----------------
calendar.pl
calendar_admin.pl
----------------

"This is the line you need to change in both"
$BASE_DIR = "/home/YOUR_FULL_PATH_TO/cgi-bin/calendarscript/calendarscript/";
REMEMBER TO REMOVE THE #

And also in here - /calendarscript/calendarscript/config.txt

calendar_url=http://www.your-website.com/cgi-bin/calendarscript/calendar.pl
calendar_admin_url=http://www.your-website.com/cgi-bin/calendarscript/calendar_admin.pl

CANT FIND THAT?  look in the directory where your calendar.pl is located.
config.txt is inside that next folder you see in there.

Hope this helps
Sonny

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

Logged
Dewey
Guest
« Reply #2 on: August 13, 2006, 03:21:00 PM »

Thanks, Sonnny - we are half way there.  The calendar.pl links work now that I changed the path in config.txt.  However I get the same bad result on calendar_admin.pl at the "continue" button.  Calendar_admin acts as if it doesn't read the config.txt file.  And changing the $BASE_DIR to anything gets a server error, so I have it remarked out.

Any other suggestions?  Thanks, in advance.

Dewey

Logged
Sonny
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #3 on: August 13, 2006, 04:35:00 PM »

Setting the full paths in
calendar.pl
calendar_admin.pl

Should never cause an error something is not right

a full path would look something like this for you

/home/FULL/PATH/TO/cgi-bin/CS/CS/
UNCOMMENT # AND CHANGE

(NOT WWW.YOURDOMAIN.COM  ETC FOR ANY BASE PATHS)

Remeber this needs to point to the folder thats inside the
calendarscript folder (thats the folder inside along with calendar.pl)

Notice the two /CS/CS/ at the end?
or whatever that folder name is inside the folder that contains
your calendar.pl

and I'm sure that will do it.

Hope this Helps
Sonny


Also it would'nt hurt to check permissions on those two files and
everything else in there even if everything works, and Please Read this forum for fixes and issues
not just the latest ones (because some post go back many years before going public with this

Set everything at the lowest possible permissions you can get away with.

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

Logged
Dewey
Guest
« Reply #4 on: August 13, 2006, 08:43:00 PM »

Thanks, Sonny - but none of that works.  I seem to be getting conflicting instructions on the $BASE_DIR path...the documentation on the CalendarScript site says: "$BASE_DIR= and set it to be the local file system path of the 'calendarscript' directory (NOT the web server path!)."

The Local File System?  As in C:/WWWroot/../../???  At any rate, I have tried local and web server paths but the only way I can get to the opening calendar_admin screen is with the $BASE_DIR line remarked out.  But, from there, the "continue" button gets me nowhere.

I have set all permissions to 777 everywhere I can.

Here is the current path after I have re-downloaded and re-installed:
http://www.tarponspringsband.com/cgi-bin/calendar_admin.pl

Thanks for your prompt replies.

Dewey

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #5 on: August 13, 2006, 09:07:00 PM »

** I changed the path in config.txt. However I get the same bad result on calendar_admin.pl at the "continue" button. Calendar_admin acts as if it doesn't read the config.txt file. **

It doesn't... for the variables in that template anyway.

If you look at the page code for the form on that page, you'll see the form URL there is incorrect:

<FORM NAME="mainform" ACTION="//cgi-bin/calendar_admin.pl" METHOD="POST" onSubmit="return false">

(note the two //).

I have no idea why your server is returning that value with an added / but you may be able to get it to use the administration URL from the config.txt file by changing the following line in the calendar_admin.pl file:

$Template::CGI_URL = $ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};

to

$Template::CGI_URL = $AdminConfig->get("calendar_admin_url");

 PS. This forum adds a space between | | characters which shouldn't be there. If copying such code from these forums, make sure to remove the added space between them.

Dan O.

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

Logged
Dewey
Guest
« Reply #6 on: August 14, 2006, 05:08:00 PM »

Got it!!  DanO, your suggestion to change that $TEMPLATE code did the trick.  Works like a charm.  Thanks again!!

Dewey

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

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


WWW
« Reply #7 on: August 14, 2006, 10:20:00 PM »

** your suggestion to change that $TEMPLATE code did the trick. Works like a charm. **

Glad to hear it. Thanks for the follow up.

Dan O.

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

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