When you submit field settings form Drupal displays error:

warning: mb_strlen() expects parameter 1 to be string, array given in [path]\includes\unicode.inc on line 370.

It is caused by form field #type property being set to: 'password_confirm' (line 83). It should be changed to 'password' I believe. After this change module seems to work normally. It was probably also causing duplicate rendering of item label on node creating form.

Also in line 95 strlen() should be changed to drupal_strlen().

Patch attached.

CommentFileSizeAuthor
password.diff988 bytesiwankgb

Comments

iwankgb’s picture

Sorry for duplicating bug report -> http://drupal.org/node/213710

budda’s picture

Status: Active » Reviewed & tested by the community

The patch got rid of the PHP error for me.

jooel’s picture

This did not work for me. The result i got was that the pw confirm field disappeared (and the module seemed to work without it).

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 119769)