Closed (fixed)
Project:
Composite Layout
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2010 at 00:22 UTC
Updated:
16 Aug 2012 at 15:31 UTC
I was getting a lot of undefined indexes in beta8 and decided to try -dev. That reduced the undefined indexes to this list.
Notice: Undefined index: file in /path/to/stuff/html/sites/all/modules/composite/composite.module on line 116
Notice: Undefined index: module in /path/to/stuff/html/sites/all/modules/composite/modules/fields/composite_fields.module on line 24
Notice: Undefined index: module in /path/to/stuff/html/sites/all/modules/composite/modules/fields/composite_fields.module on line 24
Notice: Undefined index: file in /path/to/stuff/html/sites/all/modules/composite/composite.module on line 116
Notice: Trying to get property of non-object in /path/to/stuff/html/sites/all/modules/composite/modules/fields/composite_fields.module on line 157
Notice: Undefined index: file in /path/to/stuff/html/sites/all/modules/composite/composite.module on line 116
Notice: Undefined index: task access in /path/to/stuff/html/sites/all/modules/composite/composite.module on line 274
Notice: Undefined index: task access in /path/to/stuff/html/sites/all/modules/composite/composite.module on line 274
konordo took a look at your code and I think has solved the problem. This is his proposed patch:
Replace
// Includes the 'file' parameter of a reference type, if defined.
function composite_include_file($type) {
if ($type) {
if ($type['file'] && is_file($type['file'])) {
include_once $type['file'];
}
}
}
with
// Includes the 'file' parameter of a reference type, if defined.
function composite_include_file($type) {
if ($type['file']) {
if (is_file($type['file'])) {
include_once $type['file'];
}
}
}
Comments
Comment #1
idcm commentedWait, wrong patch. Error persists. Sorry
Comment #2
idcm commentedhere is an update from konordo
For this issue:
Replace this:
with this
Comment #3
idcm commentedkonordo share this with me for this notice
Notice: Undefined index: module in /home/idcmi/drupallayout.idcminnovations.com/html/sites/all/modules/composite/modules/fields/composite_fields.module on line 24
change this
to this
Comment #4
bengtan commentedHi,
Actually, these aren't 'bugs' per se. These are just 'notice' messages.
From what I remember of the Drupal 6 requirements for PHP, you are supposed to turn off PHP 'notice' messages and ignore them.
However, I've made a couple of commits to try to fix this anyway.
See http://drupal.org/cvs?commit=445320.
If you encounter any more of these, please let me know.
Thank you.
Comment #5.0
greggleshttp://drupal.org/node/954334