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

can't login to WebUI - syntax error, unexpected

Scheduled Pinned Locked Moved webGUI
4 Posts 3 Posters 557 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
    delphi94
    last edited by delphi94 Jun 15, 2021, 3:25 AM Jun 15, 2021, 3:11 AM

    My internet connection was dropping periodically so I logged into pfsense GUI to check WAN IP address. Logged out and then tried to log back in a couple of minutes later to restart pfsense but the web GUI won't load anymore. I receive the following error

    Parse error: syntax error, unexpected '��' (T_STRING), expecting ')' in /usr/local/www/shortcuts.inc on line 150

    I can see in the shell output that my login is successful but the webgui page won't load.

    I have tried restarting pfsense and also ran playback resetwebgui from option 12 of the command line.

    I opened /usr/local/www/shortcuts.inc in vi editor and looked at line 150. Its not the same compared to shortcuts.inc in the git repository. Is it safe to backup and replace the file? What will happen if I do that?

    Pfsense version 2.5.1 release running on Windows Server 2019 Hyper-V Screen Shot 2021-06-14 at 11.07.06 PM.png Hyper-V

    G 1 Reply Last reply Jun 15, 2021, 7:17 AM Reply Quote 0
    • G
      Gertjan @delphi94
      last edited by Jun 15, 2021, 7:17 AM

      @delphi94 said in can't login to WebUI - syntax error, unexpected:

      What will happen if I do that?

      I'm running 2.5.1 CE here, and this file is the same as the file on my pfSense.

      Is "/usr/local/www/shortcuts.inc" corrupt ?
      Be careful, files don' / won't get corrupted - and if they do,n many more can follow.

      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
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Jun 15, 2021, 12:41 PM

        If that file is corrupt, others are likely corrupt as well. The safest path forward is to wipe and reinstall, then restore a backup.

        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 0
        • D
          delphi94
          last edited by Jun 16, 2021, 4:42 AM

          Thanks,

          I was able to resolve by reinstalling pfsense and restoring the config.

          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