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) »
  • Notice: Only variable references should be returned by reference in
Pages: [1]

Author Topic: Notice: Only variable references should be returned by reference in  (Read 2151 times)

scottott

  • Guest
Notice: Only variable references should be returned by reference in
July 18, 2009, 08:00:00 pm
Running CiviCRM in Joomla 1.5. Love it.
When I try to print mailing labels, I can do as many as 100 at a time (if I display 100 records on the CiviCRM page) however, if I try to do more than I'm currently displaying, I first get this...
Code: [Select]
Notice: Only variable references should be returned by reference in path/to/administrator/components/com_civicrm/civicrm/CRM/Contact/Selector.php on line 731If I choose a label style and try to Make Mailing Labels, then I get a blank screen with the same error message and this...
Code: [Select]
FPDF error: Some data has already been output, can't send PDF fileLine 726 - 733 in Selector.php says this...
   
Code: [Select]
function &contactIDQuery( $params, $action, $sortID ) {
        $sortOrder =& $this->getSortOrder( $this->_action );
        $sort      =& new CRM_Utils_Sort( $sortOrder, $sortID );

        $query   =& new CRM_Contact_BAO_Query( $params, $this->_returnProperties );
        return $query->searchQuery( 0, 0,$sort,
        false,false,
        false,false,false );
Again the error only happens when I try to make mailing labels from "All # Records".
I have searched high and low for an answer to this. I could work around the problem by doing batches of 100 at a time, but CiviCRM is so well-put together, that would be insulting to the folks who built it.

Scott

scottott

  • Guest
Re: Notice: Only variable references should be returned by reference in
July 18, 2009, 08:48:46 pm
In a related matter, I was on step 2 (Track and Respond) of doing a CiviMail mailing and got this error message four times (stacked)...
Quote
Notice: Only variable references should be returned by reference in path/to/administrator/components/com_civicrm/civicrm/CRM/Mailing/PseudoConstant.php on line 132

scottott

  • Guest
Re: Notice: Only variable references should be returned by reference in
July 25, 2009, 09:08:47 am
Am I alone in this? Are there any CiviCRM developers on this forum?

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: Notice: Only variable references should be returned by reference in
July 25, 2009, 09:45:50 am

issue filed and fixed at: http://issues.civicrm.org/jira/browse/CRM-4788

will be part of 2.2.8

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Notice: Only variable references should be returned by reference in

This forum was archived on 2017-11-26.