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) »
  • is not of the type Integer when changing email address
Pages: [1]

Author Topic: is not of the type Integer when changing email address  (Read 1465 times)

aaronfulton

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
is not of the type Integer when changing email address
February 23, 2009, 01:39:48 pm
I have CiviCRM 2.1.4 installed on Drupal 6.9 (Its and upgraded site from version 1.6 I think)

I have a contact who exists in CiviCRM and a Drupal user, however they both have different email addresses.  I try to change the email address in Drupal to match the email address in CiviCRM however I get the error message "is not of the type Integer" from CiviCRM.  Here is the back trace...

any help would be appreciated.

/home/vetlearn/public_html/waavp/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 260
/home/vetlearn/public_html/waavp/sites/all/modules/civicrm/CRM/Utils/Type.php, fatal, 260
/home/vetlearn/public_html/waavp/sites/all/modules/civicrm/CRM/Core/DAO.php, validate, 906
/home/vetlearn/public_html/waavp/sites/all/modules/civicrm/CRM/Core/DAO.php, composeQuery, 859
/home/vetlearn/public_html/waavp/sites/all/modules/civicrm/CRM/Contact/BAO/Contact/Location.php, executeQuery, 71
/home/vetlearn/public_html/waavp/sites/all/modules/civicrm/CRM/Core/BAO/UFMatch.php, getEmailDetails, 319
/home/vetlearn/public_html/waavp/sites/all/modules/civicrm/drupal/civicrm.module, updateContactEmail, 417
/home/vetlearn/public_html/waavp/modules/user/user.module, civicrm_user, 22
/home/vetlearn/public_html/waavp/modules/user/user.module, user_module_invoke, 214
/home/vetlearn/public_html/waavp/modules/user/user.pages.inc, user_save, 288
/home/vetlearn/public_html/waavp/includes/form.inc, user_profile_form_submit, 766
/home/vetlearn/public_html/waavp/includes/form.inc, form_execute_handlers, 409
/home/vetlearn/public_html/waavp/includes/form.inc, drupal_process_form, 119
/home/vetlearn/public_html/waavp/modules/user/user.pages.inc, drupal_get_form, 235
, user_edit,
/home/vetlearn/public_html/waavp/includes/menu.inc, call_user_func_array, 348
/home/vetlearn/public_html/waavp/index.php, menu_execute_active_handler, 18

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: is not of the type Integer when changing email address
February 23, 2009, 02:20:37 pm

can u apply this patch

Code: [Select]
svn diff drupal/civicrm.module
Index: drupal/civicrm.module
===================================================================
--- drupal/civicrm.module       (revision 19994)
+++ drupal/civicrm.module       (working copy)
@@ -413,6 +413,10 @@
              trim( $edit['mail'] ) != trim( $user->mail ) ) {
             require_once 'CRM/Core/BAO/UFMatch.php';
             $contactID = CRM_Core_BAO_UFMatch::getContactId( $user->uid );
+            // cant find the contactID, so lets skip
+            if ( ! $contactID ) {
+                return;
+            }
             CRM_Core_BAO_UFMatch::updateContactEmail( $contactID,
                                                       trim( $edit['mail'] ) );
         }
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • is not of the type Integer when changing email address

This forum was archived on 2017-11-26.