Error when editing account

fuse - July 14, 2008 - 14:54
Project:Membership types and registration modification
Version:5.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When going to the My Account page and trying to edit registration information created with the registration modification module and all the other required modules for this, I get the following error and no edit form is displayed. I think it might have to do something with the subform element module. Since it is the $type subform that gives the error.

warning: Illegal offset type in /var/www/vhosts/codefellas.com/subdomains/bannerich/httpdocs/includes/form.inc on line 894.
warning: Illegal offset type in /var/www/vhosts/codefellas.com/subdomains/bannerich/httpdocs/includes/theme.inc on line 167.
warning: Illegal offset type in /var/www/vhosts/codefellas.com/subdomains/bannerich/httpdocs/includes/theme.inc on line 168.
warning: Illegal offset type in /var/www/vhosts/codefellas.com/subdomains/bannerich/httpdocs/includes/theme.inc on line 170.

I'm using all the latest versions of all the modules.

AttachmentSize
error.gif30.46 KB

#1

dnaromance - October 9, 2008 - 02:14

Hi,

I've faced it too! Any solution for this?

I'm using nodefamily, subform, nodeprofile, pageroute, accounttypes, and membership types and registration modification. I initial suspect there must be something to do with among these.

When I click on "Personal Data" then it's ok, but when I click on "Profile" then it shows an errors above. I think something to do with my content type "Profile", others might also cause the error were account types and pageroute. I suspect that.

I appreciate any response regarding this issue. Hope could resolve this issue. Thanks :)

Best regards,
kailoon

#2

toemaz - May 7, 2009 - 15:29
Status:active» fixed

In hook_user, when a module returns a form, I noticed that the error gets away when you use a nested form array:

<?php
        $form
['blah'] = array(
         
'#type' => 'fieldset',
         
'#title' => 'blah',
        }
// should become
       
$form['toto']['blah'] = array(
         
'#type' => 'fieldset',
         
'#title' => 'blah',
        }
?>

#3

System Message - May 21, 2009 - 15:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.