Hi there. I realize this module isn't being actively maintained, but I'm hoping against hope that someone might be able to point me in the right direction to a solution for the white screen of death I'm experiencing. PUX Settings was working great up until a random point recently. I have no idea what, if any new module or setting caused this, since I'd only checked the user settings page of the site I'm building infrequently at best, assuming it to be finished and working fine. From what I can tell, it appears that $form_state['user'] isn't making its way into user_profile_form_submit() for whatever reason. Here's the white screen of death error:
Fatal error: __clone method called on non-object in /home/hlimpro/subdomain_staging/modules/user/user.pages.inc on line 311
And these notices present themselves upon the next successful page load:
Notice: Undefined index: field in field_widget_field() (line 578 of /home/hlimpro/subdomain_staging/modules/field/field.form.inc).
Notice: Undefined index: instance in field_widget_instance() (line 603 of /home/hlimpro/subdomain_staging/modules/field/field.form.inc).
Notice: Undefined index: user in user_profile_form_submit() (line 302 of /home/hlimpro/subdomain_staging/modules/user/user.pages.inc).
At the same time that I noticed these errors, I also noticed that the two Link fields I had configured for the user entity began experiencing this issue: #1126384: Set no title but title field still appears However, I only encounter this via PUX Settings. If I use the default user/[uid]/edit page, everything works as it should, both with regard to the Link fields and saving. I don't know if the two or linked, or just coincide, but I thought it was worth mentioning.
I'd be happy to provide more information if someone is interested in helping me out.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | pux_settings_submit_fix.zip | 979 bytes | ambient.impact |
Comments
Comment #1
dianacastillo commentedI got the same error when I tried to save from the /settings page: Fatal error: __clone method called on non-object in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\pn\modules\user\user.pages.inc on line 311
Comment #2
ambient.impactI'd almost forgotten about this issue. In the time since I opened it, I slapped together a quick bandaid module that seems to work. It still gives me a few PHP notices when saving, but no errors, so it saves successfully. It looks like the user object wasn't present in the form state, and that's what was causing the error. No idea why it started to disappear all of a sudden. I've attached the mini-module.
Comment #3
dianacastillo commentedthat works great, thanks!
Comment #4
prabuthe commentedplease explain how to apply this
help me