Home
Web CMS (TeamSite)
CGI Calendar problems
dchristie
I'm having a hard time understanding this Calendar cgi script that is supplied by Interwoven. Actually the pdf that has the instrucions for use of the script doesn't help to much. Perhaps anyone that is using this script could shed some light on it? I'm on a Solaris box, T.S. 6.0
The first line of instructions tells you:
1) z_calendar.ipl – calendar cgi
Copy the contents from z_calendar.ipl over into z_calendar.cgi
----- Ok, so am I to rename the z_calendar.ipl that is supplied to z_calendar.cgi? Or am I missing something here?
Solaris
1. Place the z_calendar.ipl file in the correct location on the server side (ex. /iwhome/ httpd/iw-bin/project_dev/callouts/calendar/z_calendar.cgi
----- I have put z_calendar.cgi (renamed z_calendar.ipl) into /iw-home/httpd/iw-bin as well as put in the z_calendar.ipl unchanged into the same directory just to be sure.
2. Make sure the DCR has the following tag applied: <cgi-callout url="/iw-bin/iw_cgi_wrapper.cgi/z_calendar.ipl" label="View Calendar" windowfeatures=" width=200,height=230,resizable=no,toolbar=no,scrollbars=no,titlebar=no"/>
------ I have the code as stated above in my DCT but when I run the DCT and then try to use the calandar script I get an error: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
I have full read/write/execute rights to the scripts in their directory.
Here is my DCT's code:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE datacapture SYSTEM "datacapture5.0.dtd">
<data-capture-requirements type="content" name="announcements">
<ruleset name="resort_messages">
<container name="announcement_form">
<item name="announcement_id">
<label>Announcement ID:</label>
<text required="f" size="10" maxlength="100" />
</item>
<item name="type">
<label>Announcement Type:</label>
<database data-type="VARCHAR(100)" />
<text required="t" size="50" maxlength="100" />
</item>
<item name="title">
<label>Title:</label>
<database data-type="VARCHAR(100)" />
<text required="t" size="60" maxlength="100" />
</item>
<item name="pub_date">
<description>Enter date in mm/dd/yyyy format</description>
<text required="t" validation-regex="^[0-1][0-9]-[0-3][0-9]-[0-9][0-9][0-9][0-9]$" >
<default>mm/dd/yyyy</default>
<cgi-callout url="/iw-bin/iw_cgi_wrapper.cgi/z_calendar.ipl" label="View Calendar"
window-features="width=200,height=230,resizable=no,toolbar=no,scrollbars=no,titlebar=no"/>
</text>
</item>
</container>
<item name="Announcements">
<replicant min="1" max="20">
<item name="announcement_message">
<description>Enter in your main body text here.</description>
<label>Announcement:</label>
<database data-type="VARCHAR(100)" />
<textarea cols="50" rows="16" wrap="on" external-editor-inline='t' external-editor-config="vf1.xml" external-editor='visualformat'/>
</item>
</replicant>
</item>
</ruleset>
</data-capture-requirements>
Find more posts tagged with
Comments
JonathonG
A couple of ideas:
1) Verify that the #! line on the first line of your file contains the proper path to iwperl for your system.
2) Verify that z_calendar.ipl is executable.
Jonathon
Independent Interwoven Contractor
iwovGraduate
Can you post your iw-home/iw-webd/logs/error.log ? If its too big, truncate to last few hundred lines.
DrillThroughOpenInSameWindow.zip
dchristie
Yes, that first line #! of the perl script was the problem. It was strange, they had : #!D:\x-apps\iw-home/iw-perl/bin/iwperl
sort of a half Win half Unix path, but after correcting it it worked.
Thanks Jonathon agian.