Not sure where to put since no 2.1 section?


  • LAYER 8 Global Moderator

    Running

    2.1-DEVELOPMENT (i386)
    built on Sun Sep 11 21:36:53 EDT 2011

    You are on the latest version.

    Just ran a gitsync this morning, and getting this error

    unexpected T_RETURN in /etc/inc/xmlrpc_client.inc on line 563

    I had to manually start unbound and bandwidthd after reboot, other than that seem to be working ok - unless you try and look at the package logs?  Then you get that error as well.

    I would have to assume its related to this commit
    https://github.com/bsdperimeter/pfsense/commit/9a4cfa0b23d27db263420cdcf54edfa86c034ad3

    
    @@ -559,8 +559,10 @@ class XML_RPC_Base {
    
         {
    
             include_once 'PEAR.inc';
    
             if (is_object(@$this)) {
    
    +      log_error(get_class($this) . ': ' . $msg . " {$code}")
    
                 return PEAR::raiseError(get_class($this) . ': ' . $msg, $code);
    
             } else {
    
    +      log_error("XML_RPC: " . ': ' . $msg . " {$code}")
    
                 return PEAR::raiseError('XML_RPC: ' . $msg, $code);
    
             }
    
         }
    
    

    Not really a coder, but is not the 2 lines added missing a ; at the end?





  • just add the ; and working well

    include_once 'PEAR.inc';
            if (is_object(@$this)) {
        log_error(get_class($this) . ': ' . $msg . " {$code}");
                return PEAR::raiseError(get_class($this) . ': ' . $msg, $code);
            } else {
        log_error("XML_RPC: " . ': ' . $msg . " {$code}");
                return PEAR::raiseError('XML_RPC: ' . $msg, $code);



  • I had the same problem today after a manual update to JIMPs i386-20110929-1702.tgz

    I used Putty to get access into the console and ee to apply the fix above.

    Thanks to those who took the time to debug this and save me lots of time.


Log in to reply