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


Login with username, password and session length

Search

 
Advanced search

8040 Posts in 1853 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunitySetup and InstallationInstallation and Setup (Moderators: scott, DanO, Marty)calendar.pl & calendar_admin.pl errors
Pages: [1]   Go Down
Print
Author Topic: calendar.pl & calendar_admin.pl errors  (Read 1053 times)
0 Members and 1 Guest are viewing this topic.
jessie
New Member
*

Karma: 0
Offline Offline

Posts: 0

IT


WWW
« on: February 01, 2005, 05:48:00 PM »

uploaded in ASC mode, did CHMOD, checked path.
original error missing the file extension so changed that manually.  
Web host - pair.com

could not get either to work.  ran debug and message said everything was good to go.  use telnet perl5 -c and got a number of errors in both  - string found where operator expected, runaway ""

I am not familiar w/ Perl.  any ideas?

Logged
jessie
New Member
*

Karma: 0
Offline Offline

Posts: 0

IT


WWW
« Reply #1 on: February 02, 2005, 12:02:00 PM »

Here they are.

%perl5 -c /usr/www/users/lasm/cgi-bin/calendar_admin.pl
String found where operator expected at /usr/www/users/lasm/cgi-bin/calendar_adm
in.pl line 68, near "unless (-e $template_file) { &FATALERROR(e""
(Might be a runaway multi-line "" string starting on line 67)
     (Missing semicolon on previous line?)
syntax error at /usr/www/users/lasm/cgi-bin/calendar_admin.pl line 68, near "unl
ess (-e $template_file) { &FATALERROR(e""
syntax error at /usr/www/users/lasm/cgi-bin/calendar_admin.pl line 68, near "))"
/usr/www/users/lasm/cgi-bin/calendar_admin.pl had compilation errors.


%perl5 -c /usr/www/users/lasm/cgi-bin/calendar.pl
String found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.pl
line 62, near "e"tMessage(""
Bareword found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.p
l line 62, near ""tMessage("TEMPLATE_FILE_DOES_NOT_EXIST"
       (Missing operator before TEMPLATE_FILE_DOES_NOT_EXIST?)
String found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.pl
line 70, near "$in{'template'} = $in{'fromTemplate'} | | ""
 (Might be a runaway multi-line "" string starting on line 62)
       (Missing semicolon on previous line?)
String found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.pl
line 78, near "if ($msg ne ""
 (Might be a runaway multi-line "" string starting on line 70)
       (Missing semicolon on previous line?)
String found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.pl
line 79, near "$Template::userMessage .= $msg . ""
 (Might be a runaway multi-line "" string starting on line 78)
       (Missing semicolon on previous line?)
String found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.pl
line 85, near "$Template::errorMessage .= $msg . ""
 (Might be a runaway multi-line "" string starting on line 84)
       (Missing semicolon on previous line?)
Bareword found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.p
l line 95, near "$msgfile = $BASE_DIR . "templates"
 (Might be a runaway multi-line "" string starting on line 85)
       (Missing operator before templates?)
String found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.pl
line 96, near "open(MESSAGES,$msgfile) | | &FATALERROR(""
 (Might be a runaway multi-line "" string starting on line 95)
       (Missing semicolon on previous line?)
Bareword found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.p
l line 96, near "open(MESSAGES,$msgfile) | | &FATALERROR("Error"
String found where operator expected at /usr/www/users/lasm/cgi-bin/calendar.pl
line 107, near "if ($message eq ""
 (Might be a runaway multi-line "" string starting on line 96)
       (Missing semicolon on previous line?)
syntax error at /usr/www/users/lasm/cgi-bin/calendar.pl line 62, near "e"tMessage(""
syntax error at /usr/www/users/lasm/cgi-bin/calendar.pl line 78, near "if ($msg
ne ""
/usr/www/users/lasm/cgi-bin/calendar.pl had compilation errors.
%

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #2 on: February 02, 2005, 01:51:00 PM »

** Might be a runaway multi-line "" string starting on line 67 **

What are the lines of the script immediately before and after line 67?

Dan O.

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

Logged
jessie
New Member
*

Karma: 0
Offline Offline

Posts: 0

IT


WWW
« Reply #3 on: February 02, 2005, 04:26:00 PM »

sub showScreen {
   $template_dir = $BASE_DIR . "templates/admin/$admin_template_dir/";
   $template_file = e"tFile($template_dir . $in{template});
   unless (-e $template_file) { &FATALERROR(e"tMessage("TEMPLATE_FILE_DOES_NOT_EXIST")); }
   $Template::thisTemplate = $in{template};
   $template = &ASPLoadTemplate($template_file);
   &ASPEval($template,$template_dir);
   &ASPError($tmp_parsed_template) if $@;
   &exitGracefully();
   }

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #4 on: February 03, 2005, 02:07:00 PM »

Sorry but I don't know why those lines would generate an error except maybe the line endings are wrong for the server it was uploaded to. All I can suggest is you try re-uploading the files again in ascii mode to see what happens.

If you originally downloaded the .zip CalendarScript archive file, you can also try downloading the tar.gz file, unzipping it and uploading those files to see if it helps. I have heard of a number of cases where it did (for whatever reason).

Dan O.

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

Logged
sven7777
Guest
« Reply #5 on: November 27, 2005, 09:38:00 PM »

I am getting the same error. Has anyone figured out the cause of this error? i am moving an existing functional website to a new server and receive this error. i have fixed the base directory path which now works and do have the permissions for the folder.

Any ideas would be very welcomed. Thanks

derek

Logged
sven7777
Guest
« Reply #6 on: November 27, 2005, 10:16:00 PM »

I think i found the answer and after much hair pulling i figured i would put the solution for other people to check out. this is what i found.

When editing .pl files in the calendar, i used dreamweaver (v6.0), and for some messed up reason it changed &get to e"t and screwed up the entire code because of this. if you redownload the file and use a text editor other than dreamweaver the file is not messed up.

Good luck.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #7 on: November 28, 2005, 01:02:00 AM »

** When editing .pl files in the calendar, i used dreamweaver **

You should always edit CGI script files in a text editor (Notepad, Textpad, etc.) NOT a 'word processor' (Word, Wordpad, WordStar, Write, etc.) or an HTML editor (Dreamweaver, Frontpage, etc.) which can alter or add hidden code to the pages being edited.

JFYI

Dan O.

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

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