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) »
  • New Event Registration Test Drive Error
Pages: [1]

Author Topic: New Event Registration Test Drive Error  (Read 7429 times)

snickerbee

  • Guest
New Event Registration Test Drive Error
September 01, 2007, 07:29:58 am
I get the following error while test driving a new event:

Code: [Select]
Error Details:

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

    [code] =>
    [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=""]
)


This occurs when I actually submit the event registration information. I am using civiCRM v 1.8. Information from my drupal status report is shown below:

(http://www.imgpire.com/uploads/b365716337.png)

Any help anyone could provide would be appreciated.

Thanks,

snickerbee[/code]

snickerbee

  • Guest
Re: New Event Registration Test Drive Error
September 01, 2007, 09:36:31 am
I turned on debugging and caused the error again. Here is the backtrace:

Code: [Select]
backTrace

/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 148
, handle,
/home/henrypta/public_html/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 901
/home/henrypta/public_html/sites/all/modules/civicrm/packages/PEAR.php, PEAR_Error, 566
/home/henrypta/public_html/sites/all/modules/civicrm/packages/Net/SMTP.php, raiseError, 277
/home/henrypta/public_html/sites/all/modules/civicrm/packages/Net/SMTP.php, _parseResponse, 741
/home/henrypta/public_html/sites/all/modules/civicrm/packages/Mail/smtp.php, rcptTo, 282
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Utils/Mail.php, send, 154
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php, send, 1839
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Event/BAO/EventPage.php, commonSendMail, 128
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php, sendMail, 351
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/StateMachine.php, postProcess, 166
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/henrypta/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/home/henrypta/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 95
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 213
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Event/Invoke.php, run, 101
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Component.php(183) : eval()'d code, main, 1
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Component.php, eval, 183
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, invoke, 144
/home/henrypta/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 319
, civicrm_invoke,
/home/henrypta/public_html/includes/menu.inc, call_user_func_array, 418
/home/henrypta/public_html/index.php, menu_execute_active_handler, 15


Any help figuring this out would be greatly appreciated.

snickerbee

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: New Event Registration Test Drive Error
September 01, 2007, 12:13:06 pm

This is an SMTP error. Is your mail server exim 4.x? (check the second link)

You might want to check and read the foll forums:

http://forum.civicrm.org/index.php/topic,523.0.html
http://forum.civicrm.org/index.php/topic,374.0.html

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

snickerbee

  • Guest
Re: New Event Registration Test Drive Error
September 01, 2007, 09:19:28 pm
lobo:

I have a hosted website and their tech support reports that the mail server is Exim 4.66.

Now what? Should I try this hack:

Quote
One hack is to comment out the lines 741-743 in packages/Net/SMTP.php.

from the post at this link: http://forum.civicrm.org/index.php/topic,374.msg2732.html#msg2732?

Thanks for the clues!

snickerbee

snickerbee

  • Guest
Re: New Event Registration Test Drive Error
September 01, 2007, 09:45:53 pm
lobo:

I went ahead and commented out lines 741-743 in /www/sites/all/modules/civicrm/packages/Net/SMTP.php and I still get the error.

Here is my commented out code:
Code: [Select]
        /** Commented this out per forum post at http://forum.civicrm.org/index.php/topic,1074.0.html
        if (PEAR::isError($error = $this->_parseResponse(array(250, 251)))) {
            return $error;
        }
        */

Here is the error message with the line commented out:

Code: [Select]
     Sorry. A non-recoverable error has occurred.

    Return to home page.

Error Details:

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

    [code] =>
    [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=""]
)

And here is the backtrace with the lines commented out:

Code: [Select]
backTrace

/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 148
, handle,
/home/henrypta/public_html/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 901
/home/henrypta/public_html/sites/all/modules/civicrm/packages/PEAR.php, PEAR_Error, 566
/home/henrypta/public_html/sites/all/modules/civicrm/packages/Net/SMTP.php, raiseError, 277
/home/henrypta/public_html/sites/all/modules/civicrm/packages/Net/SMTP.php, _parseResponse, 805
/home/henrypta/public_html/sites/all/modules/civicrm/packages/Mail/smtp.php, data, 291
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Utils/Mail.php, send, 154
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php, send, 1839
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Event/BAO/EventPage.php, commonSendMail, 128
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php, sendMail, 351
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/StateMachine.php, postProcess, 166
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/henrypta/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/home/henrypta/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 95
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 213
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Event/Invoke.php, run, 101
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Component.php(183) : eval()'d code, main, 1
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Component.php, eval, 183
/home/henrypta/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, invoke, 144
/home/henrypta/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 319
, civicrm_invoke,
/home/henrypta/public_html/includes/menu.inc, call_user_func_array, 418
/home/henrypta/public_html/index.php, menu_execute_active_handler, 15

Looks like same problem even with the lines commented out. Might you have another idea?

Thanks for you assistance.

snickerbee[/code]

snickerbee

  • Guest
Re: New Event Registration Test Drive Error
September 01, 2007, 10:55:21 pm
I turned on debugging in SMTP.php and tried again. Along with the error and backtrace in my previous post I also get the following debugging information:

Code: [Select]
DEBUG: Recv: 220-serv01.siteground198.com ESMTP Exim 4.66 #1 Sun, 02 Sep 2007 00:43:13 -0500
DEBUG: Recv: 220-We do not authorize the use of this system to transport unsolicited,
DEBUG: Recv: 220 and/or bulk e-mail.
DEBUG: Send: EHLO localhost
DEBUG: Recv: 250-serv01.siteground198.com Hello localhost [209.62.39.18]
DEBUG: Recv: 250-SIZE 52428800
DEBUG: Recv: 250-PIPELINING
DEBUG: Recv: 250-AUTH PLAIN LOGIN
DEBUG: Recv: 250-STARTTLS
DEBUG: Recv: 250 HELP
DEBUG: Send: AUTH LOGIN
DEBUG: Recv: 334 VXNlcm5hbWU6
DEBUG: Send: YWRtaW5AaGVucnlwdGEub3Jn
DEBUG: Recv: 334 UGFzc3dvcmQ6
DEBUG: Send: b2lhdGVvbmUy
DEBUG: Recv: 235 Authentication succeeded
DEBUG: Send: MAIL FROM:
DEBUG: Recv: 250 OK
DEBUG: Send: RCPT TO:
DEBUG: Send: DATA
DEBUG: Recv: 550 SITEGROUND: localhost is a silly HELO.

These results seem similar to results reported in this thread: http://forum.civicrm.org/index.php/topic,523.15.html. It looks like that user gave up on figuring out this problem though:

Quote
I gave up on trying to track down the issue and moved toward testing 1.8.  What ever you have changed in 1.8, it fixed the issue.

New issue to report - See thread "1.8 Alpha 10427 - Civimail - Click Next clears email upload box"

Anybody have any ideas about what I could try next?

Thanks,

snickerbee

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: New Event Registration Test Drive Error
September 01, 2007, 11:26:04 pm

This is an Exim <-> PEAR Mail issue and i dont know enough of either to help you out. Would be great for you to debug/fix and provide a patch back for other users

thanx

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

snickerbee

  • Guest
Re: New Event Registration Test Drive Error
September 02, 2007, 08:28:25 am
I am really over my head here but I did some searching and found the following (source: http://forums.theplanet.com/lofiversion/index.php/t61269.html):

Quote
Its amazing how much spam is being sent from remote hosts claiming to be localhost or localdomain. There is also another one called (friend). But here is a HELO/EHLO check you can add to your exim rules to drop the pesky spammers who claim they are sending message from localhost. If you don't have a HELO/EHLO greeting section in your exim rules then thats another problem. You really should. It will cut out huge amounts of spam.

######################################################################
# HELO/EHLO greeting section
######################################################################

# A remote host can't be localhost or localdomain
deny hosts = !+relay_hosts
message = $sender_helo_name is a silly HELO
condition = ${if match\
{$sender_helo_name}\
{\N^(127\.0\.0\.1|localhost(\.localdomain)?)$\N}\
{yes}{no}}

Here is an example of the message dropped by the above rule. The sending host claims its a remote host. :rolleyes:

2006-03-27 03:38:35 H=(localhost) [86.106.55.32] F= rejected RCPT : localhost is a silly HELO
2006-03-27 03:38:36 unexpected disconnection while reading SMTP command from (localhost) [86.106.55.32]

It seems that rules can be set for Exim and perhaps my host has an Exim rule that does not allow using localhost. Does this seem plausible?

Just as a guess, I went in and modified /www/sites/all/modules/civicrm/packages/Net/SMTP.php such that the variables $host and $localhost got assigned 'mydomain.org' instead of 'localhost' and the result was still the same.

Here are the two lines from SMTP.php that I modified:
Code: [Select]
var $host = 'localhost';      /** line 44 from SMTP.php */
var $localhost = 'localhost'; /** line 58 from SMTP.php */

Like I mentioned earlier, I am in over my head in trying to figure this out. If anyone has any tips or suggestions about what could be done next I will try them but I am running out of ideas.

Thanks for following this thread.

snickerbee

snickerbee

  • Guest
Re: New Event Registration Test Drive Error
September 02, 2007, 12:25:10 pm
I have given up.

I have uninstalled civiCRM and decided to find another tool to use.

Thanks for all your help.

Best Regards,

snickerbee

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: New Event Registration Test Drive Error
September 02, 2007, 12:38:01 pm

Sorry to see you go. Its kinda hard for us to ensure that CiviCRM works on all combinations of php version / mysql version / mailers. A few too many permutations and combinations :(. Hopefully as we get bigger as a community, other developer folks will help figure and resolve issues such as this

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

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: New Event Registration Test Drive Error
September 07, 2007, 11:00:25 am
I'm running into the same error messages as the guy in this post. However, I've confirmed that my servers use Sendmail, not Exim. Yet the error message and circumstances are identical.

I am able to send an email to a contact using the link on the member contact page. But when test-driving (or using) a contribution page, it errors at the stage where an email would be sent. Here's the full error code:

Code: [Select]
backTrace

/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 148
, handle,
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 901
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, PEAR_Error, 566
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/packages/Net/SMTP.php, raiseError, 277
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/packages/Net/SMTP.php, _parseResponse, 711
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/packages/Mail/smtp.php, mailFrom, 269
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Mail.php, send, 154
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/BAO/ContributionPage.php, send, 129
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Member/BAO/Membership.php, sendMail, 902
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php, postProcessMembership, 363
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, postProcess, 166
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 95
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 213
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Invoke.php, run, 120
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Component.php(183) : eval()'d code, main, 1
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Component.php, eval, 183
/home/nyaviati/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, invoke, 144
/home/nyaviati/public_html/administrator/components/com_civicrm/admin.civicrm.php, invoke, 55
/home/nyaviati/public_html/administrator/components/com_civicrm/admin.civicrm.php, civicrm_invoke, 32
/home/nyaviati/public_html/administrator/index2.php, require_once, 69

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

    Return to home page.

Error Details:

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

    [code] =>
    [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=""]
)

Any help would be GREATLY appreciated, as I'm in the process of installing multiple Joomla/CiviCRM setups on this host.

-Brian[/code]
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: New Event Registration Test Drive Error
September 07, 2007, 12:23:12 pm

Most likely this is an smtp from address / relay issue. Make sure that you can send mail using the "From" address you set in the contribute page.

check: http://www.nabble.com/Mail-function-in-CiviCRM-tf2358770s15986.html#a6572642

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

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: New Event Registration Test Drive Error
September 07, 2007, 01:31:10 pm
I saw that post. But I think it refers to an older version of CiviCRM. There's only one line in the settings file related to mail -- the password field (which I do have setup correctly). In the admin global settings, I do have a domain email setup as the sending address. So I don't *think* that's what is causing the problem.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: New Event Registration Test Drive Error
September 07, 2007, 05:15:44 pm

Check:

http://demo.civicrm.org/drupal/civicrm/contribute/manage?reset=1&action=update&id=7&subPage=ThankYou

The field to be looked at is: "Receipt From Email". Make sure that this is a "valid" account on your mail server and it accepts mail with this from address

If the above does not apply, then i'm not sure why the smtp transaction is failing. You might want to add some debugging statements to the smtp code and let us know the reason for the failure

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

claudian

  • Administrator
  • I’m new here
  • *****
  • Posts: 17
  • Karma: 2
Re: New Event Registration Test Drive Error
September 10, 2007, 07:25:24 am
Check this out. There was this specific problem on Bluehost and solution outlined in post

http://www.nabble.com/CiviMail-Bounce-t3033189s15986.html

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

This forum was archived on 2017-11-26.