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

    PHP Parse error: syntax error, unexpected with latest snapshot

    Scheduled Pinned Locked Moved 2.5 Development Snapshots (Retired)
    3 Posts 3 Posters 299 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.
    • K
      kossie
      last edited by

      when opening the routing page, I get this error message and unable to access the routing page.

      amd64
      12.0-RELEASE-p10
      FreeBSD 12.0-RELEASE-p10 fe839027797(RELENG_2_5) pfSense

      Crash report details:

      PHP Errors:
      [31-Dec-2019 19:23:08 America/Los_Angeles] PHP Parse error: syntax error, unexpected ')' in /usr/local/www/system_gateways.php on line 169

      1 Reply Last reply Reply Quote 0
      • P
        pfBo
        last edited by

        Actually removing the extra ")" in line 169 makes it available again.

        Was:

        mwexec("/sbin/route delete -inet6 " . escapeshellarg($a_gateways[$id]['monitor']) . " " . escapeshellarg($rgateway)));

        Removing the last ")" from "($rgateway)));" and it's now accessible again.

        1 Reply Last reply Reply Quote 1
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Should be fixed in upcoming snapshots:

          https://github.com/pfsense/pfsense/commit/4bdbb8987eeb62a41ef6e92c1abf7a9befb90f20#diff-ec6446a5e0ba1355743271751e3154a5

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.