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) »
  • Problems with crashing(?) civicontribute and civievent payments.
Pages: [1]

Author Topic: Problems with crashing(?) civicontribute and civievent payments.  (Read 1185 times)

tdilliga

  • Guest
Problems with crashing(?) civicontribute and civievent payments.
April 27, 2008, 08:39:58 pm
We updated to drupal 2.0 and for the first time attempted to set up a google checkout payment processor for a contribution page (this is the first contribution that we've set up). Things work OK, until you click on the 'Pay with google checkout' button is pressed and the corresponding POST (to https://<blah>/civicrm/contribute/transact) happens. Then the web browser just sits waiting for a reply for about a minute and you end up with a blank screen. I've tried doing this on the demo server, but when the POST happens, an error message from google is displayed (which I presume is because the demo server doesn't have a valid certificate chain).

When you look at the apache logs the POST has failed with an error 500 (but no mention of this made it back to the browser). There are no outbound packets going to any google domain (or anywhere else for that matter). There *is* a pending payment that gets registered to the user, so it looks like something does happen before php / apache / whatever decides to die.

I noticed that there were some people that had similar errors with paypal, but we're using PHP 5.2.5 and drupal 2.0, which people seem to have reported as working OK.

Any thoughts? Or a pointer to the chain of php scripts that get invoked by that POST so I can debug this further?

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: Problems with crashing(?) civicontribute and civievent payments.
April 28, 2008, 02:30:34 am

The code eventually makes it way to: CRM/Core/Payment/Google.php, function doTransferCheckout

You might want to add a few debug statements there and see whas happening. Please post back with your result

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

tdilliga

  • Guest
Re: Problems with crashing(?) civicontribute and civievent payments.
April 29, 2008, 01:31:31 am
Not the answer, but more of a status update. The issue is when an attempt is made to connect to the google server (via Net/Socket.php) via the fsockopen call everything sort of folds up and dies (My echo before the fsockopen call is OK, but the echo after never shows up). Since fsockopen is a php builtin, my (current) guess is that something is wonky with the PHP install (time to flog the sysadmin ;D). . So I'll look into this more tomorrow. (The offending line is ./sites/all/modules/civicrm/packages/Net/Socket.php line 139).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Problems with crashing(?) civicontribute and civievent payments.

This forum was archived on 2017-11-26.