CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Error entering profile data "Strict rule for Organization does not exist"
Pages: [1]

Author Topic: Error entering profile data "Strict rule for Organization does not exist"  (Read 1020 times)

Durruti

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 1
    • The Kindling Trust
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.77
  • PHP version: 5.2.17
Error entering profile data "Strict rule for Organization does not exist"
February 12, 2010, 09:30:07 am
Calling all civicrmophiles!

I've spent the day on this and going a wee bit crazy ???

I have a database of users without user accounts. I am sending them a profile link via civimail, which will show them the data we have on them and allow them to change it. I have selected that users should be asked to create a user account when they do so and be given a recaptcha field.

Everything works brilliantly in terms of the token fields in the email and the data which is displayed to the anonymous user, except that they are not asked to register as a drupal user and don't see any recaptcha box. More seriously when trying to save they get the following error;

"Sorry. A non-recoverable error has occurred.  Strict rule for Organization does not exist"

I am also running loginTobbogan with the option to register without email confirmation if that could be anything to do with it.

May all your valentines come at once!

Durruti

http://feedingmanchester.org.uk

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error entering profile data "Strict rule for Organization does not exist"
February 12, 2010, 02:14:59 pm
Sounds like the profile you're using might contain fields belonging to Contact -> Organization. This is not a valid configuration for profiles connected to user registration (users are 'individuals' in our model). I'm actually surprised you're not getting a fatal error when trying to access the profile form at the beginning.
Protect your investment in CiviCRM by  becoming a Member!

Durruti

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 1
    • The Kindling Trust
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.77
  • PHP version: 5.2.17
So to allow users 'individuals' to edit our information 'organisation'?
February 12, 2010, 03:37:02 pm
Thanks for the reply Dave.

That makes sense as a system, but in a situation of directory of organisations what's my best solution? Do I need to create a user for each organisation and then create a relationship between the two? It sounds a bit convoluted... I was loving being able to send an email out and from the email address CiviCRM displaying all the info we had on the organisation to the anonymous user. Well I can still do that but what's the best way of giving users the ability to edit those fields.

Many thanks for your time,
Durruti
http://feedingmanchester.org.uk

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error entering profile data "Strict rule for Organization does not exist"
February 12, 2010, 04:26:13 pm
This use case is not really well supported in Civi yet. The part that's in place is the ability to create a 'permissioned relationship' between individuals (who can access / update info for their org), and their organization. This connection happens automatically when someone donates or signs up for membership 'on behalf of an organization'. But you can also add the permissioning property for any relationship when you create it OR when editing an existing relationship.

[ x ]  'Jane Smith' can view and update information for 'Conservation Corp '

When this permission is enabled, Jane Smith (for example) can login and go to her Contact Dashboard, and see a link to Edit basic organization fields for Conservation Corp. One cavaeat is that the organization fields exposed for editing in this flow are hard-coded. At some point this form should use a Profile so admin's can assign the fields they want. (Would be great for someone to step up and submit a patch or sponsor this improvement).

If this UI  / flow doesn't meet your needs - your other option is to use hooks to integrate the related organization fields into an Individual Profile. Not sure how hard this would be - but there's some 'models' for doing this with related individual records (parent => children / students) - in Lobo's SFSchool module.
Protect your investment in CiviCRM by  becoming a Member!

Durruti

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 1
    • The Kindling Trust
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.77
  • PHP version: 5.2.17
Re: Error entering profile data "Strict rule for Organization does not exist"
February 12, 2010, 04:53:07 pm
Hi Dave, many thanks for your reply.

When you say "One caveat is that the organization fields exposed for editing in this flow are hard-coded" is this something that I could change by edit. I know it's a hack rather than a solution but we've come pretty far down the line and are currently all voluntary (with no budget), so it's down to me and my minimal php/mysql skills.

Thanks again,
Durruti
http://feedingmanchester.org.uk

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Error entering profile data "Strict rule for Organization does not exist"

This forum was archived on 2017-11-26.