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 »
  • 3.4 and 4.0 Releases Testing »
  • Notice: Only variable references should be returned
Pages: [1]

Author Topic: Notice: Only variable references should be returned  (Read 2661 times)

HanV

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Notice: Only variable references should be returned
April 14, 2011, 04:33:11 am
When I use 4.0 civicrm I get one notice when i choose
   Reports > Create Reports from templates

Notice: Only variable references should be returned by reference in CRM_Core_Menu::getAdminLinks()

I have replaced in CRM\Core\Menu.php line 408
return null;

by
$values = NULL; return $values;

I think this minor problem only exits when the database is wrong or not yet upgraded.

« Last Edit: April 14, 2011, 04:39:27 am by HanV »
HanV

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Notice: Only variable references should be returned
April 14, 2011, 04:49:33 am
I think you have the error_reporting in php.ini set to show notices

http://php.net/manual/en/errorfunc.configuration.php

If you are using CiviCRM you shouldn't show notices - except possibly in a development environment
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • Notice: Only variable references should be returned

This forum was archived on 2017-11-26.