Title: Uncaught TypeError
Last modified: March 3, 2022

---

# Uncaught TypeError

 *  Resolved [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-57/)
 * Hi,
 * Today I experienced a fatal error when trying to check the settings of a CFF 
   form. Here is the error:
 * `Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback)
   must be a valid callback, function "change_graphic_lib" not found or invalid 
   function name in /home/xxxx/xxxx.com/wp-includes/class-wp-hook.php:307 Stack 
   trace: #0 /home/xxxx/xxxx.com/wp-includes/plugin.php(189): WP_Hook->apply_filters(
   Array, Array) #1 /home/xxxx/xxxx.com/wp-includes/media.php(3806): apply_filters('
   wp_image_editor...', Array) #2 /home/xxxx/xxxx.com/wp-includes/media.php(3781):
   _wp_image_editor_choose(Array) #3 /home/xxxx/xxxx.com/wp-includes/media.php(3878):
   wp_image_editor_supports(Array) #4 /home/xxxx/xxxx.com/wp-includes/media.php(
   4606): wp_plupload_default_settings() #5 /home/xxxx/xxxx.com/wp-content/plugins/
   calculated-fields-form/inc/cpcff_admin_int.inc.php(15): wp_enqueue_media() #6/
   home/xxxx/xxxx.com/wp-content/plugins/calculated-fields-form/inc/cpcff_main.inc.
   php(277): include_once('/home/proofs01/...') #7 /home/xxxx/xxxx.com/wp-includes/
   class-wp-hook.php(307): CPCFF_MAIN->admin_pages('') #8 /home/xxxx/xxxx.com/wp-
   includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #9 /home/xxxx/
   xxxx.com/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #10 /home/xxxx/
   xxxx.com/wp-admin/admin.php(259): do_action('toplevel_page_c...') #11 {main} 
   thrown in /home/xxxx/xxxx.com/wp-includes/class-wp-hook.php on line 307`
 * Steps to reproduce:
    1. Open Calculated Fields Form from the Settings menu 2.
   Select the Settings of a form
 * If I disable all other plugins and activate the Twenty-Twenty-One theme, there
   is no error. If I disable all other plugins and activate the Enfold theme, the
   error occurs.
 * Therefore, the issue seems to be compatibility between the Enfold theme and Calculated
   Fields Form.
 * Any suggestions? I can supply a copy of the theme for testing purposes if required.
 * +++++++++++
    WordPress 5.9.1 Calculated Field Form: 1.1.70 Enfold: 4.9 ++++++
   +++++
    -  This topic was modified 4 years, 2 months ago by [barnez](https://wordpress.org/support/users/pidengmor/).
      Reason: fix formatting
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-57%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-57/#post-15422922)
 * Hello [@pidengmor](https://wordpress.org/support/users/pidengmor/)
 * The issue is not happening in our plugin. Please, analyze the error message:
 * Our plugin calls an internal WordPress function `wp_enqueue_media` ([https://developer.wordpress.org/reference/functions/wp_enqueue_media/](https://developer.wordpress.org/reference/functions/wp_enqueue_media/)).
   This function triggers a hook `WP_Hook->apply_filters(Array, Array)` and there
   is a plugin or theme on your website with add_filter that calls the non-existent
   function `change_graphic_lib`
 * Best regards.
 *  Thread Starter [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-57/#post-15422994)
 * Hi,
 * Thanks for narrowing down the function. I’ve found a filter that fixes this issue
   with the theme.
 * Cheers!
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-57/#post-15423001)
 * Excellent !!!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [Enfold theme](https://wordpress.org/support/topic-tag/enfold-theme/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-57/#post-15423001)
 * Status: resolved