Thank you for your help! @Peter Suter It is from there that had the problem. Now I use PHP 5.4 and it works well.
Le dimanche 21 octobre 2012 02:31:24 UTC-4, Peter Suter a écrit : > > Hello > > Your trac.ini probably contains something like: > > [components] > tracopt.mimeview.php.* = enabled > or > tracopt.mimeview.php.PHPRenderer = enabled > > and > > [mimeviewer] > php_path=/some/path/to/php > > to configure Trac for PHP syntax highlighting using an old PHP 5.2. > > If so, Trac calls "/some/path/to/php -sn PH7Tpl.class.php" to generate > the syntax highlighting. I just tested this with your file and PHP > 5.2.17, getting the same errors. > > Either point that php_path to a newer version of PHP or disable the > tracopt.mimeview.php,PHPRenderer component and let > trac.mimeview.pygments.PygmentsRenderer handle PHP files. > > -- Peter > > On 21.10.2012 00:17, bygord wrote: > > Hello, > > Thank you for your answer. > > The OS is CentOS, Python version is 2.7 and the version of Trac is 0.12 > > > > You can see this error message directly on my site here: > > > http://trac.hizup.com/browser/pH7DatingCms/_protected/framework/Layout/Tpl/Engine/PH7Tpl/PH7Tpl.class.php > > > < > http://trac.hizup.com/browser/pH7DatingCms/_protected/framework/Layout/Tpl/Engine/PH7Tpl/PH7Tpl.class.php> > > > > > > Thank you! > > > > Le samedi 20 octobre 2012 14:53:44 UTC-4, bygord a �crit : > > > > Hello, > > > > I have this error message: > > *Warning: Unexpected character in input: '\' (ASCII=92) state=1 in > > Unknown on line 0* > > on all source files in the browser Trac. > > > > Do you know how it is due, and can you help me solve this error? > > Thank you! > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Trac Users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/trac-users/-/PNBWjq0n4OIJ. > > To post to this group, send email to > > [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > > [email protected] <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/trac-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/htnsZNdaFhMJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
