Support » Localhost Installs » Fatal error: Uncaught TypeError: call_user_func_array(): Argument

  • Akif Alsancak


    Herkese merhaba!

    Yeni bir WordPress kullanıcısıyım ve bu konularda bilgisizim, yardımınıza ihtiyacım var 🙁

    WordPress’i xammp ile yükledim ve farklı bir tema seçtim. Sayfa oluşturmaya çalıştığımda aşağıdaki hatayla karşılaşıyorum (WordPress ile gelen standart tema çalışıyor onda bir sorun yok, farklı bir tema seçtiğimde bu sorunla karşılaşıyorum)

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “education_x_excerpt_length” not found or invalid function name in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php:310 Stack trace: #0 C:\xampp\htdocs\wordpress\wp-includes\plugin.php(205): WP_Hook->apply_filters(55, Array) #1 C:\xampp\htdocs\wordpress\wp-includes\formatting.php(4002): apply_filters(‘excerpt_length’, 55) #2 C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(310): wp_trim_excerpt(”, Object(WP_Post)) #3 C:\xampp\htdocs\wordpress\wp-includes\plugin.php(205): WP_Hook->apply_filters(”, Array) #4 C:\xampp\htdocs\wordpress\wp-includes\rest-api\endpoints\class-wp-rest-posts-controller.php(1875): apply_filters(‘get_the_excerpt’, ”, Object(WP_Post)) #5 C:\xampp\htdocs\wordpress\wp-includes\rest-api\endpoints\class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request)) #6 C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-server.php(1194): WP_REST_Posts_Controller->get_item(Object(WP_REST_Request)) #7 C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/wp/v2/pages/(?…’, Array, NULL) #8 C:\xampp\htdocs\wordpress\wp-includes\rest-api.php(545): WP_REST_Server->dispatch(Object(WP_REST_Request)) #9 C:\xampp\htdocs\wordpress\wp-includes\rest-api.php(2912): rest_do_request(Object(WP_REST_Request)) #10 [internal function]: rest_preload_api_request(Array, ‘/wp/v2/pages/6?…’) #11 C:\xampp\htdocs\wordpress\wp-includes\block-editor.php(740): array_reduce(Array, ‘rest_preload_ap…’, Array) #12 C:\xampp\htdocs\wordpress\wp-admin\edit-form-blocks.php(77): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context)) #13 C:\xampp\htdocs\wordpress\wp-admin\post-new.php(72): require(‘C:\\xampp\\htdocs…’) #14 {main} thrown in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 310

    • This topic was modified 1 month ago by James Huff. Reason: moved to Localhost Installs since this is a localhost install

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p


    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter Akif Alsancak


    Thank you for your reply.

    Comes with WordPress standard theme; When I go back to the theme of twenty twenty-three, twenty twenty-one and twenty twenty-two, I can add pages without such a problem. I want to work on a different theme. The name of that theme is ‘Education-X’. I have a problem with this theme. I cannot create a page when I disable the plugins. The problem is not with the plugins but with the theme I am using. I don’t know what to do, I’ve been dealing with this problem for hours.

    Moderator t-p


    When I go back to the theme of twenty twenty-three, twenty twenty-one and twenty twenty-two, I can add pages without such a problem.

    This means the problem is with the theme you use.

    I recommend asking at that theme’s dedicated support at so that the theme’s developers can help you with this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.