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) »
  • Google Checkout Authentication error in 3.4.7, Civihosting
Pages: [1]

Author Topic: Google Checkout Authentication error in 3.4.7, Civihosting  (Read 1506 times)

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
Google Checkout Authentication error in 3.4.7, Civihosting
November 06, 2011, 10:23:58 am
I recently upgraded from 3.4.5 to 3.4.7 and GoogleCheckout is having trouble with the googleNotify.php callback.   GoogleCheckout is processing the transactions, but failing to talk to CiviCRM and thus all the payments remain "Pending" rather than completed.

It's:
Quote
Failed to Get Basic Authentication Headers

Deepak and I had a chat - he says it's likely a configuration issue with Apache which is denying the authentication.   http://prashcom.blogspot.com/2007/09/google-checkout-failed-to-get-basic.html was offered by Deepak as a possible solution.  I will try Monday.  Anyone having a similar issue?

We can work it out in this thread.
« Last Edit: November 07, 2011, 10:12:51 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: Google Checkout Authentication error in 3.4.7
November 07, 2011, 10:10:44 am
I ran into this problem on CiviHosting.com    The cause of the authentication error is that PHP is running CGI mode on CiviHosting.com   Hershel was kind enough to provide a simple solution.

1) Create an .htaccess file in the directory of your scripts, (in this case 'extern') and place the following lines in it:
Code: [Select]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>


2) Add the following line at the top each of your scripts that use PHP Authentication, just before session_start() :
Code: [Select]
list($PHP_AUTH_USER, $PHP_AUTH_PW) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
« Last Edit: November 07, 2011, 10:30:16 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Claare

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: Google Checkout Authentication error in 3.4.7, Civihosting
February 17, 2012, 01:55:57 pm
Hi Stoob,

I am having the same issue.  I followed your suggestion with adding the .htaccess and placing part #2 of your solution in the googleNotify.php just before Session Start.  Is that the only place I needed to add that line since I am only using Google for payment processing?

It's still not working for me.  Was working perfectly last summer.

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: Google Checkout Authentication error in 3.4.7, Civihosting
March 09, 2012, 10:24:45 am
On Civihosting put these files in:
/home/YOURSITE/www/www/sites/all/modules/civicrm/extern/

1. remove the .txt from each file name (thereby overwriting existing file)
2. add a . to the htaccess file so the filename is:  .htaccess

These files will work for 4.0 and 3.4, future versions are uncertain. You may have to apply the changes manually if the base of these files changes in future versions.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Google Checkout Authentication error in 3.4.7, Civihosting

This forum was archived on 2017-11-26.