<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Custom Captive Portal Page not working after upgrade to 2.0.3]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">Just upgraded to 2.0.3, and reloaded the old configuration from my 2.0.1.  Funny thing - my captive portal page has been php for quite some time and worked without issue.  After the upgrade the html portion displays fine, but I get the error:</p>
<p dir="auto">Fatal error: Call to undefined function mysql_connect() in /var/etc/captiveportal.html</p>
<p dir="auto">Ok, so the captive portal is(n't) doing two things:</p>
<p dir="auto">1)  it renames my index-cp.php to captiveportal.html<br />
2)  it refuses to parse php code in that page.</p>
<p dir="auto">I tried simply renaming the file and got a blank screen when I roloaded the captive portal page.</p>
<p dir="auto">Now really folks, is this sort of thing necessary?  What happened to php in 2.0.3?</p>
]]></description><link>https://forum.netgate.com/topic/54717/custom-captive-portal-page-not-working-after-upgrade-to-2-0-3</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 17:08:36 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/54717.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Mar 2013 12:53:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Custom Captive Portal Page not working after upgrade to 2.0.3 on Mon, 01 Apr 2013 14:23:20 GMT]]></title><description><![CDATA[<p dir="auto">I just tried some PHP in a page on 2.0.3 and 2.1 and it worked in both places.</p>
]]></description><link>https://forum.netgate.com/post/387441</link><guid isPermaLink="true">https://forum.netgate.com/post/387441</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Mon, 01 Apr 2013 14:23:20 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Captive Portal Page not working after upgrade to 2.0.3 on Mon, 01 Apr 2013 13:45:17 GMT]]></title><description><![CDATA[<p dir="auto">It has always renamed the page to captiveportal.html, that's normal and it should still parse PHP code in the page there.</p>
<p dir="auto">MySQL support isn't enabled in PHP to start with, you have to "touch /etc/php_dynamodules/mysql" and then run /etc/rc.php_ini_setup</p>
<p dir="auto">PHP not activating in captive portal may be a legitimate issue though, there were some changes to the lighttpd config that might be causing that, I'll have to check into that.</p>
]]></description><link>https://forum.netgate.com/post/387435</link><guid isPermaLink="true">https://forum.netgate.com/post/387435</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Mon, 01 Apr 2013 13:45:17 GMT</pubDate></item></channel></rss>