#201 Can't access from other ip, maybe a script error

Browsing (93)
Zhang Qi

I install vmware and fedora 16 under win7.
I read the INSTALL manual, configure the lxr.conf and install the lxr correctly. I can access /lxr/source with firefox under fedora, and visit /lxr/ with IE under win7. But when I try to access the /lxr/source with IE9 under win7, I got nothing but a blank. I tried a lot of time and chang the apache's conf but it also didn't work. Finally I found something may cause this problem when I read apache's error log.
fatal: LXR::Template, line 296: Undefined subroutine &LXR::Template::stylesheet called at lib/LXR/Template.pm line 296.
I don't kown what's this means but I thing it's not my mistake. It seems a script bug. So how can I fix it?


  • Andre-Littoz

    Andre-Littoz - 2012-02-24
    • assigned_to: nobody --> ajlittoz
  • Andre-Littoz

    Andre-Littoz - 2012-02-24

    Which LXR version have you installed?
    What is the URL at error-time? http://localhost/lxr ... ?
    Send also the HTML subsection of your lxr.conf, the part where 'hmtl***' => 'xx' are defined. This will help identify the faulty template.

  • Andre-Littoz

    Andre-Littoz - 2012-02-24

    From premilinary inspection of Template.pm code, you were probably using a bad-formed URL appearing to LXR as a reference to a non-existent (or unknown) source-tree.

    If this is the case, you'll get an error message in upcoming 0.11 release. Otherwise, send the resquested information to track down the bug.

  • Zhang Qi

    Zhang Qi - 2012-02-24

    Thanks a lot. I have solved this problem.
    I read the lxr.conf. At the host name section, I didn't add the proper IP to it so it can not be access from the outside.
    Thanks a lot.

  • Andre-Littoz

    Andre-Littoz - 2012-02-24
    • status: open --> closed-invalid
  • Andre-Littoz

    Andre-Littoz - 2012-02-24

    Error caused by wrong user configuration.

    However, there is a bug in 0.10.2 Template.pm (corrected in CVS for 0.11 release) related with 'htmlfatal' template expansion: function call &stylesheet kept while removed in other template. 0.11 reverts to function call everywhere.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks