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
Pages: [1]   Go Down
Print
Author Topic: must use perl -w to run script  (Read 915 times)
0 Members and 1 Guest are viewing this topic.
al
Guest
« on: March 02, 2005, 12:50:00 PM »

We must use perl -w in the top line to get the calendar.pl to run.
#!/usr/local/bin/perl -w
or
#!/usr/bin/perl -w

It generates tons of errors so the host is asking us to fix the problem. We cannot find a solution.

They path to perl is the first one per the host.

Please help.


Here is some output of the logs:
2 06:46:25 host named[14742]: client 66.245.126.220#3622: updating zone 'summitchurch.org/IN': update failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Mar  2 06:51:08 host named[14742]: client 66.245.126.220#3499: updating zone 'summitchurch.org/IN': update failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Unquoted string "false" may clash with future reserved word at /home/summit/www/calendarscript/lib/SimpleDateFormat.pm line 187.
Unquoted string "false" may clash with future reserved word at /home/summit/www/calendarscript/lib/SimpleDateFormat.pm line 190.
Unquoted string "false" may clash with future reserved word at /home/summit/www/calendarscript/lib/SimpleDateFormat.pm line 194.
Name "main::now_wd" used only once: possible typo at calendar.pl line 472.
Name "main::now_mi" used only once: possible typo at calendar.pl line 472.
Name "main::now_yd" used only once: possible typo at calendar.pl line 472.
Name "main::now_dst" used only once: possible typo at calendar.pl line 472.
Name "main::now_hh" used only once: possible typo at calendar.pl line 472.
Name "User::MSG_LOGGED_IN_SUCCESSFULLY" used only once: possible typo at calendar.pl line 363.
Name "Template::Grid" used only once: possible typo at calendar.pl line 692.
Name "Template::Config" used only once: possible typo at calendar.pl line 333.
Name "Template::MONTH_SELECT" used only once: possible typo at calendar.pl line 486.
Name "Template::CGI_HIDDEN_FIELDS" used only once: possible typo at calendar.pl line 349.
Name "Template::NEXT_MONTH_YEAR" used only once: possible typo at calendar.pl line 503.
Name "Template::LAST_MONTH_NAME" used only once: possible typo at calendar.pl line 506.
Name "Template::GRID_ROW_COUNT" used only once: possible typo at calendar.pl line 693.
Name "Template::errorMessage" used only once: possible typo at calendar.pl line 86.
Name "Template::LAST_MONTH_YEAR" used only once: possible typo at calendar.pl line 505.
Name "Template::RANGE_END_DATE" used only once: possible typo at calendar.pl line 617.
Name "Template::getPreference" used only once: possible typo at calendar.pl line 525.
Name "Template::User" used only once: possible typo at calendar.pl line 405.
Name "Template: AY" used only once: possible typo at calendar.pl line 765.
Name "Template::LAST_WEEK_YEAR" used only once: possible typo at calendar.pl line 507.
Name "Template::LAST_WEEK_MONTH" used only once: possible typo at calendar.pl line 507.
Name "Template::GRID_COLUMN_COUNT" used only once: possible typo at calendar.pl line 694.
Name "Template::getEvents" used only once: possible typo at calendar.pl line 521.
Name "Template::LAST_WEEK_DATE" used only once: possible typo at calendar.pl line 507.
Name "Template::LAST_YEAR" used only once: possible typo at calendar.pl line 502.
Name "Template::getEvent" used only once: possible typo at calendar.pl line 522.
Name "Template::NEXT_WEEK_MONTH" used only once: possible typo at calendar.pl line 508.
Name "Template::ADMIN_CGI_URL" used only once: possible typo at calendar.pl line 350.
Name "Template::MONTH_ABBREVIATION_SELECT" used only once: possible typo at calendar.pl line 487.
Name "Template::in" used only once: possible typo at calendar.pl line 528.
Name "Template::QUERY_STRING" used only once: possible typo at calendar.pl line 348.
Name "Template::NEXT_YEAR" used only once: possible typo at calendar.pl line 501.
Name "Template::NEXT_MONTH_NAME" used only once: possible typo at calendar.pl line 504.
Name "Template::RANGE_END" used only once: possible typo at calendar.pl line 616.
Name "Template::EventList" used only once: possible typo at calendar.pl line 762.
Name "Template::SEARCH_RESULTS" used only once: possible typo at calendar.pl line 451.
Name "Template::NEXT_WEEK_DATE" used only once: possible typo at calendar.pl line 508.
Name "Template::YEAR_SELECT" used only once: possible typo at calendar.pl line 485.
Name "Template::CALENDAR" used only once: possible typo at calendar.pl line 517.
Name "Template::TODAY_DATESTRING" used only once: possible typo at calendar.pl line 514.
Name "Template::CALENDAR_KEY" used only once: possible typo at calendar.pl line 518.
Name "Template::NEXT_WEEK_YEAR" used only once: possible typo at calendar.pl line 508.
Name "Template::RANGE_START" used only once: possible typo at calendar.pl line 612.
Name "Template::RANGE_START_DATE" used only once: possible typo at calendar.pl line 613.
Name "Template::MONTH_NAME" used only once: possible typo at calendar.pl line 496.
Name "Template: ATESTRING" used only once: possible typo at calendar.pl line 500.
Name "Template::AdminConfig" used only once: possible typo at calendar.pl line 286.
Name "Template::NEXT_DAY_DATESTRING" used only once: possible typo at calendar.pl line 510.
Name "Template::PREVIOUS_DAY_DATESTRING" used only once: possible typo at calendar.pl line 512.
Name "main::now_ss" used only once: possible typo at calendar.pl line 472.
Name "main::tmp_parsed_template" used only once: possible typo at calendar.pl line 66.
Use of uninitialized value in string ne at calendar.pl line 250.
Use of uninitialized value in pattern match (m//) at calendar.pl line 300.

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: March 02, 2005, 03:07:00 PM »

** We must use perl -w in the top line to get the calendar.pl to run. **

Why is that??

The -w switch just tells Perl to report warnings. That is mainly used just when testing scripts (... which you're unsure work properly).

** It generates tons of errors so the host is asking us to fix the problem. **

Most of those are not "errors" just warnings.

** Here is some output of the logs:
2 06:46:25 host named[14742]: client 66.245.126.220#3622: updating zone 'summitchurch.org/IN': update failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Mar 2 06:51:08 host named[14742]: client 66.245.126.220#3499: updating zone 'summitchurch.org/IN': update failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET) **

I don't know what those are but I do not believe they have anything to do with Calendarscript. The rest are just warnings and do not affect the operation of the script.

Turn the Perl warnings off (ie. remove the -w from the shebang).

JMO

Dan O.

[This message has been edited by DanO (edited March 02, 2005).]

Logged
al
Guest
« Reply #2 on: March 02, 2005, 03:16:00 PM »

the script will not run without the -w

when I remove it I get

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@summitchurch.org 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.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


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

Apache/1.3.33 Server at www.summitchurch.org  Port 80


with the -w it works but sends errors to the log files.

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: March 03, 2005, 01:22:00 AM »

** with the -w it works but sends errors to the log files. **

As I said, those are warnings, not errors.

If your host (for whatever reason) won't allow you to run Perl scripts without the -w, I'm afraid you will probably not be able to use this or a lot of other ready made CGI scripts.

Sorry.

Dan O.


[This message has been edited by DanO (edited March 03, 2005).]

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