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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Can't Set Outoing Mail
Pages: [1]

Author Topic: Can't Set Outoing Mail  (Read 4996 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Can't Set Outoing Mail
January 24, 2012, 11:24:17 am
civicrm/admin/setting/smtp?reset=1 gives

Code: [Select]
Fatal error: Cannot unset string offsets in /home/mysite.com/www/www/sites/all/modules/civicrm/CRM/Core/Form.php on line 344
I changed

Code: [Select]
        unset( $defaults['qfKey'] );
to

Code: [Select]
        unset( $defaults->qfKey);
and it works. Not sure what else I may have broken however. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Can't Set Outoing Mail
January 24, 2012, 11:34:15 pm
Seems to be working fine for me locally and also on http://sandbox.drupal.civicrm.org/

Kurund
Found this reply helpful? Support CiviCRM

ddunn

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 5.0.7-dev
  • PHP version: 5.3.4
Re: Can't Set Outoing Mail
January 27, 2012, 08:42:39 am
I have the same problem getting to 'civicrm/admin/setting/smtp?reset=1' with 4.1.beta2.

Hershel's workaround also worked for me. 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: Can't Set Outoing Mail
January 27, 2012, 11:25:33 am

Would be better (IMO) to figure out whats happening and why, rather than modifying the core code (which probably does have some implications in other places)

kurund and I could not reproduce it, else we would have tracked it down

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

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Can't Set Outoing Mail
January 29, 2012, 02:33:26 pm
Just a "me too" to experience this error on J2.5 and Civi 4.1.b3
Fix works for me too.

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: Can't Set Outoing Mail
February 04, 2012, 09:09:21 pm
I'm getting this too with 41b3 on two servers.

see also:
http://forum.civicrm.org/index.php?topic=22628.0
http://forum.civicrm.org/index.php?topic=22503.0

it looks like the problem is that the previous line: $defaults = $this->setDefaultValues( );
returns a serialized array, which unset() can't interpret as it's a string.

maybe this is a php 5.2 vs 5.3 issue? both my sites are running 5.2.

support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Can't Set Outoing Mail
February 05, 2012, 03:10:17 am
Nope, the OP was regarding a site on my servers and we run PHP 5.3.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Can't Set Outoing Mail
February 12, 2012, 03:18:43 am
I get the same behaviour  for civicrm/admin/setting/smtp?reset=1 as Hershel on 4.1.beta3 and PHP 5.3.6. His fix works for me as well.

In addition, Civi seems to have lost my Outbound Mail Settings during the upgrade (none of the radio buttons were set).

I then set the Mail Settings to 'Disable Outbound Mail'.

I then reverted Hershel's fix to restore the original code (deleting compiled templates, just to be sure), and then went back to civicrm/admin/setting/smtp?reset=1

This time I didn't get the error!

However, once again, none of the radio buttons were set.

I, once again, set the Mail Settings to 'Disable Outbound Mail'.

Now when I return to civicrm/admin/setting/smtp?reset=1 I don't get the error and the Mail Settings are set to 'Disable Outbound Mail'.

Suggestion for reproducing: Try upgrading a fresh install from (say) 4.0.7 to 4.1.beta3 and then go to civicrm/admin/setting/smtp?reset=1 - that might reproduce the problem. (Perhaps the sandbox is a fresh install???)
« Last Edit: February 12, 2012, 04:12:08 am by ken »

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: Can't Set Outoing Mail
February 13, 2012, 01:50:43 am
Quote
Suggestion for reproducing: Try upgrading a fresh install from (say) 4.0.7 to 4.1.beta3 and then go to civicrm/admin/setting/smtp?reset=1 - that might reproduce the problem. (Perhaps the sandbox is a fresh install???)

Thanks Ken, now I am able to replicate this. I will check and get back on this.

Kurund
Found this reply helpful? Support CiviCRM

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Can't Set Outoing Mail
February 13, 2012, 02:05:50 am
I AM THE KING OF REPLICATION!

( well... I do have 4 children... )
« Last Edit: February 13, 2012, 02:53:48 am by ken »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Can't Set Outoing Mail
February 13, 2012, 03:03:00 am
Quote from: ken on February 13, 2012, 02:05:50 am
I AM THE KING OF REPLICATION!

( well... I do have 4 children... )

lol :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Can't Set Outoing Mail
February 13, 2012, 04:23:25 am
Ken, yes you are :)

Filed http://issues.civicrm.org/jira/browse/CRM-9658, fix will be part of next release

Kurund
« Last Edit: February 13, 2012, 04:34:31 am by Kurund Jalmi »
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Can't Set Outoing Mail

This forum was archived on 2017-11-26.