I'm having the following error on the register forum:
Notice: Undefined index: safe_value in terms_of_use_form_user_register_form_alter() (regel 88 van /home/vhosts/hetschrijversforum.nl/httpdocs/forum/modules/terms_of_use/terms_of_use.module).

As a result of this error, the terms of use don't show on the register form.

CommentFileSizeAuthor
#5 terms_of_use.module.patch1.02 KBpmat

Comments

mesr01’s picture

Same here.

antel’s picture

+1

Seems like the safe_value key does not exists when using a Text format that is not cacheable (that is, containing one or more input filters with the cache option set to false).

luckystrikerin’s picture

subs

wipeout_dude’s picture

I am having the same issue.. Was working, then I changed the page referenced by the module and got the error..

Anyone have a fix?

EDIT:
Fixed it by changing from Full HTML to Filtered HTML.. Haven't investigated the difference but at least its working..

pmat’s picture

StatusFileSize
new1.02 KB

Same problem here, I solved applying the attached patch to terms_of_use.module
Hope this help.
Regards

mesr01’s picture

Status: Needs review » Active

The patch didn't work for me but I was able to solve the problem simply by changing ['safe_value'] for ['value'] in file terms_of_use.module, line 88.

mesr01’s picture

Status: Active » Needs review
offerman’s picture

The patch does not help me: the message is still there, and the text field is empty.

So I went for the simple solution as proposed in #6.
Now the message is gone and the text field is filled properly :-)

tvilms’s picture

Status: Active » Needs review

I've just done a clean install of D7.10 and Terms of Use 7.x-1.1. I saw this same error when first trying to create a new error. Comment #6 didn't fix it for me. However the patch appears to have solved the problem. It's odd - it's the opposite of what @offerman did. But that's what worked for me.

javier.drupal.2012’s picture

Number #5 works to me

Thanks!!!

kars-t’s picture

Status: Needs review » Closed (duplicate)