It may be a shot in the dark. But are you by chance editing the files in a windows text editor and copying them over? Or more specifically was it originally created on a windows box? There may be carriage returns in the file that are causing issues. If that is the case you can dos2unix the file and clean it up.
I may be way off, but I have run into that in the past quite a bit with other *nix apps when users edit files in winworld. Sent from my mobile device. On Aug 16, 2012, at 8:00 AM, Martin Drasar <dra...@ics.muni.cz> wrote: > On 16.8.2012 13:37, Paul Tomblin wrote: > >> Unfortunately somewhere between RT and Mason and perl a lot of the >> errors go unreported - you just have to narrow down where the problem is >> with a lot of calls to $RT::Logger->debug. But first things first, you >> need to turn up the logging in /opt/rt4/etc/RT_SiteConfig.pm >> Set( $LogToScreen, "debug"); >> Set( $LogToSyslog, "debug"); >> You also need to have a look at line 15 and before in your component. > > When I said that I saw nothing in rt.log I meant nothing of importance. > I have the debug logging turned on. > > As for the line 15 - I have posted the entire component two mails > before. It only has 12! lines and the reported error is at EOF. That > would indicate that there might be something unfinished like missing > bracket or such. However, by looking at the code, I can't see anything > wrong. First it was almost direct copy of the code you sent at first and > then when it did not work I used component from > share/html/Helpers/Autocomplete/ by Thomas advice as a template. But > nothing seems to work. > > I have made even smaller component, in fact smallest that does not 403 > on me: > >> <%flags> >> inherit => undef; >> </%flags> > > Ajax request on this component fails with this error: > Error during compilation of > /home/RT/RT-4.0.6/local/html/Ticket/Elements/TestComponent:<br>syntax > error at (eval 1164) line 12, at EOF > > It is as before, the error should be at line 12, but the component > itself has only 3 lines. > > There is something fishy going on... > > Martin