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) »
  • Error with PayPal sandbox
Pages: [1]

Author Topic: Error with PayPal sandbox  (Read 1908 times)

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Error with PayPal sandbox
March 25, 2008, 04:39:08 pm
Drupal 5.7

I've set up the PayPal sandbox and had generated a fake credit card to test drive CiviContribute. When the payment is processed, I get the following error:

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

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

I am definitely running in test-drive mode and phpinfo tells me that SSL, cURL and the other required settings are correct. I'm running locally - any idea what might be happening here? Thanks in advance for any help.

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: Error with PayPal sandbox
March 25, 2008, 05:48:40 pm

This is an smtp issue. make sure your smtp settings are right and you can "send email from contacts". v2.0.2 will have improved error messages and hopefully reduce this set of issues



A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Error with PayPal sandbox
March 25, 2008, 06:50:01 pm
Quote from: Donald Lobo on March 25, 2008, 05:48:40 pm
This is an smtp issue. make sure your smtp settings are right and you can "send email from contacts". v2.0.2 will have improved error messages and hopefully reduce this set of issues

Thank you for the fast response! But my problem is this: I'm running locally, so I can't set up valid smtp settings. Is there any way to get around this so I can perform the necessary testing? The client already has a working website, so there's no way to "ramp this up" prior to full deployment. Thank you very much for your help!

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: Error with PayPal sandbox
March 25, 2008, 09:00:15 pm

You can and should set up a local mail server for testing (its quite easy to do this on any *nix based box). Your testing is essentially incomplete if you are not checking the email messages etc

That said, if you want to just ignore all emails, you can set the following in your civicrm.settings.php file:

Code: [Select]
   define( 'CIVICRM_MAIL_LOG' , '/dev/null' );   

If you need to figure out the various values u can set it etc, check the code at: CRM/Utils/Mail.php, function logger (line 196)

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

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Error with PayPal sandbox
March 26, 2008, 08:04:36 am
Quote from: Donald Lobo on March 25, 2008, 09:00:15 pm
You can and should set up a local mail server for testing (its quite easy to do this on any *nix based box). Your testing is essentially incomplete if you are not checking the email messages etc

That said, if you want to just ignore all emails, you can set the following in your civicrm.settings.php file:

Code: [Select]
   define( 'CIVICRM_MAIL_LOG' , '/dev/null' );   

If you need to figure out the various values u can set it etc, check the code at: CRM/Utils/Mail.php, function logger (line 196)

Thanks for the tip - unfortunately, although I'm sure it's easy once you know how to set up a local mail server, I can't seem to find any documentation that makes sense - is there an article you might be able to point me to? Also, line 196 is just a blank comment line - but I'd rather do things right anyway. Thank you for your help - almost there, I hope...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Error with PayPal sandbox

This forum was archived on 2017-11-26.