Hello,

I added node access password module and created a realm then I chose a content type called petition and added a node access password field but I do not see any field in petition node.
I tested it on other nodes and it is the same.
I think I do not know how to use it. please help

Thanks in advance.

CommentFileSizeAuthor
#2 node1.png119.39 KBchrisljs
#2 node2.png85.45 KBchrisljs
#3 node3.png223.82 KBchrisljs

Comments

danielb’s picture

Creating a realm and choosing a content type there does not automatically add the field to the node. The field must be added manually the same way you normally add fields to a content type.

chrisljs’s picture

StatusFileSize
new85.45 KB
new119.39 KB

Sure I did. I added a cck field thourgh all content types I think I did right. It isnt just shown up. please see the images.
I newly installed drupal7.9 just for a test to have a node access password field. It still does not show up.

Please see attached images.

Thanks.

chrisljs’s picture

StatusFileSize
new223.82 KB

one more image for realm

danielb’s picture

Could be a bug, I'll check it out next week. Sorry about the delay.

countercraft’s picture

I also have same problem with durpal 7 module, any update on this matter?

netentropy’s picture

I can confirm the problem as well in both version of the module. You add the field and it does not show on the form.

danielb’s picture

Assigned: Unassigned » danielb
Category: support » bug
Priority: Normal » Major

Sorry again about the delay, lots of issues in my queue and this one got lost.

netentropy’s picture

No worries. I hope it is something we can figure out. I took a look at it most of the afternoon but failed to see anything I could help with. I did notice in -dev version an error on the user profile page. Thanks!

danielb’s picture

I have discovered it is due to this issue
#977052: Implement hook_hook_info() for Field API hooks

The file simply isn't included as advertised by this documentation: http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...

I will force it to include all the time.

danielb’s picture

Status: Active » Fixed
netentropy’s picture

I am getting a SQL error. The previous -dev version also produces this error for me.

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?render=overlay&id=46&op=do StatusText: error ResponseText: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 'kob8l59t' LIMIT 0, 1' at line 1: SELECT 1 FROM {nodeaccess_password} password = :password LIMIT 0, 1; Array ( [:password] => kob8l59t ) in nodeaccess_password_node_generate_passwords() (line 53 of /xxxxxx/nodeaccess_password/nodeaccess_password.node.inc).

danielb’s picture

unrelated, but fixed that too

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kiwibytes’s picture

Node Access Password still doesn't work. What was the fix again?