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) »
  • ....org/checkout/m/error?gsessionid=...
Pages: [1]

Author Topic: ....org/checkout/m/error?gsessionid=...  (Read 2849 times)

bokabu

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
    • California Creativity
....org/checkout/m/error?gsessionid=...
August 06, 2009, 10:43:15 pm
I'm having trouble integrating Google Checkout.  When I click on the checkout button, Google heads in to the weeds.  Got any clue where /checkout/m/error came from (besides Google?)

Was I supposed to put anything in Google's config...
API callback URL (Level 2 integrations only) [?]
Specify a URL for Google to notify you of new orders and changes in order state. You must provide the URL of a server running 128-bit SSLv3 or TLS. [?] ___________________________

Here's the log snippet.

Any pointers would be greatly appreciated.

- Bob

12.167.101.254 - - [06/Aug/2009:22:31:25 -0700] "GET /civicrm/contribute/transact?_qf_Confirm_display=true&qfKey=<is this sensitive?> HTTP/1.1" 200 4791 "https://www.californiacreativity.org/civicrm/contribute/transact?reset=1&action=preview&id=2" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)"

12.167.101.254 - - [06/Aug/2009:22:31:33 -0700] "POST /civicrm/contribute/transact HTTP/1.1" 302 20 "https://www.californiacreativity.org/civicrm/contribute/transact?_qf_Confirm_display=true&qfKey=<is this sensitive?>" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)"

12.167.101.254 - - [06/Aug/2009:22:31:34 -0700] "GET /checkout/m/error?gsessionid=eHw9AplWXxU HTTP/1.1" 404 1672 "https://www.californiacreativity.org/civicrm/contribute/transact?_qf_Confirm_display=true&qfKey=<is this sensitive?>" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)"

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: ....org/checkout/m/error?gsessionid=...
August 07, 2009, 04:49:46 am
Yes API Callback needs to be set. For more details check http://wiki.civicrm.org/confluence/display/CRMDOC/Google+Checkout+Configuration.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

bokabu

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
    • California Creativity
Re: ....org/checkout/m/error?gsessionid=...
August 07, 2009, 08:22:32 pm
My first problem was with the reading of http://wiki.civicrm.org/confluence/display/CRMDOC/Google+Checkout+Configuration.

I have now removed "/sell" from the tail of the Settings - Payment Processor / Site URLs, e.g. they now say...
https://sandbox.google.com/checkout
http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=<15-digits>&w=180&h=46&style=white&variant=text&loc=en_US

I did set the callback -- both XML & HTTP, and with and without "My company will only post digitally signed carts." -- to...
https://www.californiacreativity.org/sites/all/modules/civicrm/extern/googleNotify.php
I've left it at [X] digitally signed, and HTTP, and no advanced settings.

But Google never pings my server when I perform a test transaction.  I get...

Sorry. A non-recoverable error has occurred.
Invalid response code received from Google Checkout: 502
or
Invalid response code received from Google Checkout: 503

right away [I've received both, most recently, 503].  My Google Tools Integration Console shows no activity.

I remembered I could not test with my merchant account and signed out of my other window, but still got the 503.

Any other clues you could share with me would be appreciated.  Thank you,

- Bob

P.S. I tested ...googleNotify.php, which when navigated to via a browser returns nothing - but success...

12.167.101.254 - - [07/Aug/2009:19:14:57 -0700] "GET /sites/all/modules/civicrm/extern/googleNotify.php HTTP/1.1" 200 20 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)"

both when logged in as Administrator and when Anonymous. 

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: ....org/checkout/m/error?gsessionid=...
August 08, 2009, 12:05:31 am
Can you add cms/civicrm version ..etc to your profile.

Can you check your apache/php log and see if there is any clue.

What php version you using ? Do you have openssl, and curl installed/compiled with your php (check phpinfo).

Quote
I did set the callback -- both XML & HTTP, and with and without "My company will only post digitally signed carts." -- to...
https://www.californiacreativity.org/sites/all/modules/civicrm/extern/googleNotify.php
I've left it at [X] digitally signed, and HTTP, and no advanced settings.
Always keep XML (as civicrm code is level 2 integration). And also test things for non ssl for now, till you get this problem sorted out (note: you'll still have to keep https for site url settings)
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

bokabu

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
    • California Creativity
Re: ....org/checkout/m/error?gsessionid=...
August 08, 2009, 04:25:22 am
Can you add cms/civicrm version ..etc to your profile.

  Done.  Drupal 6.13, CiviCRM 2.2.7, etc.

Can you check your apache/php log and see if there is any clue.

  First I had to set it up to log ;-)  No.

What php version you using ? Do you have openssl, and curl installed/compiled with your php (check phpinfo).
  Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g,
  libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.10

Always keep XML (as civicrm code is level 2 integration).
  Done

What I think I just learned is that the sandbox is a completely different "account" -- and I do not have one.  So I tried a live contribution and got...

    Sorry. A non-recoverable error has occurred.

    php_network_getaddresses: getaddrinfo failed: Name or service not known

    Return to home page.

Error Details:

Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [ code] => 0
    [message] => php_network_getaddresses: getaddrinfo failed: Name or service not known
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="php_network_getaddresses: getaddrinfo failed: Name or service not known" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

I'm beginning to think my attempt to maintain different drupal module development sandboxes while sharing Drupal/CiviCRM contributed modules is biting me again.  It's been troublesome in the past.
1.  It unnerved me that when I tried to save "California C..." under Domain Information / Domain Name, it's gone when I look again?
2.  The domain id in that record was 2, so I truncated civicrm_domain, then let it rebuild.  I think I deleted the record before instead of truncating.  Bad!
3.  Domain Information / Domain Name now saves properly again, but...

But I still get the error.

My Apache points to a directory that is *mostly* soft links to the contributed image /var/www/drupal6/.  Only the local sites/org is really local.  In /var/www/drupal6/sites/all live the contributed modules, but /var/www/drupal6/sites/<site-name> point *back* to the local directory sites/org -- before that I was seeing problems with the contributed image finding files it needed.

Ah!  I found .../www/public_html/sites/org/files/civicrm/upload/CiviCRM.log , which contains a traceback...

Code: [Select]
Aug 08 04:08:40  [info] $Fatal Error Details = Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [ code] => 0
    [message] => php_network_getaddresses: getaddrinfo failed: Name or service not known
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="php_network_getaddresses: getaddrinfo failed: Name or service not known" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)


Aug 08 04:08:40  [info] $backTrace = /var/www/drupal6/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 192
, handle,
/var/www/drupal6/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 912
/var/www/drupal6/sites/all/modules/civicrm/packages/PEAR.php, PEAR_Error, 576
/var/www/drupal6/sites/all/modules/civicrm/packages/Net/Socket.php, raiseError, 143
/var/www/drupal6/sites/all/modules/civicrm/packages/HTTP/Request.php, connect, 721
/var/www/drupal6/sites/all/modules/civicrm/CRM/Core/Payment/Google.php, sendRequest, 165
/var/www/drupal6/sites/all/modules/civicrm/CRM/Contribute/Payment/Google.php, doTransferCheckout, 87
/var/www/drupal6/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution/Utils.php, doTransferCheckout, 130
/var/www/drupal6/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution/Confirm.php, processConfirm, 505
/var/www/drupal6/sites/all/modules/civicrm/CRM/Core/Form.php, postProcess, 247
/var/www/drupal6/sites/all/modules/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/var/www/drupal6/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/var/www/drupal6/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/var/www/drupal6/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/var/www/drupal6/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 245
/var/www/drupal6/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 205
/var/www/drupal6/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 342
, civicrm_invoke,
/var/www/drupal6/includes/menu.inc, call_user_func_array, 348
/var/www/drupal6/index.php, menu_execute_active_handler, 18


Deepak, you've been great at spurring me to find the next clue.

- Bob

bokabu

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
    • California Creativity
Google Payment Processor Site URL needs trailing slash
August 08, 2009, 11:07:27 am
I modified civicrm/packages/Net/Socket.php to tell me what the URL was that it was failing on and the problem became obvious.

Under Site URL, the trailing slash is needed in https://checkout.google.com/

(e.g. read later in the wiki about modifying the trailing "cws/v2/Merchant/" -- that's where I was going: https://checkout.google.comcws/v2/Merchant/)

I've created an account and modified the wiki to add the trailing slashes.

- Bob

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: ....org/checkout/m/error?gsessionid=...
August 08, 2009, 10:09:54 pm
Bob Excellent! I was able to recreate the problem on my machine by removing the trailing slash. Thanks for tracking this down.

I think code should take care of this. Filed an issue for this - http://issues.civicrm.org/jira/browse/CRM-4878

Thanks,
Deepak
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • ....org/checkout/m/error?gsessionid=...

This forum was archived on 2017-11-26.