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

    Pfsense 2.2.4 php error

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 4 Posters 1.9k 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.
    • C Offline
      cheshire_cat
      last edited by

      Hi all,

      anyone encountering php error on 2.2.4?
      when i navigate to services -> DHCP server,
      the page show below message…
      Parse error: syntax error, unexpected '[', expecting ']' in /usr/local/www/services_dhcp.php on line 527

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

        No problems here or anywhere I've seen.

        If you open up the file it mentions, what does line 527 look like? It should look like what you find here:

        https://github.com/pfsense/pfsense/blob/RELENG_2_2_4/usr/local/www/services_dhcp.php#L527

        It's possible something corrupted the file (bad/dying disk?)

        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
        • C Offline
          cheshire_cat
          last edited by

          Thanks for your reply :)

          I go to Diagnostics -> Edit file to load the php file.

          there are lots of uncorrect code after line 526….  looks like chinese  lol

          how do i replace the php file to origin ???

          Appreciate of your help  8)

          1 Reply Last reply Reply Quote 0
          • D Offline
            doktornotor Banned
            last edited by

            Why don't you simply reinstall?

            1 Reply Last reply Reply Quote 0
            • F Offline
              firewalluser
              last edited by

              @cheshire_cat:

              Thanks for your reply :)

              I go to Diagnostics -> Edit file to load the php file.

              there are lots of uncorrect code after line 526….  looks like chinese  lol

              how do i replace the php file to origin ???

              Appreciate of your help  8)

              Its probably not chinese, but if you dont mind posting a sample starting from where its corrupted would be handy.

              Its almost certainly corrupted code but its always worth checking out hence the above request.

              Other parts of the system could also be corrupted so its 50/50 just whether pfsense can run and/or other parts of the system run.

              Like stated elsewhere best to reinstall, but as your ISO or whether you installed from could be corrupted best to download a new copy to avoid installing a corrupted copy.

              If you want to see if your download is corrupted, assuming its an ISO you can use Beyond Compare http://www.scootersoftware.com/ or similar to compare the ISO's. They do a freetrial dont know if a n ISO compare is part of it though. At least that way you can tell if you have a corrupted copy or not.

              fwiw.

              Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

              Asch Conformity, mainly the blind leading the blind.

              1 Reply Last reply Reply Quote 0
              • C Offline
                cheshire_cat
                last edited by

                Problem solve after reinstall.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cheshire_cat
                  last edited by

                  it's happen again :(

                  this time is services_captiveportal.php

                  maybe jimp is right, dying/bad disk (Sandisk flash drive)

                  the code looks like below (it didn't allow me to copy)

                  Capture.JPG
                  Capture.JPG_thumb

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    doktornotor Banned
                    last edited by

                    Yeah, get some more reliable HW.

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      firewalluser
                      last edited by

                      http://forums.sandisk.com/t5/All-SanDisk-USB-Flash-Drives/Software-to-Repair-or-Mark-Flash-Bad-Sectors/td-p/301517
                      http://photo.stackexchange.com/questions/5195/how-can-i-test-a-memory-card-for-performance-and-bad-sectors

                      Basically if its a dodgy card, the wear controllers should mark the parts that are failing, some even prempt but I think thats more SSD drives that do the preempting by moving the data before its lost.

                      There are complaints of branded IT products being sold online which turn out to be fakes even from authorised agents, just so you are aware, in fact SANSDisk is one such company that I read was caught up in this fake IT products issue.

                      Been going on for years. CPU's in general are another product which has a high manufacturing failure rate but as not many places in the world can fabricate them due to the millions involved in making the fab sites, you wont see counterfeit cpu's quickly, but other IT products you will as they are simply easier to make and fake.

                      http://www.ebay.co.uk/gds/FAKE-SanDisk-Ultra-Secure-Digital-Cards-Exposed-/10000000001254879/g.html
                      http://www.amazon.co.uk/gp/aw/cr/rR1K9R8Z9VQG9S9

                      Of course its still worth checking out the image (assuming an image was used) is not corrupted either or some other problem elsewhere in your system. Its a process of elimination.

                      Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

                      Asch Conformity, mainly the blind leading the blind.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        cheshire_cat
                        last edited by

                        This is the reason  :-
                        Stopped at 6449MB    :'(

                        I bought Kingston SE9 G2 for replacement ;D

                        Thank you all :)

                        sandisk8g.jpg
                        sandisk8g.jpg_thumb

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