After I installed it and I tried to access a node that had a vocabulary associated with it (that I had just restricted) I received the following error: warning: Invalid argument supplied for foreach() in /home3/awaytote/public_html/modules/term_permissions/term_permissions.module on line 162.

Comments

deviantintegral’s picture

StatusFileSize
new651 bytes

Thanks for reporting this. Can you try the following patch to see if this fixes it? It looks to be caused when the #weight (or any other # property) is specified for the vocabulary element.

deviantintegral’s picture

StatusFileSize
new915 bytes

The above only removed the error, at the cost of showing all terms!

Try this one instead.

deviantintegral’s picture

Status: Active » Needs review

Setting proper status for this.

arlinsandbulte’s picture

Confirmed: Patch 2 fixes this error

(hurray! my first patch review!)

deviantintegral’s picture

Status: Needs review » Fixed

Thanks for testing this. I've committed the fix.

arlinsandbulte’s picture

This latest -dev release did not implement the fix.

md5_file hash: da6b53a25d3676241a03584982176baa
Last updated: March 13, 2009 - 00:23

deviantintegral’s picture

Are you sure? I just downloaded that tarball and it contains both patches; the CVS revision is 1.4, which is correct. The md5 sum matches for me as well.

arlinsandbulte’s picture

Yes, I am sure. I downloaded the module from the project page.
I think it is unchanged from the 1/17/2009 release.
I can apply the patches to the latest -dev with no problems.

I did this a bunch of times... thinking I was grabbing the files from and old directory or something.
I am pretty sure I am doing everything right.

arlinsandbulte’s picture

Hmmmm... something may be wrong on the drupal server...
The project page shows a file size of 9.61 KB.
The file I download from there is 9.27 KB (9,495 bytes).

Also, even after updating, Drupal reports page still shows out of date term_permissions module.

deviantintegral’s picture

Sounds like you might be hitting a web node which isn't updating properly.

Try again in 12 hours, and if you're still getting the old file, open up an issue in the Drupal.org infrastructure queue.

arlinsandbulte’s picture

Cleared all private data in FF3 and now it downloads the right one!!!!
Sorry for the confusion.
All is well.

deviantintegral’s picture

No worries - glad you got it working!

Status: Fixed » Closed (fixed)

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