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) »
  • /bin/UpdateGreeting.php gives 'deprecated' warning in 3.2.3
Pages: [1]

Author Topic: /bin/UpdateGreeting.php gives 'deprecated' warning in 3.2.3  (Read 635 times)

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
/bin/UpdateGreeting.php gives 'deprecated' warning in 3.2.3
October 26, 2010, 01:54:17 am
With v3.2.3 running on Drupal 6.19 and PHP 5.3.2, invoking...

Code: [Select]
http://.../sites/all/modules/civicrm/bin/UpdateGreeting.php?ct=Individual&gt=addressee&name=...&pass=...&key=...
...from Firefox gives the following output...

Code: [Select]
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in /var/www/citybibleforum/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php on line 689
Call Stack
# Time Memory Function Location
1 0.0008 396628 {main}( ) ../UpdateGreeting.php:0
2 0.0008 396828 CRM_UpdateGreeting->__construct( ) ../UpdateGreeting.php:214
3 0.0009 396828 CRM_UpdateGreeting->initialize( ) ../UpdateGreeting.php:45

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in /var/www/citybibleforum/sites/all/modules/civicrm/packages/HTML/QuickForm.php on line 601
Call Stack
# Time Memory Function Location
1 0.0008 396628 {main}( ) ../UpdateGreeting.php:0
2 0.0008 396828 CRM_UpdateGreeting->__construct( ) ../UpdateGreeting.php:214
3 0.0009 396828 CRM_UpdateGreeting->initialize( ) ../UpdateGreeting.php:45
4 0.0939 5117700 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php' ) ../UpdateGreeting.php:62
5 0.0985 5500084 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/CRM/Core/Form.php' ) ../Contact.php:37
6 0.0990 5531184 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php' ) ../Form.php:40

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in /var/www/citybibleforum/sites/all/modules/civicrm/packages/HTML/QuickForm.php on line 1720
Call Stack
# Time Memory Function Location
1 0.0008 396628 {main}( ) ../UpdateGreeting.php:0
2 0.0008 396828 CRM_UpdateGreeting->__construct( ) ../UpdateGreeting.php:214
3 0.0009 396828 CRM_UpdateGreeting->initialize( ) ../UpdateGreeting.php:45
4 0.0939 5117700 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php' ) ../UpdateGreeting.php:62
5 0.0985 5500084 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/CRM/Core/Form.php' ) ../Contact.php:37
6 0.0990 5531184 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php' ) ../Form.php:40

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in /var/www/citybibleforum/sites/all/modules/civicrm/packages/HTML/QuickForm.php on line 1877
Call Stack
# Time Memory Function Location
1 0.0008 396628 {main}( ) ../UpdateGreeting.php:0
2 0.0008 396828 CRM_UpdateGreeting->__construct( ) ../UpdateGreeting.php:214
3 0.0009 396828 CRM_UpdateGreeting->initialize( ) ../UpdateGreeting.php:45
4 0.0939 5117700 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php' ) ../UpdateGreeting.php:62
5 0.0985 5500084 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/CRM/Core/Form.php' ) ../Contact.php:37
6 0.0990 5531184 require_once( '/var/www/citybibleforum/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php' ) ../Form.php:40
Greeting is updated for contact(s). (Done)
 

The last line suggests the code works OK, but the warnings are a worry. Is this a known error or should I create an issue?

Ken
« Last Edit: October 26, 2010, 02:17:13 am by ken »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • /bin/UpdateGreeting.php gives 'deprecated' warning in 3.2.3

This forum was archived on 2017-11-26.