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

PHP Parse error in all VPN menu items

Scheduled Pinned Locked Moved webGUI
3 Posts 2 Posters 1.0k 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.
  • P
    pfugu
    last edited by Oct 5, 2015, 6:05 PM

    Hi all,

    I can't access any pages from the VPN dropdown. All return some sort of PHP parse error.

    Crash report begins.  Anonymous machine information:

    amd64
    10.1-RELEASE-p15
    FreeBSD 10.1-RELEASE-p15 #0 c5ab052(releng/10.1)-dirty: Sat Jul 25 20:20:58 CDT 2015   
    root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10

    Crash report details:

    PHP Errors:
    [05-Oct-2015 18:39:58 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /usr/local/www/vpn_ipsec.php on line 274

    or:

    PHP Errors:
    [05-Oct-2015 18:47:04 Europe/London] PHP Parse error:  syntax error, unexpected '' (T_NS_SEPARATOR), expecting ']' in /usr/local/www/vpn_openvpn_server.php on line 117

    • I've not made any config changes I can think of to trigger this.

    • The OpenVPN service seem to be running properly despite this.

    • Other Web Pages seem un-affected by the problem.

    • I think the error has changed once or twice suggesting the line referenced in the files is a bit of a red herring. I've taken a look at the PHP files and they look ok.

    • I tried to reinstall the OpenVPN Export Utility but this caused the machine to reboot. I've uninstalled it but haven't tried reinstalling yet as the problem is still present.

    Please let me know if any further info would be helpful or if there's any maintenance tasks I can perform.

    Thanks in advance all,

    pfugu

    1 Reply Last reply Reply Quote 0
    • P
      phil.davis
      last edited by Oct 6, 2015, 4:49 AM

      I guess you are running 2.2.4 from the look of the 10.1-RELEASE-p15

      vpn_ipsec.php line 274 does not even have a ')' in it or near it in the version in the RELENG_2_2 branch of the GitHub pfsense repo.

      Similar for vpn_openvpn_server.php line 117 - no '' to be seen around there.

      What is in those lines and the surrounding lines on your system?

      It seems like something has corrupted some code somehow.

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • P
        pfugu
        last edited by Oct 6, 2015, 5:49 PM

        Hi Phil, thanks for checking that. It seems there was some corruption further down the file so I suspect nonsense was getting passed into the variable or something like that.

        I swapped out the disk for a new one and did a clean install. Config restored and all is working as expected now.

        Thanks again for your help.

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