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

    Problem with Captive Portal and package VHosts

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 861 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.
    • D
      dukecount
      last edited by

      Hi,
      In a new installation of pfSense 2.2.2 although it appears that the captive portal works the same, following the report of the error that I proceeded to send

      
      Crash report begins.  Anonymous machine information:
      Crash report details:
      PHP Errors:
      [03-Jun-2015 09:59:37 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2216
      [03-Jun-2015 09:59:43 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2229
      
      

      The only additional packages are installed: freeradius2, syslog-ng and vhosts.
      They are used for authentication and user registration via SMS with an application hosted in a virtualhost on vHosts. syslog-ng is used to log the Internet traffic directly to local disk in /var/syslog-ng/default.log with the ability to rotate

      I removed the three installed packages ( freeradius2 , syslog-ng and vHosts ) and the error is gone.
      Then I installed the packages one at a time and restarted pfSense, after I installed the package vHosts (v. 0.7.5) the error reappeared.

      
      pfSense has detected a crash report or programming bug. Click here for more information.
      ...
      Crash report details:
      PHP Errors:
      [04-Jun-2015 16:21:22 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2216
      [04-Jun-2015 16:21:28 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2229
      
      

      Follow the lines of code in the file captiveportal.inc ( from 2216 to 2236 ) where the error occurs

      
      2216    if (PEAR::isError($racct->start())) {
      		$retvalue['acct_val'] = 1;
      		 $retvalue['error'] = $racct->getMessage();
      
      		// If we encounter an error immediately stop this function and go back
      		$racct->close();
      		return $retvalue;
      	        }
      	        // Send request
      	        $result = $racct->send();
      	        // Evaluation of the response
      	        // 5 -> Accounting-Response
      	        // See RFC2866 for this.
      2229	if (PEAR::isError($result)) {
      		    $retvalue['acct_val'] = 1;
      		    $retvalue['error'] = $result->getMessage();
      	        } else if ($result === true) {
      		    $retvalue['acct_val'] = 5 ;
      	        } else {
      		    $retvalue['acct_val'] = 1 ;
      	       }
      
      

      I think the package VHosts ver. 0.7.5 must be updated to work with the new version of PHP 5.5.23

      Any idea to fix this bug? Anyone can contact the maintainer of this package to report the problem?

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @duke:

        ….
        Any idea to fix this bug? Anyone can contact the maintainer of this package to report the problem?

        You can do so  ;)

        If … one still exists.

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.