when the family module is activated i get the error

Fatal error: Cannot use string offset as an array in /home/retep992/public_html/familytree/includes/form.inc on line 680

when i try to edit the custom profile variables under my account.

/user/1/edit/Personal+Information

i can edit the normal profile variables fine (where the variables for family association are) but its when i switch tabs to the custom ones.

I have tried deactivating the family module and the page loads fine. no idea why this happens and haven't seen anybody post the error yet so adding it to the list.

also i keep getting the error

Fatal error:  Call to undefined function  family_view_grou() in /home/retep992/public_html/familytree/modules/family/group.inc on line 271

but i think this is already trying to be fixed so im not too worried yet.

Thanks
Peter

CommentFileSizeAuthor
#6 family_user_profile_disable.patch5.17 KBpyutaros

Comments

pyutaros’s picture

Status: Active » Closed (works as designed)

Sorry. I guess I should have mentioned somewhere that folks should not be using 5.x-2.x-dev. There is often incomplete code thrown in there so I can save whatever I've been working on. The only "stable" versions right now are in the 5.x-1.x branch.
Thanks,
Jonathan

Microbe’s picture

Version: 5.x-2.x-dev » 5.x-1.0
Status: Closed (works as designed) » Active

I have followed your advice and downgraded to 5.x-1.0 but i still get the problem with form.inc on the profiles pages as stated above. i read somewhere that some modules may cause this error but it didn't say why. also it said different modules dont alway cause the problem in the same place but it was always the same line of code that returned the error so don't know if that helps.

http://drupal.org/node/210960
http://drupal.org/node/221228

pyutaros’s picture

Peter,
Let me get a little more info from you so I can try and replicate this on my test server. What version of PHP are you running? What SQL version? What webserver? And finally, can you list all the modules that are installed on your site?
Thanks,
Jonathan

Microbe’s picture

Apache version - 2.2.6 (Unix)
PHP version - 5.2.5
MySQL version - 5.0.45-community

Webhost is eUKhost - cpanel type

Modules list:
Color
Comment
Contact
Forum
Help
Menu
Path
Poll
Profile
Search
Statistics
Taxonomy
Tracker
Upload
All core modules (obviously)
Image
Image assist
Image Gallery
Family Tree
Meta tags
TinyMCE

problem only occurs when family tree is enabled

pyutaros’s picture

Yikes. I didn't get what you were saying at first. I think I know which lines in the Family module are causing this. I will test a little later and let you know.

pyutaros’s picture

StatusFileSize
new5.17 KB

Okay. Here's a patch that disables the profile fields until this gets sorted out. The patch comments out lines near the end of family.module. If I read form.inc @ 680 correctly, it appears to be disabling #attributes in forms. So apparently, we are doing something in the profile fields that it doesn't like. It's a little beyond me and not one of my top priorities to fix, so I've just disabled it. If you figure out a way to get it working, let me know. I will release ver 5.x-1.1 following this patch, which will disable this and implement your tree.inc.

Microbe’s picture

Status: Active » Fixed

I looked at the coding that you changed in the patch and it was very easy to fix after that.
the line return $form; should be outside the if statement so that a form is returned (a blank one) even when it is not on the account catagory page

pyutaros’s picture

Status: Fixed » Needs review

Thanks again. I'm going to mark this as active until I make the CVS commit with your proposed fix.

pyutaros’s picture

Commit has been made. Please download 5.x-1.1 and test.
Thanks,
Jonathan

pyutaros’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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