Captive portal html and images….
-
So I'm seeing that others are having this problem just as well…
How about we try to fix it?I have the Beta4 CD right here but it's no fun re-installing.
I'd like to know where is the problem. -
@lir:
So I'm seeing that others are having this problem just as well…
How about we try to fix it?Urgent : Tried this morning and integrated this line :
It worked !!!!
When I converted my opther png file in jpg format - it show up also…
The good thing : it work - and for lir : search ! - the pb is on your side, as it was on mine. Beta 4 works (never had a doubt about it, Sullrich ;-) ).
The bad new : sorry about losing your time about this && I don't know what I did to make it work, normally I track changes I applied - this time I can't give a clue…Anyway - one happy user here.....
PS: one thing : showing a preview with the "View current page" on the Captive portal setup page doesn't show any of these local images - but a try 'on the Portal side' (and that's whats count) showed them all !!!).
-
I did split the installationproblems to another thread in the right board: http://forum.pfsense.org/index.php?topic=1251.0
PLEASE DON'T HIJACK THREADS!!! Thanks.
-
i managed to overcome the fresh install problem which was problematic by upgrading to beta-4 using the firmware upgrade
on an already installed beta-4 system from fresh (it had some errors during install).so i can get on the webgui and everything but im having the exact same problems again with the captive portal not showing
any images. i tried rebooting, i tried to remove all images and then reupload them… still i cant see them.any ideas please?
(so now im on beta4) -
Try this line (the image should already be there)
[![](pfsense.jpg)](http://www.pfsense.com)
-
thanks will do.
ill report back -
Okey so I'm still having the problem even with that link but I managed to over come it.
here are the files…
cd /usr/local/captiveportal/
ls -al
total 46
drwxr-xr-x 2 root wheel 512 May 24 07:34 .
drwxr-xr-x 16 root wheel 512 May 21 06:25 ..
-rwxr-xr-x 1 root wheel 14120 Jan 2 23:46 index.php
lrwxr-xr-x 1 root wheel 27 May 24 07:31 logo.GIF -> /var/db/cpelements/logo.GIF
lrwxr-xr-x 1 root wheel 27 May 24 07:31 logo.JPG -> /var/db/cpelements/logo.JPG
lrwxr-xr-x 1 root wheel 27 May 24 07:31 logo.PNG -> /var/db/cpelements/logo.PNG
lrwxr-xr-x 1 root wheel 27 May 24 07:31 logo.bmp -> /var/db/cpelements/logo.bmp
-rw-r--r-- 1 root wheel 10049 Jan 15 03:33 radius_accounting.inc
-rw-r--r-- 1 root wheel 4255 Jan 15 03:33 radius_authentication.incand here are the files on /var/db/cpelements
ls -al /var/db/cpelements/
total 200
drwxr-xr-x 2 root wheel 512 May 24 07:33 .
drwxr-xr-x 9 root wheel 512 May 24 07:32 ..
-rw-r--r-- 1 root wheel 11359 May 24 07:31 logo.GIF
-rw-r--r-- 1 root wheel 11033 May 24 07:31 logo.JPG
-rw-r--r-- 1 root wheel 4880 May 24 07:31 logo.PNG
-rw-r--r-- 1 root wheel 169798 May 24 07:31 logo.bmpso i figured out that i can see the file only if it's located on /usr/local/captiveportal and with no link or anything, like this:
-rw-r--r-- 1 root wheel 11033 May 24 07:33 logo.jpgSO... thats the fix.
-
thats no bug thats normal captive working
if you ask for www.google.com it redirecting the www.google.com ip to youre pfsense ip until youre acceptedif portal is on and you have jpg logo.jpg then all these jpg's are the same until youre cleard
www.google.com/logo.jpg
www.msn.com/logo.jpg
www.hotmail.com/logo.jpg
etc etcso you must make links to root in youre captive portal webpage
will work for all the linksps. never use uppercase in filenames (logo.JPG) webservers and webbrowsers don't like that
only lowercase -
you didnt understand the problem the way i presented it.
i said that when i upload files it puts a link in /usr/local/captiveportal of them that points to /var/db/cpelements
thats what happens when i upload images from the admin gui.
this way it DOES NOT WORK. no matter if its upper case, lower case or without a case.if i try manually to ssh to the machine and leave the filename at /usr/local/captiveportal (no links), just put the actual logo.jpg file
in /usr/local/captiveportal and doesnt make a link out of it then its just fine. -
Could someone explain how to fix this image issue to a BSD lamen?
I am very unfamiliar with BSD command line arguments and am having problems copying my logo.png into the '/usr/local/captiveportal/' directory so it will show correctly on my capture portal. Every time I try to copy my 'logo.png' file from either the '/var/db/cpelements' dir or the '/tmp' dir (I used the GUI to upload it there) I am met with a "Read-only file system" error.
I am running BETA 4 embedded on a WRAP equiped with a 128MB CF card. If someone could take a minute or two to explain the commands I need to know and the steps I need to take to resolve this issue, I would greatly appreciate it.
Thnx in advance,
-DrNO
-
Could someone explain how to fix this image issue to a BSD lamen?
I am very unfamiliar with BSD command line arguments and am having problems copying my logo.png into the '/usr/local/captiveportal/' directory so it will show correctly on my capture portal. Every time I try to copy my 'logo.png' file from either the '/var/db/cpelements' dir or the '/tmp' dir (I used the GUI to upload it there) I am met with a "Read-only file system" error.
I am running BETA 4 embedded on a WRAP equiped with a 128MB CF card. If someone could take a minute or two to explain the commands I need to know and the steps I need to take to resolve this issue, I would greatly appreciate it.
Thnx in advance,
-DrNO
None of this is required. Simply upload the image to the element manager. It will handle everything.
-
None of this is required. Simply upload the image to the element manager. It will handle everything.
I did upload the image from the file manager under the captive portal menu, but when the captive portal splash page shows the image is broken.
My code should be fine:
![](logo.png)
After reading this post I got the impression that there is a bug in pfSense and a work around is copying the picture into the captiveportal directory rather than relying on the refering link. My problem is that I'm using an embedded version of pfSense and I have only read only access to the system, and I have no idea how to get around this.
-
Run the following commands from the shell:
/etc/rc.conf_mount_rw
/etc/rc.conf_mount_roShould be obvious what they do.
-
The view captive portal link is broken but users surfing to the page will get the images. If you are simply viewing the page and pronouncing it broke because of this fact then you need to really test with a captive portal client.
-
Okay I tested this again and found some minor errors…
png wasn't working.
Anything upper or mixed case wouldnt have worked:
ie: Jpg
If you are running a full installation do a cvs_sync.sh releng_1 && shutdown -r now
If not, Diagnostics, Edit file and overwrite the code with this:
http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/pfSense/etc/inc/system.inc?rev=1.79.2.38;content-type=text%2Fplain;only_with_tag=RELENG_1