Title: PHP Fatal error
Last modified: May 8, 2021

---

# PHP Fatal error

 *  Resolved [excentricjester](https://wordpress.org/support/users/excentricjester/)
 * (@excentricjester)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-253/)
 * 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)

 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-253/#post-14415287)
 * Hello,
 * Thanks for the feedback! It looks like your WordPress install had some problems
   during the files upgrade and had to disable the ACF Extended plugin, which produced
   this error since `acfe_update_setting()` is an ACF Extended function.
 * To avoid this kind of problem, I would recommend to use the `acfe/init` hook 
   instead of `acf/init` when calling `acfe_update_setting()`. This way, the function
   only get called when ACF Extended is enabled. Usage example:
 *     ```
       add_action('acfe/init', 'my_acfe_modules');
       function my_acfe_modules(){
   
           acfe_update_setting('modules/dynamic_forms', false);
   
       }
       ```
   
 * Note: The `acfe/init` hook usage to disable ACF Extended modules is documented
   and updated on the website, but not here on the plugin readme FAQ, as you reported.
   I’ll update it, thanks!
 * Hope it helps.
 * Have a nice day!
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/acf-extended/assets/icon-256x256.png?rev=2071550)
 * [Advanced Custom Fields: Extended](https://wordpress.org/plugins/acf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-extended/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-253/#post-14415287)
 * Status: resolved