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 CiviCase (Moderator: Dave Greenberg) »
  • DataTables warning (table id = 'activities-selector'): Added data (size 8) does
Pages: [1]

Author Topic: DataTables warning (table id = 'activities-selector'): Added data (size 8) does  (Read 10030 times)

darkchild

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 2
  • “…more than kisses, letters mingle souls…”- John D
  • CiviCRM version: 4.0.1
  • CMS version: joomla & drupal
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
DataTables warning (table id = 'activities-selector'): Added data (size 8) does
February 24, 2011, 03:25:32 am
Please Hlp. Have setup civicase and each case has custom activity fields. Whenever I try to add a case it shown the following error
Code: [Select]
DataTables warning (table id = 'activities-selector'): Added data (size 8) does not match known number of columns (7)....

I guess Im missing a data column but not sure where to take it from here....

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: DataTables warning (table id = 'activities-selector'): Added data (size 8) does
February 24, 2011, 09:58:53 am
Might be related to the custom fields. As a test can you disable the custom fields one by one and see if the problem goes away?

darkchild

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 2
  • “…more than kisses, letters mingle souls…”- John D
  • CiviCRM version: 4.0.1
  • CMS version: joomla & drupal
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: DataTables warning (table id = 'activities-selector'): Added data (size 8) does
February 28, 2011, 10:40:41 am
Quote from: demeritcowboy on February 24, 2011, 09:58:53 am
Might be related to the custom fields. As a test can you disable the custom fields one by one and see if the problem goes away?
Tried disabling all custom fields for cases. Still having same error message.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: DataTables warning (table id = 'activities-selector'): Added data (size 8) does
February 28, 2011, 12:23:53 pm
Are you able to use firebug to see the variable values involved? Sorry I'm just guessing since I haven't seen that error anywhere but it's obviously jquery-related and related to the number of columns in the table.

darkchild

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 2
  • “…more than kisses, letters mingle souls…”- John D
  • CiviCRM version: 4.0.1
  • CMS version: joomla & drupal
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: DataTables warning (table id = 'activities-selector'): Added data (size 8) does
February 28, 2011, 03:00:01 pm
Here is what via session debug. Dont know if its helpful....
Code: [Select]
Array
(
    [ufID] => 62
    [userID] => 1
    [ufUniqID] =>
    [CRM_Utils_Recent] => Array
        (
            [0] => Array
                (
                    [title] => Mr. Tom Jones - Drug Abuse
                    [url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/view/case&action=view&reset=1&id=56&cid=2&context=home
                    [id] => 56
                    [type] => Case
                    [contact_id] => 2
                    [contactName] =>
                    [subtype] =>
                    [isDeleted] =>
                    [image_url] =>
                    [edit_url] =>
                    [delete_url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/view/case&action=delete&reset=1&id=56&cid=2&context=home
                )

            [1] => Array
                (
                    [title] => Test - Mr. Tom Jones (Open Case)
                    [url] => administrator/index2.php?option=com_civicrm&task=civicrm/case/activity/view&reset=1&aid=59&cid=2&caseID=56&context=home
                    [id] => 59
                    [type] => Activity
                    [contact_id] => 2
                    [contactName] => Mr. Tom Jones
                    [subtype] =>
                    [isDeleted] =>
                    [image_url] =>
                    [edit_url] =>
                    [delete_url] =>
                )

            [2] => Array
                (
                    [title] => Mr. Tom Jones
                    [url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/view&reset=1&cid=2
                    [id] => 2
                    [type] => Individual
                    [contact_id] => 2
                    [contactName] => Mr. Tom Jones
                    [subtype] => Youth
                    [isDeleted] =>
                    [image_url] =>
                    [edit_url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/add&reset=1&action=update&cid=2
                    [delete_url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/view/delete&reset=1&delete=1&cid=2
                )

            [3] => Array
                (
                    [title] => Mr. Tom Jones - Transition
                    [url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/view/case&action=view&reset=1&id=55&cid=2&context=home
                    [id] => 55
                    [type] => Case
                    [contact_id] => 2
                    [contactName] =>
                    [subtype] =>
                    [isDeleted] =>
                    [image_url] =>
                    [edit_url] =>
                    [delete_url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/view/case&action=delete&reset=1&id=55&cid=2&context=home
                )

            [4] => Array
                (
                    [title] => tre - Mr. Tom Jones (Open Case)
                    [url] => administrator/index2.php?option=com_civicrm&task=civicrm/case/activity/view&reset=1&aid=58&cid=2&caseID=55&context=home
                    [id] => 58
                    [type] => Activity
                    [contact_id] => 2
                    [contactName] => Mr. Tom Jones
                    [subtype] =>
                    [isDeleted] =>
                    [image_url] =>
                    [edit_url] =>
                    [delete_url] =>
                )

            [5] => Array
                (
                    [title] => Mr. Admin Admin
                    [url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/view&reset=1&cid=1
                    [id] => 1
                    [type] => Individual
                    [contact_id] => 1
                    [contactName] => Mr. Admin Admin
                    [subtype] => Staff
                    [isDeleted] =>
                    [image_url] =>
                    [edit_url] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/add&reset=1&action=update&cid=1
                    [delete_url] =>
                )

        )

    [defaultWysiwygEditor] => 0
    [qfPrivateKey] => 479e03696b1071ca2cc04db0ab86813a091533ea08afe0780b8164d473859bc2
    [qfSessionID] => 7aa6b48f63bcb575e37aaceb5a193403
    [view.id] => 2
    [userContext] => Array
        (
            [0] => administrator/index2.php?option=com_civicrm&task=civicrm/contact/view&reset=1&force=1&cid=2&selectedChild=case
        )

    [CRM_Contact_Page_View_Summary] => Array
        (
            [cid] => 2
            [context] => search
            [action] => 16
            [contactType] => Individual
            [contactSubtype] => Youth
            [selectedChild] => summary
        )

    [CRM_Case_Page_Tab] => Array
        (
            [action] => 4
            [cid] => 2
            [id] => 56
            [columnHeaders] => Array
                (
                    [0] => Array
                        (
                            [name] => Type
                            [sort] => activity_type
                            [direction] => 4
                        )

                    [1] => Array
                        (
                            [name] => Subject
                            [sort] => subject
                            [direction] => 4
                        )

                    [2] => Array
                        (
                            [name] => Added By
                            [sort] => source_contact_name
                            [direction] => 4
                        )

                    [3] => Array
                        (
                            [name] => With
                        )

                    [4] => Array
                        (
                            [name] => Assigned
                        )

                    [5] => Array
                        (
                            [name] => Date
                            [sort] => activity_date_time
                            [direction] => 4
                        )

                    [6] => Array
                        (
                            [name] => Status
                            [sort] => status_id
                            [direction] => 4
                        )

                    [7] => Array
                        (
                            [desc] => Actions
                        )

                )

            [rows] => Array
                (
                )

            [rowCount] => 0
            [rowsEmpty] => 1
            [qill] =>
            [summary] =>
            [crmPID] => 0
            [crmSID] => 1
            [crmSortDirection] =>
            [crmSortOrder] =>
            [crmRowCount] => 50
        )

    [CRM_Case_Form_CaseView_d2bd061ef8f5eea11f92fe6f03c63ff1_432] => Array
        (
            [qfKey] => d2bd061ef8f5eea11f92fe6f03c63ff1_432
            [action] => 4
            [id] => 56
            [cid] => 2
            [relatedCases] =>
        )

)


Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: DataTables warning (table id = 'activities-selector'): Added data (size 8) does
February 28, 2011, 08:29:21 pm
Hi darkchild,

Not replicating for me. But I am quite sure that this warning can occur only when we are using jquery datatable and mismatching  number of <TH > with number of <TD>. You can fix this just by modifying template file also. I am not getting where this issue will occur ::).

Rajan

darkchild

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 2
  • “…more than kisses, letters mingle souls…”- John D
  • CiviCRM version: 4.0.1
  • CMS version: joomla & drupal
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: DataTables warning (table id = 'activities-selector'): Added data (size 8) does
March 01, 2011, 11:16:42 am
Thanks Ryan. It worked. Thanks to demeritcowboy as well for your help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • DataTables warning (table id = 'activities-selector'): Added data (size 8) does

This forum was archived on 2017-11-26.