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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Joomla Google Checkout errors
Pages: [1]

Author Topic: Joomla Google Checkout errors  (Read 4035 times)

socoweb

  • Guest
Joomla Google Checkout errors
January 27, 2009, 10:23:17 am
Here are the technical details and configuration for this installation of CIVICRM:
Joomla 1.5.9, PHP 5.2.8 w(cURL, Pear), CIVICRM 2.1, InnoDB

The backend is working well, all permission issues have been worked out (Joomla seems to set the ownership permissions to '99' when installing civicrm from the directory, it's necessary to change the ownership back to the account owner).

I have an SSL cert installed on the server, however, i get the following message if I try to force SSL (but the site will work with https://).  My SSL certificate is on the Google approved list.

Please correct the following errors in the form fields below:
    * You need to set up a secure server before you can enable SSL

Since I am sending users to Google and not collecting the credit card info on the site, this should not be a problem.

However, I am getting this error when I click my Google Checkout Button from any point of integration with Google:

Code: [Select]
backTrace

/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 138
, handle,
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 912
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, PEAR_Error, 576
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, raiseError, 1190
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, process, 737
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment/Google.php, sendRequest, 166
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Payment/Google.php, doTransferCheckout, 87
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/BAO/Contribution/Utils.php, doTransferCheckout, 130
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php, processConfirm, 475
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php, postProcess, 247
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 232
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 197
/home/********/public_html/administrator/components/com_civicrm/admin.civicrm.php, invoke, 45
/home/********/public_html/administrator/components/com_civicrm/admin.civicrm.php, civicrm_invoke, 22
/home/********/public_html/libraries/joomla/application/component/helper.php, require_once, 162
/home/********/public_html/administrator/includes/application.php, renderComponent, 136
/home/********/public_html/administrator/index.php, dispatch, 67
/home/********/public_html/administrator/index2.php, include, 14
backTrace

/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 150
, handle,
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 912
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, PEAR_Error, 576
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, raiseError, 1190
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, process, 737
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment/Google.php, sendRequest, 166
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Payment/Google.php, doTransferCheckout, 87
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/BAO/Contribution/Utils.php, doTransferCheckout, 130
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php, processConfirm, 475
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php, postProcess, 247
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/********/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 232
/home/********/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 197
/home/********/public_html/administrator/components/com_civicrm/admin.civicrm.php, invoke, 45
/home/********/public_html/administrator/components/com_civicrm/admin.civicrm.php, civicrm_invoke, 22
/home/********/public_html/libraries/joomla/application/component/helper.php, require_once, 162
/home/********/public_html/administrator/includes/application.php, renderComponent, 136
/home/********/public_html/administrator/index.php, dispatch, 67
/home/********/public_html/administrator/index2.php, include, 14

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Malformed response

    Return to home page.

Error Details:

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

    [code] => 16
    [message] => Malformed response
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="Malformed response" code=16 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)


Any suggested solutions would be appreciated!

Thanks,[/code]
« Last Edit: January 27, 2009, 10:24:50 am by socoweb »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Joomla Google Checkout errors
January 27, 2009, 08:06:26 pm
Have you enabled SSL in CiviCRM

http://sandbox.civicrm.org/civicrm/admin/setting/url?reset=1

Force Secure URLs (SSL) : Yes

HTh

Kurund
Found this reply helpful? Support CiviCRM

socoweb

  • Guest
Re: Joomla Google Checkout errors
January 28, 2009, 06:59:33 am
When trying to force SSL I get this error:

Please correct the following errors in the form fields below:
    * You need to set up a secure server before you can enable SSL

There is an SSL with the proper root cert installed; the site works correctly with https://domainname.com and https://www.domainname.com when browsing.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Joomla Google Checkout errors
January 28, 2009, 05:41:02 pm
This forum post might be relevant ??

http://forum.civicrm.org/index.php/topic,6090.0/topicseen.html
Protect your investment in CiviCRM by  becoming a Member!

socoweb

  • Guest
Re: Joomla Google Checkout errors
February 02, 2009, 09:35:00 am
FWIW, I've confirmed our Google sandbox settings on the demo site, and they work with that install of CVCRM.

None of the other online posts seem to be relevant nor do they provide any answers to this issue.

I put a simple donation button in place, generated by Google, and it works fine. 

There seems to be an issue with CIVCRM communicating with Google Checkout on this installation.
« Last Edit: February 02, 2009, 12:49:21 pm by socoweb »

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Joomla Google Checkout errors
February 02, 2009, 02:39:23 pm
Hi,

Try testing CURL communication with google outside of civiCRM. If you create a php page like the code below you can test the CURL connection with Google without civi being involved. Try URLS with & without https. You should get the same response from https://sandbox.civicrm.org as you do from http://sandbox.civicrm.org

IF not then your problem is nothing to do with Civi and everything to do with your hosting set-up. Odds are that it is due to the firewall not permitting your traffic. Failing that it could be that CURL is not set-up properly with SSL.


   
Quote
   <?php

      $churl = "INSERT YOUR URL";

   
        $ch = curl_init();
      curl_setopt($ch, CURLOPT_VERBOSE, 1);
      curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
        curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
       curl_setopt($ch, CURLOPT_URL, $churl);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        // $output contains the output string
       $output = curl_exec($ch);
      echo "<h1>curl</h1> error number ".curl_errno($ch);
      echo "<p> ";

       // close curl resource to free up system resources

        curl_close($ch); 
      ?>
« Last Edit: March 08, 2009, 05:55:31 pm by Eileen »
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

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Joomla Google Checkout errors
March 02, 2009, 04:08:44 pm
This code is missing a ? in the first tag.  The first line should be <?php

It returns error 0 on my site - no error - but force ssl will not set in civi.
« Last Edit: March 03, 2009, 09:01:44 am by FatherShawn »
Lead Developer, C3 Design.
Twitter: @FatherShawn

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Joomla Google Checkout errors
March 06, 2009, 12:12:01 pm
Sigh - I looked at your reply & looked at the code & didn't pick that up.
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

maria

  • Guest
Re: Joomla Google Checkout errors
March 08, 2009, 07:37:10 am
Were you ever able to fix this?

maria

  • Guest
Re: Joomla Google Checkout errors
March 08, 2009, 05:14:19 pm
this has been so frustrating.  I just want to be able to use the google checkout and there seems to be no way.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Joomla Google Checkout errors
March 08, 2009, 05:54:53 pm
Maria,

Is your ssl definitely working (aside from civiCRM/ google)?

You should be able to access your site using https instead of http and connect to google / and your site using the script above saved as a .php file & uploaded to your site (I've edited in the extra ?). You need to write your url into the script before you can expect to be able to enable secure ssls.

Father Shaun had a slightly different problem to that of socoweb which he DID fix & if you check his recent posts you'll find how. (i.e. go into his profile & click on recent posts)
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

maria

  • Guest
Re: Joomla Google Checkout errors
March 08, 2009, 06:06:34 pm
Quote from: Eileen on March 08, 2009, 05:54:53 pm
Maria,

Is your ssl definitely working (aside from civiCRM/ google)?

You should be able to access your site using https instead of http and connect to google / and your site using the script above saved as a .php file & uploaded to your site (I've edited in the extra ?). You need to write your url into the script before you can expect to be able to enable secure ssls.

Father Shaun had a slightly different problem to that of socoweb which he DID fix & if you check his recent posts you'll find how. (i.e. go into his profile & click on recent posts)

Thank you, I got
curl
error number 0

maria

  • Guest
Re: Joomla Google Checkout errors
March 08, 2009, 06:31:22 pm
here is what i am getting


/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 138
, handle,
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 912
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, PEAR_Error, 576
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, raiseError, 1190
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, process, 737
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment/Google.php, sendRequest, 166
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Payment/Google.php, doTransferCheckout, 88
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Form/Registration/Confirm.php, doTransferCheckout, 480
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php, postProcess, 247
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 232
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 197
/home/*****/public_html/components/com_civicrm/civicrm.php, invoke, 73
/home/*****/public_html/components/com_civicrm/civicrm.php, civicrm_invoke, 24
/home/*****/public_html/libraries/joomla/application/component/helper.php, require_once, 162
/home/*****/public_html/includes/application.php, renderComponent, 124
/home/*****/public_html/index.php, dispatch, 68


backTrace


/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 150
, handle,
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 912
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, PEAR_Error, 576
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, raiseError, 1190
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, process, 737
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment/Google.php, sendRequest, 166
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Payment/Google.php, doTransferCheckout, 88
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Form/Registration/Confirm.php, doTransferCheckout, 480
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php, postProcess, 247
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/*****/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 232
/home/*****/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 197
/home/*****/public_html/components/com_civicrm/civicrm.php, invoke, 73
/home/*****/public_html/components/com_civicrm/civicrm.php, civicrm_invoke, 24
/home/*****/public_html/libraries/joomla/application/component/helper.php, require_once, 162
/home/*****/public_html/includes/application.php, renderComponent, 124
/home/*****/public_html/index.php, dispatch, 68


 Sorry. A non-recoverable error has occurred.


--------------------------------------------------------------------------------

Malformed response

Return to home page.

Error Details:


Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> 16
    [message] => Malformed response
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="Malformed response" code=16 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)




Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Joomla Google Checkout errors
March 08, 2009, 08:41:31 pm
It seems that it's worth taking a look at what is in the array $request. It's probably worth echo-ing / dumping it to see what it is. I'd have to check (in a bit) as to whether you can just add it into the core_error line below to see it

        $request =& new HTTP_Request( $url, $params )
;
        foreach ( $googleParams as $key => $value ) {
            $request->addPostData($key, $value);
        }

        $result = $request->sendRequest( );

        if ( PEAR::isError( $result ) ) {
            CRM_Core_Error::fatal( $result->getMessage( ) );
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

maria

  • Guest
Re: Joomla Google Checkout errors
March 09, 2009, 05:33:40 am
this is over my head.  I think at this point it's best to cut my losses and see if i can figure something else out.  I  appreciate your help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Joomla Google Checkout errors

This forum was archived on 2017-11-26.