Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] Petition errors

Subject: COmanage Developers List

List archive

Re: [comanage-dev] Petition errors


Chronological Thread 
  • From: Benn Oshrin <>
  • To:
  • Subject: Re: [comanage-dev] Petition errors
  • Date: Fri, 12 Apr 2013 11:02:18 -0400
  • Authentication-results: sfpop-ironport05.merit.edu; dkim=neutral (message not signed) header.i=none

I *think* that orgIdentitiesFromCOEF has to be true at the moment, otherwise there's no way to populate the org identity into the petition. We should confirm and then update JIRA/the documentation appropriately.

For the second error you got, I'm not sure I know how to reproduce it. Can you open a ticket with the steps? Specifically, what attributes is your petition collecting?

-Benn-

On 4/10/13 3:29 PM, Marie Huynh wrote:
Well, I figured out how to get rows generated for co_petitions so I
could work on the view page, but I did find other errors/issues.

1. I updated my checkout and nuked my database.
2. Created a new Org ID
3. Added Enrollment Flow
4. Added attributes
5. Created Petition
6. Filled in Form
7. Got Not Implemented Error

The Not Implemented error is thrown when
$CmpEnrollmentConfiguration =
ClassRegistry::init('CmpEnrollmentConfiguration');

if($CmpEnrollmentConfiguration->orgIdentitiesFromCOEF()) is false. This
returns false if this returns nothing:

$r = $this->find('first',
array('conditions' =>
array('CmpEnrollmentConfiguration.name' =>
'CMP Enrollment Configuration',
'CmpEnrollmentConfiguration.status' =>
StatusEnum::Active),
// We don't need to pull attributes, just
the configuration
'contain' => false,
'fields' =>

array('CmpEnrollmentConfiguration.attrs_from_coef')));

So how does this table get populated? I went and checked off Enable
Attributes Via CO Enrollment Flow under CMP Enrollment Configuration and
tried to add a co_petition again. That resulted in these errors in place
of Not Implemented:

*Notice* (8): Undefined index: EnrolleeOrgIdentity
[*APP/Model/CoPetition.php*, line*319*]


*Warning* (2): array_keys() expects parameter 1 to be array, null given
[*APP/Model/AppModel.php*, line*103*]

*Warning* (2): Invalid argument supplied for foreach()
[*APP/Model/AppModel.php*, line*103*]

*Notice* (8): Undefined index: EnrolleeOrgIdentity
[*APP/Model/CoPetition.php*, line*1338*]

*Warning* (2): array_keys() expects parameter 1 to be array, null given
[*APP/Model/AppModel.php*, line*123*]

*Warning* (2): Invalid argument supplied for foreach()
[*APP/Model/AppModel.php*, line*123*]



It looks like the rows are generated anyway though. That was enough to get
me to the point I could work on that ticket, but we should create a ticket
for those errors if there isn't one already. Benn, does this look familiar
to you?

Marie





Archive powered by MHonArc 2.6.16.

Top of Page