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 Drupal Modules »
  • Drupal Webform Integration »
  • Create New Contact is Hardcoding id 5555
Pages: [1]

Author Topic: Create New Contact is Hardcoding id 5555  (Read 855 times)

normk

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.45
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3.x
Create New Contact is Hardcoding id 5555
June 19, 2014, 12:01:21 am
I had Civi Webform integration working perfectly a few weeks ago including editing existings contacts and adding new ones.  But my admin upgraded Civi to 4.4.5 and now Add New Contact is not working right.  Instead of creating a new contact, it is editing contact_id 5555 consistently and in my hook civicrm_post function, it's calling with with $op = edit instead of $op = create for the Individual.  I was also seeing an error that I had not seen before: Warning: Creating default object from empty value in webform_civicrm_webform_submission_load()
(line 238 of of /home/fjmcprod/public_html/sites/all/modules/webform_civicrm/webform_civicrm.module

Do you know if an upgrade will most likely solve this problem or if I'm doing something wrong in my webform configuration?  I checked everything in the webform and civi tabs for something out of whack but cannot find anything unusual.

I upgraded Webform CiviCRM Integration module to 4.6 per recommendations on https://www.drupal.org/project/webform_civicrm.  But then I see that I have to upgrade webform to 4.x which is not in stable release but is in rc3.  We have lots of other webforms that are used without Civi so I am hoping nothing breaks!  Any clues on how smoothly the webform module upgrade will go?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Create New Contact is Hardcoding id 5555
June 19, 2014, 12:51:10 am
It's true that when upgrading to CIviCRM 4.4 you also need to use webform_civicrm 4 and webform 4 - please make sure you are on the latest versions of all and then see if your problem persists.
Webform 4 is technically still an RC but is nevertheless considered stable enough for production sites. Don't ask me why... that's Drupal for ya.
Try asking your question on the new CiviCRM help site.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Create New Contact is Hardcoding id 5555
June 19, 2014, 12:55:49 am
As to the smoothness of upgrade - one word of warning... if you are using the webform_conditional module, you'll need to disable it as that feature is now in webform core. Review any webforms that were using conditionals to ensure they still work as expected after the upgrade.
Try asking your question on the new CiviCRM help site.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Create New Contact is Hardcoding id 5555
June 19, 2014, 06:46:49 am
Also note that if you're using server globals ($_GET, $_POST) via webform tokens, those tokens were removed in Webform 4.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

sibro

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Create New Contact is Hardcoding id 5555
June 19, 2014, 02:38:47 pm
Coleman, I am the admin for the site. We upgraded to 4.4.5 in early May and everything seemed to be fine. We did some  upgrades to Webform modules toward the end of May, it still seemed to be working fine. Something happened and all our record creations in Civi contacts table updated record 55555. I spent the last 5 hours updating webform or more appropriately uninstalling release 3.   Finally get all the check marks off, uninstalled the modules, but they are still in the module directory, and started  the reinstall. I get a message webform is already installed.

With 10 modules dependent on webform this upgrade is extremely significant.  I know you have good reasons to break compatibility to prior versions but this upgrade is a killer. When I upgraded to 4.4 I noticed the webform upgrade. Since 4.4 had been out a year and webform 4 was a RC. I did not pay attention.

We have been in production 6 weeks and hit this problem creating new contacts.  Is there any way we can deal with the 5555 issue and plan an orderly upgrade to webform 4
Bruce

sibro

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Create New Contact is Hardcoding id 5555
June 19, 2014, 04:59:01 pm
To continue with the saga, I found the item which said to just delete the modules. I deleted all the modules on test and began to reload starting with the version 4 webform. Started going after the 10 additional modules we are currently using. The first 2 I touched did not have a version 4 release. Reading through the issues each looked like it needed extensive patches to deal with the new token format.

Conclusion is we need to figure out the new insert into contact 5555 issue.
Bruce

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Create New Contact is Hardcoding id 5555
June 20, 2014, 09:28:48 am
@sibro, I have tried to make the dependency requirements extremely clear, by listing them on the project page, in blog articles, in the module's .info file, and even going so far as to add an extra requirements check which shows up on the drupal status page.

To reiterate, if you upgrade CiviCRM to 4.4.x then you must also upgrade Webform and Webform-CiviCRM to their respective 4.x branches. Failure to do so will result in numerous problems of which the one you listed is only the beginning. Your issue is in my opinion not a bug but the result of a well-documented incompatibility.

I'm sorry but I cannot offer support for your setup because it goes against all my recommendations and warnings.
Try asking your question on the new CiviCRM help site.

sibro

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Create New Contact is Hardcoding id 5555
June 20, 2014, 01:55:22 pm
Coleman, I appreciate your position on upgrading and support. I reviewed the notes prior to upgrading to 4.4.  I have about 80 modules on my site. I reviewed them and did not find any real documentation on the upgrade. I also saw the Webform document but unfortunately it did not sink in. I had reason to upgrade to the newest civi so I took the plunge on my test system and everything ran fine. A few weeks later I upgraded some additional functions. Still seemed to run fine. Installed webform to authorize.net, got it working. Unfortunately it messed up my updates and caused the issue we described in entry.

We are seeing the good and bad of open source. New function can be easily added, the bad is people build great function, for many reasons they don't maintain or upgrade the modules. Webforms is a good example. The base webform has been available at R 4 for a long time. Of the 10 additional modules I and using many have not been upgraded.     I can't get the function available in new Civi releases until either these modules are upgraded, I find other modules with equivalent function or go through a significant effort upgrading existing modules.
Bruce

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • Create New Contact is Hardcoding id 5555

This forum was archived on 2017-11-26.