I am getting the following error on Privatemsg conversation pages.

Notice: Undefined index: #language in term_permissions_form_alter() (line 134 of /home/forgers/public_html/sites/all/modules/term_permissions/term_permissions.module).

Notice: Uninitialized string offset: 0 in element_property() (line 6332 of /home/forgers/public_html/includes/common.inc).

I saw that this error was previously a problem on node/add pages, but that bug was resolved. I'm not seeing it on node/add pages, just on pages where I'm viewing a Private Message conversation. I've updated to the latest dev release of Taxonomy Term Permissions, and I've even tried uninstalling and reinstalling the module from scratch.

Comments

Likos73’s picture

Issue summary: View changes

Same problem. Although the issue is 4 years old I try. Any solution on this?
Thanx!

saurabh.dhariwal’s picture

Status: Active » Needs review
StatusFileSize
new639 bytes

@Likos73, I received the same error on Privatemsg conversation pages. I resolved this error & attached patch for the same. Can you please verify it once, if it is still not working for you then let me know for the same.

thanks!.

akash.addweb’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new45.41 KB
new55.5 KB

@saurabh.dhariwal, Thanks for solving this error, It is working fine for me, I checked it over simplytest.me.
I got the error message on Privatemsg conversation pages. I attached the screenshots for the same. PFA

Likos73’s picture

Agree-it works. Thank you!!!

  • roborn committed a037cec on 7.x-1.x
    Issue #1913656 by saurabh.dhariwal, Ronak.addweb, Likos73, dmetzcher,...
roborn’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting this issue.

The provided patch will cause $options to never be set. What we need to check for is if $form[$field_name]['#language'] is set, then set $options reference.

Fixed.

Status: Fixed » Closed (fixed)

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