Pfsense 2.2.4 php error
-
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 -
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?)
-
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)
-
Why don't you simply reinstall?
-
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.
-
Problem solve after reinstall.
-
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)
-
Yeah, get some more reliable HW.
-
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-sectorsBasically 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/rR1K9R8Z9VQG9S9Of 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.
-
This is the reasonĀ :-
Stopped at 6449MBĀ Ā :'(I bought Kingston SE9 G2 for replacement ;D
Thank you all :)