hello,

i installed the module but when i want to go to the page to change the password I get a WSOD.

greets
Geert

Comments

vinoth.3v’s picture

Updated to CVS

gertieiv’s picture

Version: 6.x-1.1 » 6.x-1.2

still the same wsod

greets,
geert

vinoth.3v’s picture

Ahhh
Are you sure that you are using chgpwd-6.x-1.2?

and could you please let me know the error message?

arpieb’s picture

Same thing here. I just installed chgpwd-6.x-1.2.tar.gz on a D6.16 site, and received the following error:

Fatal error: Function name must be a string in /homepages/16/d282277974/htdocs/weffo.com/includes/form.inc on line 932

I'm going to disable this module for now and follow this thread...

-R

gertieiv’s picture

same error here

Fatal error: Function name must be a string in example.com/includes/form.inc on line 932

geert

askibinski’s picture

The fatal error exists in 1.2 and -dev.

However, I've got a second site which uses this module without the error.

vinoth.3v’s picture

Could you please have me a list of other contributed modules enabled on the site?

Regards

askibinski’s picture

I don't think it's a conflict with another module because this issue came up on an existing site which worked fine with the module and at one point started to throw these errors. Without any changes in the codebase.

halmsx’s picture

having same problem. was working fine one minute. then all the sudden, white screen.

MAds’s picture

I also received fatal error.

dbaasi’s picture

If I disable CKEditor, the error goes away, enable error comes back...

teflo’s picture

Same error! I confirm that seem a conflict with CKEditr

mrothmay’s picture

Having the same problem when both "change password" and ckeditor are enabled. In a multisite installation with identical modules enabled in several sites, some sites work and some sites result in WSOD when you go to the change password page.

peternickson’s picture

Confirming that the problem still exists even if you configure CKEditor's visibility to be off for user pages. Under admin/settings/ckeditor/editg, a change the global profile so that user/* is excluded still leaves you with the same error page:

Fatal error: Function name must be a string in /home/qstandar/public_html/includes/form.inc on line 936

mimamim’s picture

Solution:

at line 67 in chgpwd.module replace
$form[$mkey]['#access'] = FALSE;
with
unset($form[$mkey]);

Why: The attribute #access makes no sense on special fields, one of which is '#after_build', calling function 'fckeditor_process_form'
Actually, only unsetting $form['#after_build'] removes the WSOD

Thanks for the very nice module!

BetoAveiga’s picture

Thanks Mimamim, that fixes the problem for me!

didib’s picture

We had a related bug, which is also fixed by mimamim's solution in comment 15.

We have some users with the same email address. Although the normal code prevents this, we used some custom modules that allowed this. Then, users could not change their password using chgpwd if another user had their email address. The problem was that the original code also tried updating the email address, which was blocked. The fix prevents trying to update the email address.

Thanks, mimamim!

mrothmay’s picture

This works for me, too. Thanks!

vinoth.3v’s picture

Title: white screen of death » white screen of death if user has no access to user edit form fields
Project: Change password » CKEditor 4 - WYSIWYG HTML editor
Version: 6.x-1.2 » 6.x-1.x-dev

because other modules may check their form field values on user edit form submit and update the user data or variables accordingly, un-setting form elements may produce strange side effects in user data or other variables.

We need better solution than this. I am moving this issue to ckeditor.

mkesicki’s picture

Status: Active » Closed (cannot reproduce)

I tested this with 6.x-2.x-dev version of Change password module. Normal/core drupal change password also works fine for me. I cannot reproduce this problem.