Help debugging PHP Errors
-
Hmm actually both are from the notice but the fact it's throwing a notice of 'no config' is indeed alarming. Like it failed to import the config or is unable to open the file.
Other than the crash report does the restored config appear to be there?
-
@stephenw10 yes, once I restore the backup it comes up with all of the config as normal. I will run the filesystem check when I get back home today but it operates normally once it’s fully booted. The backup should be from the same version, the initial crash happened a few weeks after I upgraded and I only found out when I went to do maintenance on it and it hung on boot so when I restored the backup, it was from only a couple of days before (well after the upgrade).
I don’t have any problem reinstalling or even changing out the SSD as long as I’ll be able to get my configuration back :)
-
It's running 2.7.2 currently?
-
-
-
Does the imported config have a <notifications> section?
-
@stephenw10 Nope! I searched the config and there is no notifications section :(
-
Hmm, are you able to upload that config to us to test/review?
-
@stephenw10 let me check what needs to be scrubbed tonight and then I can. Also planning on running the filesystem check tonight, the wife and I both WFH so wasn’t able to take it down during the day.
I honestly wouldn’t be surprised if there are bad blocks, it’s a cheap SSD I bought years ago and I think I want to switch to ZFS anyway which just means I’d have to grab a couple of more robust new SSD’s.
-
Ok you're hitting this but with a slightly different underlying error: https://redmine.pfsense.org/issues/15157
In both cases the config file is somehow unreadable and the error/notice generated is calling badly creating those PHP errors. That's masking the real problem.
Try resaving the Sys > Adv > Notifications page so the config does have a notifications section if you can. That may workaround the error so you can see the real issue.