List for cgit developers and users
 help / color / mirror / Atom feed
From: mailings at hupie.com (Ferry Huberts)
Subject: cgit not displaying file content
Date: Mon, 27 Feb 2012 18:00:47 +0100	[thread overview]
Message-ID: <4F4BB6BF.2040203@hupie.com> (raw)
In-Reply-To: <CAGpW75LR0OZs1uRRuq1E04m85=4WW=5xiCTToBQF5uKUpbi77A@mail.gmail.com>

you can add echo commands to the script. that makes it easy to trace 
_if_ the script is run, and if so, where it has a problem.
the output of the echo's will have to go to stdout for you to be able to 
see it on the webpage

On 27-02-12 17:32, Jon Chen wrote:
>>> source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.sh
>>
>> does your webserver have execute access to this file, do you have
>> highlight installed, etc..
>>
>> .. check your logs: apache error logs, selinux logs
>
> hmm, I commented out that line in cgitrc and looks like the filter is
> indeed the issue.
>
> I checked, and I do have highlight installed (textproc/highlight)
>
> from httpd-error.log:
>
>> [: index: unexpected operator, referer: http://git.sjchen.com/poundsite/tree/team-poundit-in
>> fatal: Subprocess /usr/local/lib/cgit/filters/syntax-highlighting.sh exited abnormally, referer: http://git.sjchen.com/poundsite/tree/team-poundit-in
>
> I gave apache the correct permissions for the script but it still
> doesn't display the file contents.
> I looked in the bash script, and it says:
>
> # This script requires a shell supporting the ${var##pattern} syntax.
>
> I do have zsh + bash installed on freebsd, but apache is nologin? I'm
> not really sure what that means.
> Could that be the issue? And if so, how would i correct it?
>
> _______________________________________________
> cgit mailing list
> cgit at hjemli.net
> http://hjemli.net/mailman/listinfo/cgit

-- 
Ferry Huberts




  reply	other threads:[~2012-02-27 17:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 16:32 sjchen
2012-02-27 17:00 ` mailings [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-26 19:21 sjchen
2012-02-26 19:53 ` cgit
2012-02-26 19:53 ` mailings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F4BB6BF.2040203@hupie.com \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).