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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Changing Custom Field in a Profile Throws Error
Pages: [1]

Author Topic: Changing Custom Field in a Profile Throws Error  (Read 2114 times)

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Changing Custom Field in a Profile Throws Error
December 13, 2007, 09:24:56 am
I have a yes/no custom field in a profile set for user/admin view and edit. When I go to My Account>>Edit and change the field from yes to no or no to yes, I get the following error. However, the field is updated as I intended. What do I need to do to avoid getting this error message?

Sorry. A non-recoverable error has occurred.
Error Details:
Code: [Select]
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=""]
)
[/code]

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: Changing Custom Field in a Profile Throws Error
December 13, 2007, 09:32:52 am
This error is related to you mail server settings.

Please check: http://forum.civicrm.org/index.php/topic,1309.0.html

kurund


Found this reply helpful? Support CiviCRM

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Re: Changing Custom Field in a Profile Throws Error
December 14, 2007, 10:32:35 am
Thank you, Kurund.

My server support sent me the following:

"Do you have this script configured to use SMTP through localhost or
relay.hostname.com?  Neither of these will typically work.  Instead, you should
use /usr/sbin/sendmail locally, or in the case of PHP, the mail() function."

Per http://forum.civicrm.org/index.php/topic,1500.0.html

I changed line 916 of /CRM/Core/Config.php from

Code: [Select]
self::$_mail =& Mail::factory( 'smtp', $params );
to
Code: [Select]
self::$_mail =& Mail::factory( 'sendmail', $params );

To enable the PHP sendmail function and this seems to have resolved the issue.

cbh

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71-log
  • PHP version: 5.5.3
Re: Changing Custom Field in a Profile Throws Error
January 06, 2008, 06:46:43 pm
Thanks for this solution. Changing from SMPT to sendmail resolved the same problem for me here.

Cheers
Chris

scritch

  • Guest
Re: Changing Custom Field in a Profile Throws Error
January 23, 2008, 01:12:02 am
Same here! ;D

momendo

  • Guest
Re: Changing Custom Field in a Profile Throws Error
February 07, 2008, 01:25:18 pm
This also worked for me. smtp->sendmail.

Maybe this can be a future workaround by placing an option in the GUI? I'm sure this happens to a lot of people using virtual servers/plesk/ensim.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Changing Custom Field in a Profile Throws Error

This forum was archived on 2017-11-26.