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) »
  • Import Error "unknown error [object Object]
Pages: [1]

Author Topic: Import Error "unknown error [object Object]  (Read 2885 times)

seanmart

  • Guest
Import Error "unknown error [object Object]
August 11, 2007, 04:09:06 pm
on Civicrm 1.7.9379

Stage 4 of import retuns the following error.
"undefined" shows under % status bar then
30-60 seconds later..
"we have encounted an unknown error [object Object]"

Then hangs with 0 % showing competed..

I re-ran the import a few times with the same error..
yet..each time 60-90 new  records seem to import okay..

importing about 2700 records
all seems good with formatting UTF-8

error logs are below -- thanks in advance for anyone who can steer me in the right direction to get this fixed.

PHP Warning: main(CRM/Core/Config.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /modules/civicrm/extern/ajax.php on line 7

PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'CRM/Core/Config.php' (include_path='.:modules/civicrm/:modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /modules/civicrm/extern/ajax.php on line 7

PHP Warning: main(CRM/Core/Config.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /modules/civicrm/js/lang/calendar-lang.php on line 4

PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'CRM/Core/Config.php' (include_path='.:modules/civicrm/:modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /modules/civicrm/js/lang/calendar-lang.php on line 4
« Last Edit: August 11, 2007, 08:28:17 pm by seanmart »

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: Import Error "unknown error [object Object]
August 11, 2007, 11:11:29 pm

Can u try to run a 200 line sanitized section of your file on http://demo.civicrm.org/drupal/ and see if u can reproduce the error

Do other ajax parts work on your install (like search autofill or view tabs or advanced search)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

seanmart

  • Guest
Re: Import Error "unknown error [object Object]
August 12, 2007, 07:10:34 am

200 line import to drupal demo worked fine

On my system..
Advanced Search seems to work fine
All Tabs appear to work okay
Search boxes are not autofilling, but no error comes up.
Clicking on the ? help baloons return the same ajax error:

Warning: main(CRM/Core/Config.php) [function.main]: failed to open stream: No such file or directory in ../modules/civicrm/extern/ajax.php on line 7

Fatal error: main() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:modules/civicrm/:modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in ../modules/civicrm/extern/ajax.php on line 7

Andy Laken

  • I’m new here
  • *
  • Posts: 27
  • Karma: 3
Re: Import Error "unknown error [object Object]
September 20, 2007, 03:37:34 pm
We are having the identical error at import time:

after a few minutes: "we have encounted an unknown error [object Object]"

We seem to be able to import about 500 records at a time before the error occurs. Have been working around it by splitting input files into 500-record chunks, but this is very painful, as each import comprises several files (contacts, households, organizations, donations, memberships, and more) and we have several separate organizations' data to import.

Other ajax features seem to work fine.

Andy Laken
Engineer | CivicActions, LLC
e: andy.laken@civicactions.com | skype: mcantsin | http://twitter.com/alaken

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: Import Error "unknown error [object Object]
September 21, 2007, 01:21:40 am

Andy:

Would be great if you could trace the code path and help us debug (and hopefully fix the below error)

That errror message is not part of civicrm code (or any include packaghe). i just did a grep of the source code and did not find it. a yahoo search did not reveal a lot either.

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Andy Laken

  • I’m new here
  • *
  • Posts: 27
  • Karma: 3
Re: Import Error "unknown error [object Object]
September 21, 2007, 11:48:59 am
lobo:

I'd like to help, but you're going to have to help me first - how do I do such a code trace?
Andy Laken
Engineer | CivicActions, LLC
e: andy.laken@civicactions.com | skype: mcantsin | http://twitter.com/alaken

Andy Laken

  • I’m new here
  • *
  • Posts: 27
  • Karma: 3
Re: Import Error "unknown error [object Object]
September 21, 2007, 12:00:42 pm
Wait! - using Krugle I was able to find this error message in the CiviCRM codebase:

http://krugle.com/kse/files?query=%22We%20encountered%20an%20unknown%20error%22

It's in templates/CRM/Import/Form/Preview.tpl - appears on lines 11 and 19. I've verified this in our running codebase.

What next?
Andy Laken
Engineer | CivicActions, LLC
e: andy.laken@civicactions.com | skype: mcantsin | http://twitter.com/alaken

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: Import Error "unknown error [object Object]
September 21, 2007, 12:50:50 pm

I searched for the string you posted on the forum (we have encounted an unknown error) and hence did not find it. Sorry about that.

The next step is to print the object and more information on the error. I dont know enough about javascript on how to dump the object, but you should be able to find it in a javascript manual. That will give us more clues

based on your description of the error, if i had to guess, php/apache is sending a timeout page which is unexpected and hene the message.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

squideshi

  • Guest
Re: Import Error "unknown error [object Object]
January 21, 2008, 02:20:31 pm
Please see also the following newer topic, which sounds like it may be related to this issue:

http://forum.civicrm.org/index.php/topic,2045.0.html

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

This forum was archived on 2017-11-26.