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

Error: Parse error: syntax error, unexpected T_UNSET … in Firewall Rules

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 3 Posters 4.8k 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.
  • Z
    zarathustra
    last edited by Apr 17, 2008, 1:43 PM

    Hi,

    I've been trying out pfSense and I really love the product. It's very very refined. It's not in use yet since I've been trying to configure everything before we switch routers. One time I had an error could not find pfsense object so I re-installed. I've had various errors where I had to change configs or reinstall. And it's only been this week. I hope that I work thru all this so we can start using it.

    This is the error I get when I try to go to Firewall Rules:


    Parse error: syntax error, unexpected T_UNSET, expecting T_VARIABLE or '$' in /usr/local/www/firewall_rules.php on line 112


    I really hope my experience so far isn't too typical. Maybe I'm doing something wrong but all I've been doing is installing and confuring squid, snort, queues, VLANs, and the firewall. Upon installation, I had one traffic shaper error where I had to rename an OPT interface back to default and again back to what I wanted before the error dissappeared. The 2nd error I forgot where I got it from (pfsense object not found). And now this. Using 1.2. Really really hope I can get this working but I'm now afraid of putting it into use and encountering more problems like this.

    Hope someone can help!

    1 Reply Last reply Reply Quote 0
    • H
      hoba
      last edited by Apr 17, 2008, 5:26 PM

      Your experience is really untypical. What hardware are you using for testing? Looks like your config.xml is somehow selfdestructing. Do you see anything maybe drive related in the systemlogs (status>systemlogs)?

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by Apr 17, 2008, 7:06 PM

        This sounds like bad hardware to me.  The code in question is this:

        if(isset($a_filter[$_GET['id']]['disabled']))
                                unset($a_filter[$_GET['id']]['disabled']);

        Its testing if the item exists and then unsets it.  What you are reporting SHOULD be impossible.  Unless someone else is on the firewall editing the same record at the exact same time using the same account.

        1 Reply Last reply Reply Quote 0
        • Z
          zarathustra
          last edited by Apr 18, 2008, 3:11 AM

          Thank you very much hoba and sullrich!

          Yes the computer I'm using is really cheap. The 2nd NIC caused a Dell workstation to not even boot. Many of our computers are random clones that I don't trust too much, certainly not for a router. but I didn't much else to spare. But I was able to get a Dell with a decent 2nd NIC. Will try this all again. Thanks!

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