Error occurs under several conditions.

  • When adding the better messages module then every page will show the problem
  • when adding a Biblio node after clicking "Populate using Pubmed" under Pubmed Lookup.

Notice: Undefined variable: actions in include() (line 4 of /Applications/MAMP/virtualhosts/hhmi_git/sites/all/themes/rubik/templates/form-default.tpl.php) Warning: Invalid argument supplied for foreach() in element_children() (line 6282 of /Applications/MAMP/virtualhosts/hhmi_git/includes/common.inc).

Comments

greggles’s picture

Title: Biblio incompatibility » Biblio incompatibility - Undefined variable: actions in include() (line 4 of form-default.tpl.php)

This does seem bad. I wonder if any other modules are causing this.

Can you also see if the latest 7.x-4.x-dev fixes this issue?

dgastudio’s picture

same problem here


    Notice: Undefined variable: actions in include() (line 4 of /home/u7394/domains/voshki.u7394.shiva.vps-private.net/sites/all/themes/rubik/templates/form-default.tpl.php). Backtrace:

    include('/home/u7394/domains/voshki.u7394.shiva.vps-private.net/sites/all/themes/rubik/templates/form-default.tpl.php') theme.inc:1495
    theme_render_template('sites/all/themes/rubik/templates/form-default.tpl.php', Array) theme.inc:1185
    theme('system_settings_form', Array) common.inc:5772
    drupal_render(Array) common.inc:5779
    drupal_render(Array) common.inc:5871
    render(Array) page.tpl.php:32
    include('/home/u7394/domains/voshki.u7394.shiva.vps-private.net/sites/all/themes/rubik/page.tpl.php') theme.inc:1495
    theme_render_template('sites/all/themes/rubik/page.tpl.php', Array) theme.inc:1185
    theme('page', Array) common.inc:5772
    drupal_render(Array) common.inc:5634
    drupal_render_page(Array) common.inc:2588
    drupal_deliver_html_page(Array) common.inc:2476
    drupal_deliver_page(Array, '') menu.inc:531
    menu_execute_active_handler() index.php:23

    Warning: Invalid argument supplied for foreach() in element_children() (line 6300 of /home/u7394/domains/voshki.u7394.shiva.vps-private.net/includes/common.inc). Backtrace:

    element_children(NULL) template.php:509
    rubik_render_clone(NULL) form-default.tpl.php:4
    include('/home/u7394/domains/voshki.u7394.shiva.vps-private.net/sites/all/themes/rubik/templates/form-default.tpl.php') theme.inc:1495
    theme_render_template('sites/all/themes/rubik/templates/form-default.tpl.php', Array) theme.inc:1185
    theme('system_settings_form', Array) common.inc:5772
    drupal_render(Array) common.inc:5779
    drupal_render(Array) common.inc:5871
    render(Array) page.tpl.php:32
    include('/home/u7394/domains/voshki.u7394.shiva.vps-private.net/sites/all/themes/rubik/page.tpl.php') theme.inc:1495
    theme_render_template('sites/all/themes/rubik/page.tpl.php', Array) theme.inc:1185
    theme('page', Array) common.inc:5772
    drupal_render(Array) common.inc:5634
    drupal_render_page(Array) common.inc:2588
    drupal_deliver_html_page(Array) common.inc:2476
    drupal_deliver_page(Array, '') menu.inc:531
    menu_execute_active_handler() index.php:23

greggles’s picture

Priority: Major » Normal

@kervi are you also using Biblio module as described by the original poster? Also downgrading this because it seems like these are just notices/warnings and not fatal errors (right?).

dgastudio’s picture

in my case errors happens becouse i'm using better messages.

sorry.

greggles’s picture

Title: Biblio incompatibility - Undefined variable: actions in include() (line 4 of form-default.tpl.php) » Undefined variable: actions in include() (line 4 of form-default.tpl.php)

@kervi - That's very helpful to know that this issue affects multiple modules. Does it happen for you on every page or just certain pages?

dgastudio’s picture

On evry page

greggles’s picture

That should make it pretty easy for the rubik maintainers to identify the problem.

I've updated the issue summary to include that.

micnap’s picture

I'm also getting this issue when using the Redhen CRM module - http://drupal.org/project/redhen. So far I've only seen the error on the /users/%user/edit/redhen_contact page. The page allows users to edit their CRM profile.

Thanks,
Mickey

micnap’s picture

More info:

I was getting the exact same errors as kervi in #2 but am not using the Biblio module.
In my case, the Redhen module is unsetting the save button for the user_profile_form - unset($form['actions']);
If I comment out the unset, all works fine.

Hope this helps.

Mickey

dgastudio’s picture

the problem appear again with tipsy module

dgastudio’s picture

Issue summary: View changes

clarifying with more info from further comments

haydeniv’s picture

Issue summary: View changes
Status: Active » Fixed

Simple fix.
Committed: ac3854a

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.