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
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | family_user_profile_disable.patch | 5.17 KB | pyutaros |
Comments
Comment #1
pyutaros commentedSorry. 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
Comment #2
Microbe commentedI 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
Comment #3
pyutaros commentedPeter,
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
Comment #4
Microbe commentedApache 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
Comment #5
pyutaros commentedYikes. 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.
Comment #6
pyutaros commentedOkay. 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.
Comment #7
Microbe commentedI 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 pageComment #8
pyutaros commentedThanks again. I'm going to mark this as active until I make the CVS commit with your proposed fix.
Comment #9
pyutaros commentedCommit has been made. Please download 5.x-1.1 and test.
Thanks,
Jonathan
Comment #10
pyutaros commentedComment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.