Thread: Motd
View Single Post
  #9 (permalink)  
Old 12-22-2009, 08:27 PM
hillman hillman is offline
Moderator
 
Posts: 75
Default

Quote:
Originally Posted by blazeking View Post
Uncommented the debug line, but no additional messages show in firebug. This runs OK:

[root@www zimbramotd]# perl -c zimbrarest.cgi
zimbrarest.cgi syntax OK


Maybe my website isn't configured correctly for the CGI app? I get this error in /var/log/httpd/error_log.log:
[Tue Dec 22 05:10:08 2009] [error] [client 10.2.1.29] Premature end of script headers: zimbrarest.cgi, referer: http://zimbramotd.lakecoe.org/motd/settings/


Or, perl wasn't being called correctly. :-) Apparently perl (on my system) is at /usr/bin/perl, and your cgi script was calling /usr/local/bin/perl. Now I'm getting some weird errors (attached).
I'm guessing you're getting the syntax error because you've still got debug enabled in zimbrarest.cgi. The results will be somewhat garbage to firebug, but if you look at the raw data returned, you should see your tips in JSON format. If you don't have debug on, I can't tell what's causing the error. Is there a way for me to hit the cgi from the Internet?
__________________
Steve Hillman
IT Architect
Simon Fraser University
Reply With Quote