In CTools 1.6, a change was committed which changes the way that CTools loads plugin include files #742832: ctools_plugin_load_includes() can set cache on every request.

When using this version of CTools, this error will occur when trying to Save a menu block to a Panel:

PHP Fatal error:  Call to undefined function menu_block_configure_form_follow_validate() in /var/www/drupal/includes/form.inc on line 1459

To fix, we just have to make sure that menu_block.admin.inc is always loaded when using the "menu_tree" content type plugin.

I'll post a patch in a moment.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsnopek’s picture

Patch is attached! Please let me know what you think.

dsnopek’s picture

FileSize
1.19 KB

Wow, I uploaded a 0 byte patch. :-) Not sure how that happened! Here is the real patch.

DamienMcKenna’s picture

Status: Needs review » Reviewed & tested by the community

Seems reasonable. RTBC.

  • Dave Reid committed 27059ca on 7.x-2.x authored by dsnopek
    Issue #2418803 by dsnopek: Fatal error when using with CTools 1.6+ due...
Dave Reid’s picture

Status: Reviewed & tested by the community » Fixed

Committed #2 to 7.x-2.x.

dsnopek’s picture

Thanks! :-)

  • Dave Reid committed 27059ca on 7.x-2.x authored by dsnopek
    Issue #2418803 by dsnopek: Fatal error when using with CTools 1.6+ due...

Status: Fixed » Closed (fixed)

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

jerdavis’s picture

Status: Closed (fixed) » Needs work

I'm getting the same errors with the latest development snapshot of menu_block and the current Ctools release. The patch doesn't seem to be fixing things. Any recommendations?

To clarify, I'm able to create and save a new menu block, but when trying to edit an existing menu block any attempt to save results in a WSOD and the error " PHP Fatal error: Call to undefined function menu_block_configure_form_follow_validate()"

anon’s picture

Priority: Normal » Critical

Same issue here. Had to disable the module inorder to use my site at all.

I changed the prio on this one to critical, as an update breaks the whole site with an Fatal error.

anon’s picture

Priority: Critical » Normal

Oh wait, this was not the error. Sry. Changed the prio back.

Chipie’s picture

I'm having the same error using panels 1.7 and menu_block 2.7.

katokalen2’s picture

Same error here. Using Ctools 1.9, Panels 3.5, Menu Block 7.x-2.7. Can create block fine, it's when I edit and save in blocks admin that I see the same error:

Fatal error: Call to undefined function menu_block_configure_form_follow_validate() in /var/www/drupal/includes/form.inc on line 1465

marcred’s picture

Same error here. duplicated at here
Please, bring it together or treat it as a reopened issue.