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


Login with username, password and session length

Search

 
Advanced search

8054 Posts in 1860 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: CSR  (Read 777 times)
0 Members and 1 Guest are viewing this topic.
merlin
Guest
CSR
« on: September 17, 2006, 05:16:00 PM »

I am trying to install this script. Everything seemed to be going ok until I ran the Calendar Administration CSR Setup.

I entered all the variables pressed save and the following error message was displayed

Error requiring custom function file '/home/merlin/cgi-bin/cgical/calendarscript/plugins/csremind/command_save_csrconf.pl'. The error is: [Substitution pattern not terminated at /home/merlin/cgi-bin/cgical/calendarscript/plugins/csremind/command_save_csrconf.pl line 13. Compilation failed in require at (eval 1) line 1. ]

The main calendar script is working fine it's just the plug-in.

Does anyone have any ideas? Any help would be appreciated

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

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


WWW
CSR
« Reply #1 on: September 17, 2006, 06:14:00 PM »

** command_save_csrconf.pl line 13 **

What is on line 13 (and a couple before and after) of the command_save_csrconf.pl file?

Dan O.

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

Logged
merlin
Guest
CSR
« Reply #2 on: September 18, 2006, 05:05:00 AM »

I have pasted the entire file below.


sub command_save_csrconf {
   $csr_conf = new ConfigFile($plugins_dir . "csremind/csr_config.txt");
   &checkPermissions("","CSREMIND_SETUP");
   foreach $key (keys %in) {
      if ($key =~ /^CSR_(.*)/) {
         $csr_conf->set($1, $in{$key});
         }
      }
   if ($csr_conf->save()) {
      &addUserMessage(&getMessage("CONFIGURATION_SAVED"));
      }
   else {
      &addUserMessage(&getMessage("ERROR_WHILE_SAVING_CONFIGURATION"));
      &addUserMessage($csr_conf>getErrorMessage());
      &showSameScreen();
      }
}

1;

thanks

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

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


WWW
CSR
« Reply #3 on: September 18, 2006, 12:33:00 PM »

That doesn't help me to know which is line 13 I'm afraid.

Dan O.

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

Logged
merlin
Guest
CSR
« Reply #4 on: October 06, 2006, 02:00:00 PM »

Sorry for delay in replying.

Line 13 is

&addUserMessage&getMessage"ERROR_WHILE_SAVING_CONFIGURATION"));

hope this helps

Thanks

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

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


WWW
CSR
« Reply #5 on: October 07, 2006, 01:35:00 AM »

** Line 13 is ... **

Line 13 of the file??

Are you sure? There is no substitution pattern on that line so I don't know how the error message could possibly pertain to it.

The only line with a substitution pattern on it is:

if ($key =~ /^CSR_(.*)/) {

and I don't see any problem with it.

Dan O.

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

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
CSR
« Reply #6 on: February 24, 2007, 10:02:00 PM »

im getting an error when i try to save those setting too...but its slightly different..

Error running custom function 'command_save_csrconf'. The error is: [Can't call method "set" on an undefined value at /usr/local/psa/home/vhosts/domain.com/cgi-bin/calendar/calendarscript/plugins/CSRemind/command_save_csrconf.pl line 7. ]


line 7 is:
$csr_conf->set($1, $in{$key});

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

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
CSR
« Reply #7 on: February 24, 2007, 10:05:00 PM »

i figured it out...

it was a problem with line 2

$csr_conf = new ConfigFile $plugins_dir . "CSRemind/csr_config.txt");

it used to be "csremind/csr_config.txt"
but my directory has capitals in it. apparently it is case sensitive!

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

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


WWW
CSR
« Reply #8 on: February 24, 2007, 10:40:00 PM »

** i figured it out... **

Glad to hear it, thanks for the follow up.

Dan O.

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

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
CSR
« Reply #9 on: February 24, 2007, 11:03:00 PM »

and actually...i started running into all SORTS of problems...and its all because the folder path had capitals.  so its much better if instead of changing the code to reflect your folder name, just change the folder name!

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

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
CSR
« Reply #10 on: February 24, 2007, 11:05:00 PM »

and now that i have it working, is there an easy way to modfiy the look of the links on the event page?  i would rather have the reminder links in the body of the event (ie under the decription) and make a 'submit' style button isntead of a hyperlink...

is that easy enough?

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

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