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 Import (Moderator: Yashodha Chaku) »
  • Contribution Import Problem
Pages: [1]

Author Topic: Contribution Import Problem  (Read 1204 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Contribution Import Problem
July 13, 2011, 05:30:14 am
Running a contribution import in a D6/C3.4.4 site we got:

Code: [Select]
*Fatal error*: require_once() [function.require
<https://site.org/civicrm/contribute/function.require>]: Failed
opening required 'api/v3/Contribute.php'

so I applied the patch here http://issues.civicrm.org/jira/browse/CRM-8398 and now when we run it, the outputted CSV file has:

Code: [Select]
API (contribution,format_create) does not exist (join the API team and implement civicrm_contribution_format_create
Does this make sense?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Contribution Import Problem
July 13, 2011, 06:03:05 am
That fix is a hack- any idea where the api call is? it just needs the param 'version' => 2 added to the API call
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Contribution Import Problem
July 13, 2011, 07:10:22 am
Kurund's fix is a hack? Says in the issue its' going into production next release.

Anyhow I don't know where it is, no. :(
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Contribution Import Problem
July 13, 2011, 01:15:40 pm
Yeah - it's not as bad a hack as the first one proposed but it shouldn't go in. It's building on a hack that we kind of backed out of.

The problem is the api should be calling v2 as it hasn't been reviewed for v3 but the version isn't set
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Contribution Import Problem
July 14, 2011, 03:28:02 pm
I just committed 35372 on

http://svn.civicrm.org/civicrm/branches/v3.4/CRM/Contribute/Import/Parser/Contribution.php

Can you test it?

Note that format_create function is unlikely to be migrated to v3 as it doesn't really fit with what we are trying to do with the API from what I can see
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Contribution Import Problem
July 17, 2011, 06:52:24 am
I get

Fatal error: Class 'CRM_Contribute_Import_Parser' not found in /home/site/www/www/sites/all/modules/civicrm/CRM/Contribute/Import/Parser.php on line 43

I tried also with a clean 3.4.4 codebase (i.e. no patches) but the result is the same. Is there a patch I am missing?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Contribution Import Problem
July 17, 2011, 06:55:23 am
I don't get that - it's saying the class can't find itself?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Contribution Import Problem
July 17, 2011, 07:07:57 am
I just browse to http://site.org/civicrm/contribute/import?reset=1 and I see


Fatal error: Class 'CRM_Contribute_Import_Parser' not found in /home/wflc/www/www/sites/all/modules/civicrm/CRM/Contribute/Import/Parser.php on line 43


Seems it shouldn't yet be at the parser stage...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Contribution Import Problem

This forum was archived on 2017-11-26.