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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • sendmail strict warning
Pages: [1]

Author Topic: sendmail strict warning  (Read 1125 times)

eric

  • I’m new here
  • *
  • Posts: 2
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: drupal 7.12
  • MySQL version: 5.1.24 (and 5.5.20)
  • PHP version: 5.3.8
sendmail strict warning
May 11, 2013, 07:40:24 pm
when configuring to use /usr/sbin/sendmail -i (don't strip ".", when reading from file) the following is displayed:

"Strict warning: Non-static method Mail_RFC822::parseAddressList() should not be called statically, assuming $this from incompatible context in Mail->parseRecipients() (line 257 of /usr/space0s2/web/net/drupal-7.22/sites/all/modules/civicrm/packages/Mail.php)."

the test mail works correctly, no functional error is evident to me.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: sendmail strict warning
May 11, 2013, 08:04:29 pm
This question gets asked on the forum and irc almost on a daily basis. Which seems to point to a flaw in our documentation and help resources. Since Michael McAndrew is working on some reorganization of our wiki pages and forums, it would be good to consider how we can address super-frequent questions like this one... aside from fixing our software to be php notice compliant, which we are making good progress on :)
Here are some solutions I've seen elsewhere, but I'm not sure of their relative effectiveness:
- Create an entry portal to our documentation that starts with FAQs
- Add some FAQ links to the instruction text when creating a new forum post
- Also in the instruction text, tell people to search before posting
- Pin certain topics to the top in the forums
Other ideas?
Try asking your question on the new CiviCRM help site.

artfulrobot.com

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 4
Re: sendmail strict warning
November 28, 2013, 12:32:31 pm
If it's asked daily, where's the answer?

Seems to me that the code relies on a fudge that was OK in earlier PHP versions, but not since, whereby a method is declared without static, but then checks isset($this) to determine whether it's been sloppily called statically, and if so instantiates a dummy object for the sake of calling the method.

The correction is to instantiate an object first, then call the method.

From a quick grep this is only called in one place. This patch (attached) should do.  http://issues.civicrm.org/jira/browse/CRM-13860
« Last Edit: November 28, 2013, 12:40:04 pm by artfulrobot.com »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • sendmail strict warning

This forum was archived on 2017-11-26.