Closed (fixed)
Project:
MySite
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2006 at 18:18 UTC
Updated:
21 Nov 2006 at 14:51 UTC
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
Comment #1
agentrickardRead the INSTALL.txt file.
I would bet that you have no taxonomy terms defined. Or you have a vocabulary with no terms in it.
Comment #2
agentrickardSee 2.c of the INSTALL.txt
Comment #3
agentrickardIn the absence of any response, I'm calling this administrator error. See section 2c of the INSTALL.txt file.
Comment #4
tknospdr commentedI 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
Comment #5
agentrickardn/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.
Comment #6
tknospdr commentedWhat 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
Comment #7
agentrickardYou 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.
Comment #8
agentrickardI have patched the array error.
Comment #9
agentrickard