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) »
  • PHP payment error on contribute form
Pages: [1]

Author Topic: PHP payment error on contribute form  (Read 2162 times)

cyberstyle

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.6.10
  • CMS version: Wordpress 4.4
PHP payment error on contribute form
January 06, 2009, 01:32:17 pm
Hi all,

first time poster, long time viewer ...

I am implementing a CRM for an association of teachers in schools for the disabled in Queensland, Australia,

www.aseaq.org.au

Operating system details:

Joomla 1.5.8
Civic CRM 2.1.4
PHP 5.2.6
MySQL 5.0.67

I have created a contributions page that works well in test mode within the administrator backend, but when I attempt to link the page via a front end menu link I cannot find the ID parameter to set up the page link.

I fashioned an external url link to the contributions page but then I get the following error message:

Quote
Warning: CRM_Core_Payment::require_once(CRM/Contribute/.php) [crm-core-payment.require-once]: failed to open stream: No such file or directory in /home/aseaqor/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment.php on line 73

Fatal error: CRM_Core_Payment::require_once() [function.require]: Failed opening required 'CRM/Contribute/.php' (include_path='.:/home/aseaqor/public_html/administrator/components/com_civicrm/civicrm:/home/aseaqor/public_html/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/aseaqor/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment.php on line 73

I have tried all different payment processor options, checked that all of the files came over in the FTP transfer, crossed my fingers etc etc.

I have looked at line 73 in the payment.php file but don;t really understand enough about PHP to track down the error. Hence my appeal to anyone else who may have had this problem, and has some helpful advice.

Any help much appreciated.



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: PHP payment error on contribute form
January 06, 2009, 02:09:19 pm

how did u get the ID for the external url link? Can u jump on IRC (http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true). will be easier to track and fix interactively

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

cyberstyle

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.6.10
  • CMS version: Wordpress 4.4
Re: PHP payment error on contribute form
January 06, 2009, 06:18:53 pm
Hi donald
thanks for your assistance ... can't jump onto IRC in my present environment but will jump on tonight and hopefully catch you in the right timezone.

On further investigation of the error, the include filepath for the .php file looks very lengthy, and seems to have been duplicated.

(include_path='.:/home/aseaqor/public_html/administrator/components/com_civicrm/civicrm:/home/aseaqor/public_html/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/aseaqor/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment.php on line 73

or maybe I'm just grasping at straws.


Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: PHP payment error on contribute form
January 06, 2009, 06:58:46 pm
Isn't there an option 'live page' at this screen - /index.php?q=civicrm/admin/contribute&reset=1 - ie. the manage contribution pages screen?
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

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: PHP payment error on contribute form
August 26, 2009, 03:37:23 pm
I ran into this (or very similar) problem today as of 2.2.8.   They symptom was a blank page and the following error in the server error log:

Code: [Select]
PHP Fatal error:  CRM_Core_Payment::require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'CRM/Contribute/.php'

 We hav no credit card processors configured (do all trasactions by Pay Later), but yet the "execute real time monetary transactions" box was checked in the contributution form configuration screens.  So Civicrm is trying to load a payment processor class but can't, cause none is specified.  That's why the link says

Code: [Select]
CRM_Core_Payment::require_once(CRM/Contribute/.php

See how there is a .php extension but no filename?  that's probably cause there are no configured processors.

Note: This may be a minor reportable bug.  If you are reading this and feel it is so, send me a PM and I'll post it in JIRA as a bug.
« Last Edit: August 26, 2009, 03:41:15 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: PHP payment error on contribute form
August 26, 2009, 05:40:03 pm

can you please file an issue. A patch for this would be great (it should be a fairly easy patch). We'll fix this in a future release

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • PHP payment error on contribute form

This forum was archived on 2017-11-26.