pfSense Gold Subscription

Author Topic: 2.3.4 Captive Portal Issue  (Read 307 times)

0 Members and 1 Guest are viewing this topic.

Offline mbutz89

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
2.3.4 Captive Portal Issue
« on: June 17, 2017, 04:05:53 am »
I'm getting errors nginx:  [error] 27009#100170: *8 open() "/usr/local/www/captiveportal-jquery.min.js" failed (2: No such file or directory), for several files. The problem is these files are actually stored in /var/db/cpelements. Has this bug been reported?

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 20505
  • Karma: +1254/-10
    • View Profile
Re: 2.3.4 Captive Portal Issue
« Reply #1 on: June 19, 2017, 07:24:23 am »
I'm not seeing those here. Maybe it's from attempting to view the portal page from the GUI and not from a captive portal client? There was a bug reported with that last week that I fixed.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline mbutz89

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: 2.3.4 Captive Portal Issue
« Reply #2 on: July 05, 2017, 03:55:33 pm »
How did you fix it?

Offline Gertjan

  • Hero Member
  • *****
  • Posts: 1796
  • Karma: +146/-6
    • View Profile
Re: 2.3.4 Captive Portal Issue
« Reply #3 on: July 06, 2017, 01:11:31 pm »
How did you fix it?
jimp is one of the persons who codes pfSense ;)
Btw : the correction (about the captive portal preview function) was for 2.4.0 - a future release.

But what about this one :
Quote
Maybe it's from attempting to view the portal page from the GUI and not from a captive portal client?
Yes or no ?
If yes : you should know know that the GUI uses this document root : /usr/local/www
The captive portal uses its own : /usr/local/captiveportal. In this directory you will find all your 'user uploaded' files, symlinked to  /var/db/cpelements, where they actually reside.
I advise you to do a real live test on your portal : checkout the page your browser loaded when logging in. You yopu did'nt make any errors with the references used in your html code, all will be fine.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 20505
  • Karma: +1254/-10
    • View Profile
Re: 2.3.4 Captive Portal Issue
« Reply #4 on: July 06, 2017, 03:23:06 pm »
How did you fix it?

See https://redmine.pfsense.org/issues/7646 and the commits linked on the ticket.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!