• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Captive portal image problem again

Scheduled Pinned Locked Moved Captive Portal
3 Posts 2 Posters 308 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    mozartatplay
    last edited by Mar 4, 2020, 2:45 PM

    Hi all

    I've uploaded an image using the captive portal upload file manager (herotell.png) and uploaded a portal.html page with the following html code (captiveportal-) prepended

    ...

      <span> <i> Internet link sponsored by </i> </span>
      <br/>
      <br/>
      <img style="width:200px;" src="captiveportal-herotell.png"/><br>
      </div>
    

    ...
    But it refused to show this image

    I checked the firewall /usr/local/captiveportal: directory - looks like file is there

    2.4.4-RELEASE][admin@iNethiMonitorOV.localdomain]/usr/local/captiveportal: ls -al
    total 104
    drwxr-xr-x 2 root wheel 512 Mar 4 15:40 .
    drwxr-xr-x 17 root wheel 512 Feb 2 2019 ..
    -rw-r--r-- 1 root wheel 82730 Sep 5 2018 captiveportal-default-logo.png
    lrwxr-xr-x 1 root wheel 45 Mar 4 15:39 captiveportal-herotell.png -> /var/db/cpelements/captiveportal-herotell.png
    lrwxr-xr-x 1 root wheel 41 Mar 4 15:40 captiveportal-logo.png -> /var/db/cpelements/captiveportal-logo.png
    -rw-r--r-- 1 root wheel 9301 Sep 5 2018 index.php

    Strange thing is that the other graphic element (captiveportal-logo.png) does display snipped of html earlier in the portal.html file for that is
    ...

    <div id="content">
    <div class="login-card">
    <img src="captiveportal-logo.png"/><br>
    <button class="button" onclick="window.location.href = 'http://splash.inethi.net';">Click here to </button>
    

    ...

    Am I missing something - I've restarted the firewall, captive portal ... tried everything

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Mar 4, 2020, 3:02 PM

      When you use your browser to inspect the login page, check the img source link.
      If the image doesn't show, it will show why.

      From memory, if your set Status > System> Logs > Settings > Web Server Log // Log errors from the web server process, you will be able to see the reason why the web server nginx can't show the page.

      Also : if you use the $$$$$ browser, use another one, or really empty the cache.

      Check also if the files really exists here : /var/db/cpelements/......

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • M
        mozartatplay
        last edited by Mar 4, 2020, 3:47 PM

        Oops sorry about the false alarm - it turned out being a browser cache issue .. amateur hour :)

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received