These are not an issue of just generating E_NOTICEs. These variables don't even exist and need some serious looking into to and might be causing some other bugs so I've left it to the more knowledgeable CCK peeps to do. E_ALL or phpEclipse is your friend! :) CCK is coming along nicely!!!

Severity and Description Path Resource Location Creation Time Id
The local variable $context may not have been initialized sites/all/modules/cck field.php line 201 1172550743693 64307

The local variable $content may not have been initialized sites/all/modules/cck content_copy.module line 253 1172707024895 65213

The local variable $form_id may not have been initialized sites/all/modules/cck content_copy.module line 146 1172707024895 65212

The local variable $item may not have been initialized sites/all/modules/cck number.module line 274 1172707024895 65201

Comments

yched’s picture

1st one (field.php) is not really important because field.php is just documentation stuff that never gets executed. It means the example for hook_field('view') was incomplete, though.
Fixed now.

2nd one (content_copy - 253) looks strange but it's because $content is supposed to be created in the eval() that's just above. It's probably best to initialize it, though.
Fixed now.

3rd one (content_copy - 146) : I'm not sure what's this supposed to be - Karen should know better :-)

4rth one (number - 274) : that is a bug indeed :-) Will look into this.

CCK is coming along nicely!!!
Does that mean that, these 4 errors aside, CCK does not explode with E_ALL ? I wouldn't have expected that :-)

RobRoy’s picture

Oh, I missed that eval. Heh, I'm actually not using E_ALL, but just have phpEclipse to tell me of any undefined vars. CCK working great means, I'm loving all the new features since I last took a stab at it. I'm writing a field for a ChipIn event and I'm realizing how powerful CCK is...so good work.

yched’s picture

Ah, ok ;-) I think we're on for a lot more when we open the E_ALL door...

yched’s picture

Title: 4 undefined vars » undefined $form_id in content_copy

4rth issue (number module) is fixed now.

Renaming the issue to focus on the last issue :
"The local variable $form_id may not have been initialized sites/all/modules/cck content_copy.module line 146"

dopry’s picture

Status: Active » Closed (fixed)