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 CiviContribute (Moderator: Donald Lobo) »
  • Undefined variable: inactiveNeeded
Pages: [1]

Author Topic: Undefined variable: inactiveNeeded  (Read 2483 times)

sungoddess

  • Guest
Undefined variable: inactiveNeeded
March 26, 2008, 10:42:09 am
Greetings!

I'd really love someone to help me figure out what I'm doing wrong here.

I am upgrading a site, and switching their numerous attempts to create forms to gather information to CiviCRM.

There are a number of custom fields required for the sign up form. I'm using a CiviContribute page, with all the contributions turned off.

Included two profiles.
At first I was adding fields from two groups into the same profile. But keep getting this error:

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Created two profiles, one above and one below.

Now for every custom field in the SECOND profile I get this:

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1426

Notice: Undefined variable: inactiveNeeded in /Users/ndelamiko/Sites/bcsi/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/CustomField.php on line 762

-------------

Both profiles, and the fields appear to be set up the same way, but I cannot figure out what I am doing wrong.

I looked at the files, customField.php and UFGroup.php. Both files are asking for a variable $inactiveNeeded on the lines in question, but I can see no where in the actual custom field forms, where this is an option to select or deselect, and hence become a passable variable.

I could use some help with this one, because my brain is taxed after hours and hours of looking at this.


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: Undefined variable: inactiveNeeded
March 26, 2008, 10:57:56 am

You should change your php.ini settings to suppress any messages of type "Notice". You can do this in joomla settings (i think)

i've fixed the below two warnings and should not happen in 2.0.2. However i suspect there are other places where we do raise a notice message

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

sungoddess

  • Guest
Re: Undefined variable: inactiveNeeded
March 26, 2008, 11:13:42 am
Where in Joomla would I find this setting?

In the CiviCRM, or in the global settings (cause I have to say I've never seen anything like that).

----
UPDATE:

Found and edited the php.ini file, but it's not making a difference.

This is the section I think is relevant:

; Examples:
;
;   - Show all errors, except for notices and coding standards warnings
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices and coding standards warnings
;
error_reporting  =  E_ALL & ~E_NOTICE


Is that right?
« Last Edit: March 26, 2008, 11:18:10 am by sungoddess »

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: Undefined variable: inactiveNeeded
March 26, 2008, 11:20:52 am

the joomla settings is here:

administrator/index2.php?option=com_config&hidemainmenu=1

click on the server tab

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

sungoddess

  • Guest
Re: Undefined variable: inactiveNeeded
March 26, 2008, 11:28:36 am
You are a superstar!

THANK YOU!

aspagarino

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 10
  • San Diego Joomla
    • California Center for Sustainable Energy
  • CiviCRM version: CiviCRM 4.3
  • CMS version: Drupal 7
Re: Undefined variable: inactiveNeeded
October 17, 2008, 02:52:41 pm
I just moved to a dedicated server (Joomla 1.5.6 and CiviCRM ver 2.1.0 Stable) and I am getting a Notice when a Multi-option field is displayed:

Code: [Select]
Notice: Undefined variable: field in /var/www/californiaenergycenter.org/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/CustomField.php on line 994
I checked the Error Reporting on the Joomla configuration and it's already set to "none"... since I have access to the php.ini file I am changing the error reporting to:

error_reporting = E_ALL & ~E_NOTICE

If someone thinks this is not a good idea please let me know ;)
Andres

Open Source is Green

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Undefined variable: inactiveNeeded

This forum was archived on 2017-11-26.