PHP Fatal error
-
I tried updating the plugin to version 0.8.8.3 and got a fatal error.
PHP Fatal error: Uncaught Error: Call to undefined function acfe_update_setting() in /wp-content/themes/generatepress-child/inc/advanced-custom-fields-extended.php:26 Stack trace: #0 /wp-includes/class-wp-hook.php(292): my_acfe_modules(5) #1 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #2 /wp-includes/plugin.php(484): WP_Hook->do_action(Array) #3 /wp-content/plugins/advanced-custom-fields-pro/acf.php(326): do_action('acf/init', 5) #4 /wp-includes/class-wp-hook.php(292): ACF->init('') #5 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #6 /wp-includes/plugin.php(484): WP_Hook->do_action(Array) #7 in /wp-content/themes/generatepress-child/inc/advanced-custom-fields-extended.php on line 26
Line 26 here is disabling the forms module as per the example in the plugin FAQ.
add_action('acf/init', 'my_acfe_modules'); function my_acfe_modules(){ // Disable Ajax Author box // acfe_update_setting('modules/author', false); // Disable ACF > Block Types // acfe_update_setting('modules/dynamic_block_types', false); // Disable Forms acfe_update_setting('modules/dynamic_forms', false); // Disable Tools > Post Types // acfe_update_setting('modules/dynamic_post_types', false); // Disable Tools > Taxonomies // acfe_update_setting('modules/dynamic_taxonomies', false); // Disable ACF > Options Pages // acfe_update_setting('modules/dynamic_options_pages', false); // Disable Settings > Options // acfe_update_setting('modules/options', false); // Disable Enhanced UI (Taxonomies, Users, Settings) acfe_update_setting('modules/ui', false); // Disable Multilingual Compatibility // acfe_update_setting('modules/multilang', false); }
I had to comment out the action to restore the site.
Using WordPress 5.7.1 and Advanced Custom Fields PRO 5.9.5.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Fatal error’ is closed to new replies.