[SAC] Re: [OSGeo] #174: View php source code in trac repository
browser
OSGeo
trac_osgeo at osgeo.org
Wed Nov 28 10:10:31 EST 2007
#174: View php source code in trac repository browser
----------------------+-----------------------------------------------------
Reporter: mschulz | Owner: sac at lists.osgeo.org
Type: task | Status: new
Priority: normal | Component: SAC
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by warmerdam):
Good idea on the logging:
{{{
2007-11-28 10:07:21,054 Trac[api] WARNING: HTML preview using
<trac.mimeview.php.PHPRenderer object at 0xb6e049ec> failed (You appear to
be using the PHP CGI binary. Trac requires the CLI version for syntax
highlighting.)
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line 456,
in render
return Markup(self._annotate(result, annotations))
File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line 490,
in _annotate
for num, line in enumerate(_html_splitlines(lines)):
File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line 620,
in _html_splitlines
for line in lines:
File "/usr/lib/python2.3/site-packages/trac/mimeview/php.py", line 94,
in render
raise TracError('You appear to be using the PHP CGI '
TracError: You appear to be using the PHP CGI binary. Trac requires the
CLI version for syntax highlighting.
}}}
Also php --version reports:
{{{
[root at osgeo1 log]# /usr/bin/php --version
PHP 4.3.9 (cgi) (built: Sep 19 2007 05:43:52)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
}}}
do you have any suggestion about how to get a non-cgi version of php?
--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/174#comment:6>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.
More information about the Sac
mailing list