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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "We encountered an unknown error: [object Object]" on "Import" feature
Pages: [1]

Author Topic: "We encountered an unknown error: [object Object]" on "Import" feature  (Read 4409 times)

squideshi

  • Guest
"We encountered an unknown error: [object Object]" on "Import" feature
January 19, 2008, 05:00:07 pm
I am seeing the following error on Step 3 of the the CiviCRM "Import" feature within the "Administer CiviCRM" menu:

We encountered an unknown error: [object Object]

This error usually occurs about after 50-150 records appear to have successfully imported. The error is displayed directly below the progress bar, which freezes after this error is displayed.

The Apache error log shows the following:

[Sat Jan 19 16:40:03 2008] [error] [client 67.176.xxx.xxx] Premature end of script headers: /home/sldtld/public_html/index.php

(NOTE: I have replaced the last two octets of the actual IP address shown with xxx.xxx here.)

I am fairly sure this is not a timeout or memory issue. This problem seems to occur no matter what the size of the file imported or number of records. max_execution_time is set at 60, and memory_limit is set at 64M. Geocoding is off, and I am not checking for duplicates.

I am using CiviCRM 1.9.12432 with Drupal 5.3, MySQL 5.0.45, and PHP 5.2.4. The site is hosted on a shared server at CHIhost.com. PHP is running in CGI mode, and the web server is Apache 1.3.39.

I have searched the documentation, forums, mailing list, and asked in #civicrm; however, I have not found a solution to this problem. Does anyone have any ideas what might be causing this problem?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: "We encountered an unknown error: [object Object]" on "Import" feature
January 20, 2008, 02:14:21 pm
Does anything in this thread help (not a clear resolution - but maybe some clues?):

http://forum.civicrm.org/index.php/topic,877.0.html
Protect your investment in CiviCRM by  becoming a Member!

squideshi

  • Guest
Re: "We encountered an unknown error: [object Object]" on "Import" feature
January 21, 2008, 02:11:32 pm
That thread tells me that /templates/CRM/Import/Form/Preview.tpl is the source of the first error message; and in that thread, Donald Lobo suggests that the next step is to "print the object and more information on the error." Unfortunately, I'm not sure what this means or exactly how to do it.

Its looks to me like the code in Preview.tpl is JavaScript and uses the ProgressBar widget from the Dojo Toolkit. Because this is JavaScript, I thought that this might possibly be a browser compatibility problem; so I tested with a different browser, but I encountered the same problem. I have now tested with Mozilla Firefox 2.0.0.11 and Internet Explorer 7.0.5730.11, and both browsers produce the same result.

I think this rules out browser compatibility; so I now suspect that the problem must be either (1) with the code in Preview.tpl, (2) with the code using/calling/including Preview.tpl, or (3) with the ProgressBar widget itself. I don't quite yet understand how/when/why Preview.tpl is used, so I am having difficulty.

The following code appears on lines 11 and 20 of Preview.tpl:

prog.innerHTML = "<p>We encountered an unknown error: " + data + "</p>";

As far as I can see, these are the only places where the string "We encountered an unknown error" occurs anywhere in the file. In order to debug, I used an JavaScript alert after each of those lines and discovered that it is line 20 that appears to be the source of this error.

Then, to display the contents of the "data" object at this point, I used "alert(data.toSource());" which returned the following:

({message:"XMLHttpTransport Error: 404 Not Found", type:"unknown", number:0})

From initial Google searches, it appears that this error may be generated by the Dojo Toolkit; so this leads me to believe that the problem is either the ProgressBar widget, or the way it is being used.

If anyone could provide further assistance, it would be greatly appreciated.
« Last Edit: January 21, 2008, 03:52:33 pm by squideshi »

gadzuk

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
Re: "We encountered an unknown error: [object Object]" on "Import" feature
January 28, 2008, 06:40:21 pm
I'm getting the same error on Preview (step 3 of 4). 

Importing 900 of 945 records, 4 seconds remaining.  Progress bar shows 95%

Hosting Service: Site5
CMS:  Drupal 5.6
PHP Memory: 64 MB
MySQL 4.1.22
PHP 5.2.1
Server:  Apache/1.3.39 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.30 OpenSSL/0.9.7a PHP-CGI/0.1b

All records appear to have been imported despite the message.
« Last Edit: January 28, 2008, 06:54:43 pm by gadzuk »

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: "We encountered an unknown error: [object Object]" on "Import" feature
May 30, 2008, 12:28:34 pm
Having the same issue on a system that previously was able to import fine.

We are only importing one column for this import file. (email address)
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "We encountered an unknown error: [object Object]" on "Import" feature

This forum was archived on 2017-11-26.