0

I get these 7 messages every time a user goes to an event listing.
Happens in this order. I'd like to troubleshoot and eliminate.

Notice: Undefined index: title in commons_origins_preprocess_form_content() of profiles/commons/themes/commons/commons_origins/template.php).

Notice: Undefined index: #items in commons_events_entity_view_alter() of ….profiles/commons/modules/commons/commons_events/commons_events.module).

Warning: Invalid argument supplied for foreach() in element_children() of /includes/common.inc

Warning: Illegal string offset '#children' in drupal_render() (line 5890 ) of …includes/common.inc

Warning: Illegal string offset '#children' in drupal_render() (line 5900 ) of …includes/common.inc

Warning: Illegal string offset '#children' in drupal_render() (line 5983 ) of …includes/common.inc

Warning: Illegal string offset '#printed' in drupal_render() of /includes/common.inc).

2
  • Can u add the template.php file code for getting a solution..?? Commented Mar 12, 2014 at 21:44
  • 2
    This question appears to be off-topic because it is a bugreport and should be reported in issue queue, not here.
    – Mołot
    Commented Dec 1, 2014 at 17:50

1 Answer 1

1

title is not defined. #items is not defined. foreach is not getting a value to work with. #children doesn't exist to render.#printed doesn't exist to render. go into the function where title is supposed to be defined and check that there is a value. Do the same for the rest. Check what further up the chain in your code is calling these values. Try doing a backtrace.

2
  • Thanks. I'm not that expert with Drupal. Can you give me a bit more specific steps to look at the issue. Function where title is supposed to be defined? Much appreciated.
    – SF_Bob
    Commented Mar 13, 2014 at 15:39
  • this is the function where title is being expected commons_origins_preprocess_form_content() Commented Mar 13, 2014 at 22:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.