Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | menu_block-ctools-1.6-2418803-2.patch | 1.19 KB | dsnopek |
Comments
Comment #1
dsnopekPatch is attached! Please let me know what you think.
Comment #2
dsnopekWow, I uploaded a 0 byte patch. :-) Not sure how that happened! Here is the real patch.
Comment #3
DamienMcKennaSeems reasonable. RTBC.
Comment #5
Dave ReidCommitted #2 to 7.x-2.x.
Comment #6
dsnopekThanks! :-)
Comment #9
jerdavisI'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()"
Comment #10
anonSame 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.
Comment #11
anonOh wait, this was not the error. Sry. Changed the prio back.
Comment #12
Chipie CreditAttribution: Chipie commentedI'm having the same error using panels 1.7 and menu_block 2.7.
Comment #13
katokalen2 CreditAttribution: katokalen2 commentedSame 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
Comment #14
marcred CreditAttribution: marcred commentedSame error here. duplicated at here
Please, bring it together or treat it as a reopened issue.