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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Odd and hard to recreate type Integer Error
Pages: [1]

Author Topic: Odd and hard to recreate type Integer Error  (Read 753 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Odd and hard to recreate type Integer Error
September 10, 2009, 05:07:51 am
Using CiviCRM 2.0, some of the staff I work with is having a very odd and unpredictable error.

They will be adding a new contact, and supposedly when they get to the Zip code field and start typing the number (and sometimes other random fields) they get kicked out of adding the contact. Luckily it saves what they've entered, but it is quite an annoyance to them. I have the Civi email error module so that I get sent an email when this happens. Here is a snippet of the backtrace in the email (if I include the whole thing the forum says I have gone over the allowed text character limit):

Code: [Select]
***BACKTRACE***
**next call**
file:               /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Core/Error.php
line:               249
function:           civicrm_error_handler
args:               Array
(
   [0] => Array
       (
           [message] =>  is not of the type Integer
           [code] =>
       )

)


**next call**
file:               /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Utils/Type.php
line:               167
function:           fatal
class:              CRM_Core_Error
type:               ::
args:               Array
(
   [0] =>  is not of the type Integer
)


**next call**
file:               /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Contact/BAO/Relationship.php
line:               493
function:           escape
class:              CRM_Utils_Type
type:               ::
args:               Array
(
   [0] =>
   [1] => Integer
)


**next call**
file:               /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Contact/BAO/Relationship.php
line:               91
function:           checkDuplicateRelationship
class:              CRM_Contact_BAO_Relationship
type:               ::
args:               Array
(
   [0] => Array
       (
           [relationship_type_id] => _a_b
           [is_active] => 1
           [contact_check] => Array
               (
                   [1012] => 1
               )

       )

   [1] => 1014
   [2] => 1012
)


**next call**
file:               /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php
line:               2224
function:           create
class:              CRM_Contact_BAO_Relationship
type:               ::
args:               Array
(
   [0] => Array
       (
           [relationship_type_id] => _a_b
           [is_active] => 1
           [contact_check] => Array
               (
                   [1012] => 1
               )

       )

   [1] => Array
       (
           [contact] => 1014
       )

)


**next call**
file:               /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Contact/Form/Edit.php
line:               713
function:           makeCurrentEmployerRelationship
class:              CRM_Contact_BAO_Contact
type:               ::
args:               Array
(
   [0] => 1014
   [1] => Garnet Hill
)


**next call**
file:               /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Core/StateMachine.php
line:               166
function:           postProcess
class:              CRM_Contact_Form_Edit
type:               ->
object:             CRM_Contact_Form_Edit Object
(
   [_contactType:protected] => Individual
   [_contactSubType:protected] =>
   [_contactId] =>
   [_gid:protected] =>
   [_tid:protected] =>
   [_groupTree:protected] => Array
       (
           [11] => Array
               (
                   [id] => 11
                   [name] => Account_Information
                   [table_name] => civicrm_value_1_account_information_11
                   [title] => Account Information
                   [help_pre] =>
                   [help_post] =>
                   [collapse_display] => 0
                   [fields] => Array
                       (
                           [68] => Array
                               (
                                   [id] => 68
                                   [label] => Account Name
                                   [column_name] => account_name
                                   [data_type] => String
                                   [html_type] => Text
                                   [default_value] =>
                                   [is_required] => 1
                                   [help_post] =>
                                   [options_per_line] => 0
                                   [start_date_years] => 0
                                   [end_date_years] => 0
                                   [date_parts] => M d Y
                               )

                           [69] => Array
                               (
                                   [id] => 69
                                   [label] => Corporate/legal name
                                   [column_name] => corporate_legal_name
                                   [data_type] => String
                                   [html_type] => Text
                                   [default_value] =>
                                   [is_required] => 0
                                   [help_post] =>
   ...
args:               Array
(
)


**next call**
file:               /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php
line:               63
function:           perform
class:              CRM_Core_StateMachine
type:               ->
object:             CRM_Core_StateMachine Object
(
   [_controller:protected] => CRM_Core_Controller_Simple Object
       (
           [_title:protected] => New Contact
           [_key] => 9b402574d182af11cc7f9bfcc07881ba_8249
           [_scope:protected] => CRM_Contact_Form_Edit_9b402574d182af11cc7f9bfcc07881ba_8249
           [_stateMachine:protected] => CRM_Core_StateMachine Object
 *RECURSION*
           [_embedded:protected] =>
           [_print:protected] => 0
           [_parent:protected] =>
           [_pages] => Array
               (
                   [Edit] => CRM_Contact_Form_Edit Object
                       (
                           [_contactType:protected] => Individual
                           [_contactSubType:protected] =>
                           [_contactId] =>
                           [_gid:protected] =>
                           [_tid:protected] =>
                           [_groupTree:protected] => Array
                               (
                                   [11] => Array
                                       (
                                           [id] => 11
                                           [name] => Account_Information
                                           [table_name] => civicrm_value_1_account_information_11
                                           [title] => Account Information
                                           [help_pre] =>
                                           [help_post] =>
                                           [collapse_display] => 0
                                           [fields] => Array
                                               (
                                                   [68] => Array
                                                       (
                                                           [id] => 68
                                                           [label] => Account Name
                              ...
args:               Array
(
   [0] => CRM_Contact_Form_Edit Object
       (
           [_contactType:protected] => Individual
           [_contactSubType:protected] =>
           [_contactId] =>
           [_gid:protected] =>
           [_tid:protected] =>
           [_groupTree:protected] => Array
               (
                   [11] => Array
                       (
                           [id] => 11
                           [name] => Account_Information
                           [table_name] => civicrm_value_1_account_information_11
                           [title] => Account Information
                           [help_pre] =>
                           [help_post] =>
                           [collapse_display] => 0
                           [fields] => Array
                               (
                                   [68] => Array
                                       (
                                           [id] => 68
                                           [label] => Account Name
                                           [column_name] => account_name
                                           [data_type] => String
                                           [html_type] => Text
                                           [default_value] =>
                                           [is_required] => 1
                                           [help_post] =>
                                           [options_per_line] => 0
                                           [start_date_years] => 0
                                           [end_date_years] => 0
                                           [date_parts] => M d Y
                                       )

                                   [69] => Array
                                       (
                                           [id] => 69
                                           [label] => Corporate/legal name
                               ...


Any ideas on why this is happening? I see that it's saying it's not of type integer, but according to the staff they ARE typing numbers into the zip code field...the odd thing is it's hard to recreate and happens very intermittently. Could it be some kind of session corruption?[/code]

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Odd and hard to recreate type Integer Error

This forum was archived on 2017-11-26.