Needs work
Project:
Patterns
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2010 at 17:14 UTC
Updated:
7 Nov 2010 at 16:35 UTC
Jump to comment: Most recent file
I'm getting a number of PHP "Notice" messages showing up when using patterns. E.g.:
Notice: Undefined index: id in user_patterns() (line 121 of Q:\nbc\kola_rnair\src\sites\all\modules\patterns\components\user.inc).
Notice: Undefined index: delete in block_patterns() (line 62 of Q:\nbc\kola_rnair\src\sites\all\modules\patterns\components\block.inc).
Notice: Undefined variable: errors in patterns_prepare_actions() (line 1501 of Q:\nbc\kola_rnair\src\sites\all\modules\patterns\patterns.module).
Notice: Undefined index: abort in patterns_batch_finish() (line 1549 of Q:\nbc\kola_rnair\src\sites\all\modules\patterns\patterns.module).
Patches attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | block.inc_.patch | 2.75 KB | hiddentao |
| user.inc_.patch | 1.37 KB | hiddentao | |
| patterns.module.patch | 3.7 KB | hiddentao | |
| block.inc_.patch | 2.3 KB | hiddentao |
Comments
Comment #1
hiddentao commentedBetter block.inc patch attached. This uses isset() rather than empty() when checking block 'delta', thus allowing for delta to be 0.
Comment #2
vaish commentedApplying this patch failed. It seems that it was created against either wrong or outdated version of patterns module. For example:
patterns.module.patch contains the following:
while current 6.x dev version of patterns module contains this:
Basically lots of PHP notices where already fixed some time ago including the above one. See: #446068: E_ALL compilance
6.x-1.x-dev corresponds to DRUPAL-6--1 CVS branch and that's where all D6 development is happening and what needs to be used for creating patches.