I'm getting the following error on my add/remove content page.

warning: Invalid argument supplied for foreach() in /Users/david/Sites/technospider/cms/modules/mysite/plugins/types/term.inc on line 53.

Comments

agentrickard’s picture

Read the INSTALL.txt file.

I would bet that you have no taxonomy terms defined. Or you have a vocabulary with no terms in it.

agentrickard’s picture

See 2.c of the INSTALL.txt

agentrickard’s picture

Status: Active » Closed (works as designed)

In the absence of any response, I'm calling this administrator error. See section 2c of the INSTALL.txt file.

tknospdr’s picture

I stopped using the mod because it wasn't doing what I wanted it to anyway so I'm sorry, but I can't verify your fix.
It's very possible that it was just PEBCAK though.

Thanks,
David

agentrickard’s picture

n/p.

It's a question of error handling (or the lack thereof). I'll probably fix this anyway. The issues arises when you have an empty vocabulary. It returns a null array, and then the foreach statement errors out.

tknospdr’s picture

What I was looking for with this mod, and maybe one already exists or the functionality is there and I don't know how to do it, is to have a public facing personal page.

I want to build a portal site and have different customers have a personallized homepage that visitors can see. It should be able to have in depth personal stats, pics, and internal/external links and such on it.

I know this could be done with a standard Drupal 'page' and full html access, but I don't want the cust to have to know html and I don't want to give them full html access anyway.

Do you know of anything that might accomplish that? If not maybe you'd like to undertake a new project?? ;-)

Thanks,
David

agentrickard’s picture

You can actually do quite a bit with Profile.module and theming (or extension via other modules).

You may also want to write a module that extends profile.module or user.module.

For example, here http://savannahnow.com/user/2 we have a lightweight user-favorite.module that uploads the big picture in the center. It is a very easy port of the avatar upload from the user.module, just applied to larger images.

I dont have time to take this on. I don't even have time to port user_favorites from 4.6 to 4.7 as a proper release.

agentrickard’s picture

Status: Closed (works as designed) » Fixed

I have patched the array error.

agentrickard’s picture

Status: Fixed » Closed (fixed)