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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Blank Pear Error
Pages: [1]

Author Topic: Blank Pear Error  (Read 2979 times)

FredJones

  • Guest
Blank Pear Error
November 19, 2007, 04:57:28 am
I try to send email to an Individual Contact and I get:

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

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

If I attempt to 'fix' the SMTP settings, I get:

Code: [Select]
    [to_string] => [pear_error: message="not connected" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]

so it appears that that's not the issue. I am running Drupal 5.3 with CiviCRM 1.9 on a shred Linux host. The host's FAQ's may be outdated but they say:

RedHat Linux 9
apache-2.0.40
MySQL5.0

Any ideas?

FredJones

  • Guest
Re: Blank Pear Error
November 20, 2007, 07:50:54 am
No ideas here?

Any suggestions how to begin to debug this?

Thanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Blank Pear Error
November 20, 2007, 05:41:17 pm
It might help if you explained what you mean by "fix the SMTP settings". What do you have entered for your SMTP Server and Port (Global Settings >> Outbound Email)? Can you telnet to that server?

Check this thread for some details on "testing" access to an SMTP server:
http://forum.civicrm.org/index.php/topic,721.0.html
Protect your investment in CiviCRM by  becoming a Member!

FredJones

  • Guest
Re: Blank Pear Error
November 21, 2007, 01:55:22 am
Quote from: Dave Greenberg on November 20, 2007, 05:41:17 pm
It might help if you explained what you mean by "fix the SMTP settings". What do you have entered for your SMTP Server and Port (Global Settings >> Outbound Email)? Can you telnet to that server?

Right. What I meant was that if I attempt to adjust the SMTP settings, then the error message changes. I meant to point out that the first error message is 'message=""' whereas the second is 'message="not connected"' so it seems that I indeed have the SMTP settings correct when I get that first error message.

Quote from: Dave Greenberg on November 20, 2007, 05:41:17 pm
Check this thread for some details on "testing" access to an SMTP server:
http://forum.civicrm.org/index.php/topic,721.0.html

I do not have shell access to this machine. Settings are:

SMTP Server :  auth.smtp.1and1.co.uk
SMTP Port : 587
Authentication : Yes

Host control panel says:

Quote
Outgoing server (SMTP)    auth.smtp.1and1.co.uk

Please note: To send e-mail using the SMTP-Server, activate SMTP Authentication. Please do not use the Secure Password Authentication (SPA) option. Optionally, port 587 can also be used in addition to the default port RFC 2476.

I have tried with Authentication: No and with SMTP Port : 25 but whether it's 587 Yes or 587 No  or 25 Yes or 25 No, I get the same result every time.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Blank Pear Error
November 22, 2007, 08:46:56 am
The best approach would be to get the full SMTP debug. The way to do it is to edit packages/Net/SMTP.php as described here.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

FredJones

  • Guest
Re: Blank Pear Error
November 25, 2007, 02:42:48 am
Tried that now. All I get is:

Code: [Select]
DEBUG: Send: QUIT

Well, to be more specific, I get a web page with:

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

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

and then the "DEBUG: Send: QUIT" message as above, and then the entire web page again (meaning I see the entire template of a regular page repeated) and this one says:

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

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

The second error says "not connected" but the first does not say that. Not sure what to make of that exactly. To repeat, both appear on the same page.

Any more ideas?

Thanks.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Blank Pear Error
November 25, 2007, 09:54:12 pm
Hm, this is very strange; it seems there’s something strange with the authentication mechanism (I tried to telnet auth.smtp.1and1.co.uk 587 and talk some SMTP to it, and I end up with 550 must be authenticated).

Can you please contact 1and1 and ask them what kind of authentication they require?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

FredJones

  • Guest
Re: Blank Pear Error
November 27, 2007, 04:24:07 am
they said:

Quote
We have checked telnet from our end:
telnet auth.smtp.1and1.co.uk 587
and you should be able to telnet it.

By the way, we are using reverse mapping on our system.

If you have any further questions please do not hesitate to contact us.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Blank Pear Error
November 27, 2007, 10:01:07 pm
Sorry for the scarce/late replies, but I’m really stumped here. Does the SMTP debug looks the same (just DEBUG: Send: QUIT) with all combinations of port (25/587) and authentication (yes/no)?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

FredJones

  • Guest
Re: Blank Pear Error
November 28, 2007, 12:18:22 am
Possible settings:

#SMTP ServerPortAuthentication
1smtp.1and1.co.uk587Yes
2smtp.1and1.co.uk25Yes
3smtp.1and1.co.uk25No
4smtp.1and1.co.uk587No
5auth.smtp.1and1.co.uk587No
6auth.smtp.1and1.co.uk587Yes
7auth.smtp.1and1.co.uk25Yes
8auth.smtp.1and1.co.uk25No

With #1 I get these three messages:

Code: [Select]
    [to_string] => [pear_error: message="" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]

Code: [Select]
DEBUG: Send: QUIT

Code: [Select]
    [to_string] => [pear_error: message="not connected" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]

With #2 and #3 and #4 I get the same. Those all actually used smtp.1and1.co.uk.

Beginning with #5 I used auth.smtp.1and1.co.uk and I get now for the FIRST error message:

Code: [Select]
    [to_string] => [pear_error: message="Connection refused" code=111 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]

and the rest of the page is the same as #1.

#6, #7 and #8 are all the same as #5.

I think at this point perhaps the best idea is to get a new host. Unless there are other ideas.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Blank Pear Error
November 28, 2007, 03:39:34 am
Hm, I’m really stumped here. I don’t see any reason why the Net::SMTP class should start the conversation with QUIT, and if it doesn’t, why it wouldn’t show what it’s doing.

If you know PHP, you can look around the class’s files and try to check where the logic is failing, but for now I have no idea how to help you. :|
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

FredJones

  • Guest
Re: Blank Pear Error
November 28, 2007, 04:10:37 am
I have heard of PHP. ;)

I daresay that switching to a host which I KNOW is compatible with CiviCRM is more cost-effective, however. :)

Thanks for all of your help, gentlemen!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Blank Pear Error

This forum was archived on 2017-11-26.