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) »
  • Authorize.net error when sending transaction ...
Pages: [1]

Author Topic: Authorize.net error when sending transaction ...  (Read 2034 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Authorize.net error when sending transaction ...
March 10, 2008, 08:53:49 pm
Greetings!  I've configure our payment processor to use Authorize.net.  I've configured both our Authorize.net account and our CiviCRM settings and when I submit a test transaction i receive the following error:

Error Details:

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

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


The transaction actually processes and I receive an email confirming this from our Authorize.net account.  How do I get rid of this error?  Does this have anything to do with the PHP Perl and cURL extensions not being enabled?  I'm asking our host to enable these.

Let me know if you have suggestions?

Thanks!


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: Authorize.net error when sending transaction ...
March 10, 2008, 10:29:28 pm

please take the time and make the effort to do some searches on the forums before posting a new topic.

Searching for "Invalid response code received from server" gives you quite a few forum topics and a few solutions

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Authorize.net error when sending transaction ...
March 11, 2008, 07:09:42 pm
Ok, so I've searched the forums and read posts related to this issue.  That helped to figure out that it's an SMTP issue.  so I tweaked the SMTP settings in my global config via CiviCRM admin (per my host's specs).  Then I also added the SMTP password snippet of code to my civicrm.settings.php file.  That should look like this correct?

<?php
/**
 * SMTP Server Authentication Password:
 *
 * If your SMTP server requires authentication, you will enable that and enter the
 * Username from Administer CiviCRM >> Global Settings >> SMTP. Then enter the
 * authentication Password below.
 *
 */
define( 'CIVICRM_SMTP_PASSWORD', 'password'    );
?>


where the 'password' is my actual password right?

Is there only one civicrm.settings.php file in a drupal install?

I've made these tweaks but I'm still getting the error.

Any suggestions/help would be very appreciated.

Thanks!

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: Authorize.net error when sending transaction ...
March 11, 2008, 10:21:24 pm

what version are you using? if 1.9 or prior, and you get the same error, please ensure that you've modified the right file (most likely not). there is only one settings file in a drupal install. for most installs it is in sites/default

if 2.0, the setting is in the administer civicrm >> global settigs >> outbound email (smtp) section

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Authorize.net error when sending transaction ...
March 12, 2008, 07:22:48 am
I'm using version 1.9, and yes I've modified both the global settings > outbound SMTP, and the actual civicrm.settings.php file in the root civicrm folder on the server.  Neither seems to fix the issue.

This is very frustrating since it seems like something that should be an easy fix.  We host on a Siteground server and they are not being helpful - they basically told me to post to the CiviCRM forums, but so far no luck here either.

Any other suggestions on how I should debug this in order to fix it. 

Here's some more detail:  in my outbound SMTP settings, my host (Siteground) told me to put the IP address of our mail server.  So I did this in the SMTP server field.  SMTP port is set to 25.  Authentication is set to YES.  Then I have my full admin e-mail address in the username field.  Then I set the password in the actual civicrm.settings.php file.   That reads:

define( 'CIVICRM_SMTP_PASSWORD', 'password'    );

I'm assuming here that I replace 'password' in the above with the actual password for the e-mail account I'm using correct?

Do I need anything else in the civicrm.settings.php file?  Do I have this file in the correct location - root level of the civicrm folder?

Thanks!

« Last Edit: March 12, 2008, 07:28:13 am by backdrifting »

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Authorize.net error when sending transaction ...
March 12, 2008, 07:32:52 am
Ok - I see now that I have the tweak made in the wrong file.  The file is indeed in sites/default.  I'll try this and let you know if it works.

Thanks.

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Authorize.net error when sending transaction ...
March 12, 2008, 07:39:21 am
Yeah!  It works!!  I made the tweaks to the civicrm.settings.php file in /sites/default and now all is processing correctly.  Thanks so much for the pointers.  I think I'll suggest developing better documentation for the CiviCRM administrator's guide related to this issue.  I'd be happy to write up that documentation.

Thanks again.
 :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Authorize.net error when sending transaction ...

This forum was archived on 2017-11-26.