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 CiviContribute (Moderator: Donald Lobo) »
  • Failed opening required 'api/v3/Contribute.php
Pages: [1]

Author Topic: Failed opening required 'api/v3/Contribute.php  (Read 1437 times)

trimtri

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: Joomla! 1.5.23
  • PHP version: 5.2.15
Failed opening required 'api/v3/Contribute.php
July 01, 2011, 01:27:42 am
I can not import contribution because of this error:

Warning: require_once(api/v3/Contribute.php) [function.require-once]: failed to open stream: No such file or directory in /administrator/components/com_civicrm/civicrm/api/api.php on line 248

Fatal error: require_once() [function.require]: Failed opening required 'api/v3/Contribute.php' (include_path='.:/administrator/components/com_civicrm/civicrm:/home/ofmvn/public_html/btog/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /administrator/components/com_civicrm/civicrm/api/api.php on line 248

How to solve this? Thank you. I use Joomla 1.6.4.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Failed opening required 'api/v3/Contribute.php
July 01, 2011, 01:37:22 am
The file seems to be Contribution, not Contribute

Could you enable debug and calltrack and publish the complete error message?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

trimtri

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: Joomla! 1.5.23
  • PHP version: 5.2.15
Re: Failed opening required 'api/v3/Contribute.php
July 02, 2011, 12:38:39 am
These are all the error warning after clicking the Import Now button, even when I have enabled the debug and calltrack.

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Failed opening required 'api/v3/Contribute.php
July 08, 2011, 03:10:15 pm
I'm using Drupal and I am getting the same error when trying to do the same thing.
« Last Edit: July 08, 2011, 03:23:08 pm by guyiac »
Guy Iaccarino
www.greenleafadvancement.com

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Failed opening required 'api/v3/Contribute.php
July 08, 2011, 03:47:12 pm
Are you on 3.4.4 or something earlier. There were a LOT of bug fixes in 3.4.3 & 3.4.4 so if you are not on one of them you should upgrade first
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

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Failed opening required 'api/v3/Contribute.php
July 08, 2011, 03:53:53 pm
I'm using CiviHosting and Hershel upgraded us to 3.4.4 on June 28th.
Guy Iaccarino
www.greenleafadvancement.com

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Failed opening required 'api/v3/Contribute.php
July 08, 2011, 04:40:37 pm
The reason for this will be that the function is trying to access a v2 function name using the v3 version of the api. Finding the civicrm_api call & setting the version to 2 should fix it.
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

pdemmers

  • I’m new here
  • *
  • Posts: 18
  • Karma: 1
  • CiviCRM version: 3.4.6
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.51a-24
  • PHP version: 5.2.6-1
Re: Failed opening required 'api/v3/Contribute.php
July 13, 2011, 04:12:00 am
Had this same issue after upgrading to 3.4.4 on Drupal.

Solved it by:
1. Copying sites/all/modules/civicrm/api/v2/Contribute.php to ../v3/Contribute.php
2. Editing the v3/Contribute.php and changing the line (there is only one!):
require_once 'api/v2/Contribution.php';
to
require_once 'api/v3/Contribution.php';

Cheers,

Piet

miko

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.77
  • PHP version: 5.2.11
Re: Failed opening required 'api/v3/Contribute.php
July 15, 2011, 06:01:04 pm
This is off topic but at least this thread has readers and no one read my question when I asked about this.  i am desperate.  I thought upgrading to CiviCRM 3.4.4 would help, but it doesn't.

I'm getting this error- Eileen or Xavier, do you have ANY idea what this could be?

"Fatal error: Call to undefined method CRM_Core_Error::fields() in /home/soncnv/webapps/v2/sites/all/modules/civicrm/api/v2/utils.v2.php on line 162"

PLEASE help if you can!

I initially had the same error as Piet after upgrading to 3.4.4, but when I applied his fix, THAT error was gone and I was returned to the same old error I've been having all week.  And remember from my other post that I actually managed to import contributions once before everything went haywire.

How would this method be undefined?

Thanks in advance!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Failed opening required 'api/v3/Contribute.php
July 15, 2011, 06:03:22 pm
Are we still talking in conjunction with the import function? If so please try this patch

http://fisheye2.atlassian.com/viewrep/CiviCRM/branches/v3.4/CRM/Contribute/Import/Parser/Contribution.php?r=35372

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Failed opening required 'api/v3/Contribute.php

This forum was archived on 2017-11-26.