Found the issue.

In file /usr/local/pf/lib/pf/config.pm all the paths are without the / at the 
end
in file /usr/local/pf/lib/pf/Portal/Session.pm when you render the template 
there's no slash between template_dir and template name

so must add a / 

OLD: return [$CAPTIVE_PORTAL{'TEMPLATE_DIR'} . 
trim_path($profile->getTemplatePath)];
NEW: return [$CAPTIVE_PORTAL{'TEMPLATE_DIR'} ."/". 
trim_path($profile->getTemplatePath)];

Enrico.

----- Messaggio originale -----
> Hi all, I've just install a new v4 version but I can't get the
> captive portal working.
> >From user's PC I can't see the login page.
> 
> On the log:
> redir.cgi(0) ERROR: file error - login.html: not found
> (pf::web::generate_login_page)
> 
> But I think I got all the files
> 
> [root@packetfence ~]# find /usr/local/pf | grep login.html
> /usr/local/pf/html/captive-portal/templates/guest/sponsor_login.html
> /usr/local/pf/html/captive-portal/templates/gaming-login.html
> /usr/local/pf/html/captive-portal/templates/login.html
> [root@packetfence ~]#
> 
> Any suggestion?
> 
> --
> --
> Pasqualotto Enrico
> cell. +39 3473292620
> skype://epasqualotto :: http://www.linkedin.com/in/epasqualotto
> http://www.netspin.it :: e.pasqualo...@netspin.it
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for
> building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free
> account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> PacketFence-devel mailing list
> PacketFence-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-devel
> 

-- 
-- 
Pasqualotto Enrico
cell. +39 3473292620
skype://epasqualotto :: http://www.linkedin.com/in/epasqualotto
http://www.netspin.it :: e.pasqualo...@netspin.it 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel

Reply via email to