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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
Pages: [1]

Author Topic: After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..  (Read 1655 times)

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
August 17, 2010, 06:29:47 am
Hi all,

I am now troubleshooting my custom code. I am running into trouble with the Kabissa signup form which presents the error below after submitting after step 1 in a 3-step process. I am presuming that the API has changed.

Any suggestions would be very welcome!

Cheers,

Tobias

Code: [Select]
Fatal error: Call to undefined method CRM_Contact_Form_Location::buildlocationblock() in /var/www/vhosts/civi.kb2.org/httpdocs/sites/all/modules/kabissa/CRM/Kabissa/Form/Signup/Signup.php on line 256
Kabissa - Space for Change in Africa http://kabissa.org

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
August 18, 2010, 05:45:45 am
Since there are lot of code changes / restructuring in CiviCRM v3.2.0, I think you will have to rewrite lot of code.

Kurund
Found this reply helpful? Support CiviCRM

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
August 19, 2010, 03:34:15 am
Thanks Kurund!

I am exploring CiviCRM 3.2.0 on my sasndbox right now and am incredibly impressed by the improvements. Congrats!

I am beginning to wonder if there might not be a "CiviCRM internal" way of handling the signup/update/locker functionality we have on Kabissa that is currently being done with custom code that goes back to a fork of Civi 1.9 and was upgraded last year to Civi 2.2. It has served us well since 2007 but has some bugs and functionality that was never completed. The contact dashboard seems to offer nearly everything we need.

What do you (and others in the community) think? Has anyone done this before? I know some of the frontend code will need to be rewritten or developed further, eg the Kabissa map of organizations (which actually works already) and org profile pages (which partially work already) and new interfaces for new things.

But first we have to get up to 3.2.0. Here's a simplified snapshot of the functionality we have now that I wonder if it can be upgraded/integrated with CiviCRM contact dashboard:  

  • users can add organizations
  • users can see list of their organizations and manage them
  • users can update their organizations
  • admins can review orgs and add them to "approved" group, send automated welcome message
  • users can invite other users to their org and give permissions
  • users can accept/reject invitations to be related to organizations

And in case anyone is wondering, we'd like to take advantage of new pontential functionality like paid membership levels, membership renewals, civicontribute, etc which currently are not set up at all on our site.

We're also brainstorming the idea of using Drupal/CiviCRM to offer a service that could be considered a "Facebook for organizations", which I wrote up a few months ago on the Kabissa issue tracker with the title "Kabissa Connections". See http://roadmap.kabissa.org/issues/154 for details.

In a nutshell, Kabissa Connections would provide functionality like:

  • users can "like" organizations and target org can accept and give permissions
  • users can "like" other users (and target user can accept)
  • orgs can "like" other organizations (and target org can accept) to create networks
  • database "dashboards" that puts a wealth of info at your fingertips about countries, thematic areas, networks, etc.
  • API to enable other likeminded websites to add value to their services by connecting with Kabissa orgs, eg. Global Giving, Maneno, Wiser Earth, etc


If you made it this far, thanks for reading!

Warm regards,

Tobias
« Last Edit: August 19, 2010, 03:39:52 am by tobiaseigen »
Kabissa - Space for Change in Africa http://kabissa.org

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
August 19, 2010, 03:57:44 am
Tobias,

As far as I remember there was some specific workflow implemented using custom code for Kabissa project, so if you still want the same flow you will have to upgrade existing code.

Kurund
Found this reply helpful? Support CiviCRM

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
August 19, 2010, 04:21:07 am
Hi Kurund!

Thanks for the quick reply. I'm not sure I will miss the custom workflow as it exists now if the same things can be be handled within CiviCRM... even if it is a more manual process. Mainly there was a feature for admins to review and approve/reject/ask for more info for new applications, and upon approval send email notifications to the user. This functionality never really worked very well anyway and developed some bugs after the upgrade last year.

The other custom functionality is that the signup form was a nifty three-step wizard, and allowed people to add organizations and user accounts simultaneously. This wizard also does not work perfectly, and as of last year's relaunch we turned off step 3 anyway. It also already has some bugs. We now require users already be signed up before they start adding any organizations. So I would not miss it - as long as we can provide another CiviCRM-internal way to let people add the required info without exposing fields that only admins should see... perhaps through a new CiviCRM profile or using the contact dashboard and CiviCRM ACL?

[Updated to add: the custom signup form also created the relationship automatically and gave the user permission to update the org profile and invite other people to be listed on the org profile page. I note that on the contact dashboard the relationships do not display unless they are created through the civicrm backend - that might be another issue altogether.]

Cheers,

Tobias
« Last Edit: August 19, 2010, 04:29:45 am by tobiaseigen »
Kabissa - Space for Change in Africa http://kabissa.org

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
August 19, 2010, 05:29:00 am
Quote
Mainly there was a feature for admins to review and approve/reject/ask for more info for new applications, and upon approval send email notifications to the user. This functionality never really worked very well anyway and developed some bugs after the upgrade last year.
I don't think this workflow is present in CiviCRM. You can achieve a bit of this functionality without custom code.

Quote
The other custom functionality is that the signup form was a nifty three-step wizard, and allowed people to add organizations and user accounts simultaneously. This wizard also does not work perfectly, and as of last year's relaunch we turned off step 3 anyway. It also already has some bugs. We now require users already be signed up before they start adding any organizations.
You can use profile with "Create CMS User" feature that will allow anonymous user to signup and create drupal user.

Quote
So I would not miss it - as long as we can provide another CiviCRM-internal way to let people add the required info without exposing fields that only admins should see... perhaps through a new CiviCRM profile or using the contact dashboard and CiviCRM ACL?
You can have ACL based on profile. So specific set of users can be given access to specific profile using ACL.

Quote
the custom signup form also created the relationship automatically and gave the user permission to update the org profile and invite other people to be listed on the org profile page. I note that on the contact dashboard the relationships do not display unless they are created through the civicrm backend - that might be another issue altogether.
You need to check the code that creates relationship.

HTh

Kurund


Found this reply helpful? Support CiviCRM

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
August 19, 2010, 07:06:11 am
Hi Kurund -

Thanks for the thoughtful reply.

1) I can live without the automated review process. In the new workflow, a user could add orgs as much as they like - but they won't be displayed publicly until they are approved manually in civicrm backend by an admin. The admin would send an email manually to the person to let them know their profile has been approved, perhaps via a template email in CiviCRM. 

2) "Create CMS User" doesn't apply to us, I think, unless people can come and fill the form and simultaneously create an organization contact and an employee contact with drupal user. 

3) OK re ACL - that's good news.

4) I just used a civicrm profile to create an organization, and it's now 'orphaned' without a relationship to an employee contact. 

Cheers,

Tobias

Many thanks,

Tobias
Kabissa - Space for Change in Africa http://kabissa.org

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..
August 19, 2010, 11:20:38 am
Quote
2) "Create CMS User" doesn't apply to us, I think, unless people can come and fill the form and simultaneously create an organization contact and an employee contact with drupal user. 

Yes, this can be done. You create a profile of type Individual. Along with other fields also add "Current Employer" field. You will also need "CMS user" enabled, so that individual can create drupal account.

Hth

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • After upgrade from 2.2.2 to 3.2.0 - undefined method CRM_Contact_Form_Location..

This forum was archived on 2017-11-26.