• Resolved WPUser

    (@renik)


    Hello,
    we created custom the for our website. Used this site to generate theme: https://them.es/starter-bootstrap/

    Pages show fine. If I open some article, page width is maybe 50% and I see errors at the bottom.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Template_Loader::unsupported_theme_title_filter(), 1 passed in /data/sub/wordpress/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in /data/sub/wordpress/wp-content/plugins/woocommerce/includes/class-wc-template-loader.php:509 Stack trace: #0 /data/sub/wordpress/wp-includes/class-wp-hook.php(307): WC_Template_Loader::unsupported_theme_title_filter('VLADYKA J\xC3\x81N BA...') #1 /data/sub/wordpress/wp-includes/plugin.php(189): WP_Hook->apply_filters('VLADYKA J\xC3\x81N BA...', Array) #2 /data/sub/wordpress/wp-content/themes/mytheme/sidebar.php(46): apply_filters('the_title', 'VLADYKA J\xC3\x81N BA...') #3 /data/sub/wordpress/wp-includes/template.php(770): require_once('/data/2/c/2cce3...') #4 /data/sub/wordpress/wp-includes/template.php(716): load_template('/data/2/c/2cce3...', true, Array) #5 /data/sub/wordpress/wp-includes/general-template.php(136): locate_template(Array, true, true, Array) #6 /data/sub/wordpress/wp-content/themes/mytheme/footer.php(8): get_sidebar() #7 /data/sub/wordpress/wp-includes/template.php(770): require_once('/data/2/c/2cce3...') #8 /data/sub/wordpress/wp-includes/template.php(716): load_template('/data/2/c/2cce3...', true, Array) #9 /data/sub/wordpress/wp-content/plugins/header-footer-elementor/themes/default/class-hfe-default-compat.php(81): locate_template(Array, true) #10 /data/sub/wordpress/wp-includes/class-wp-hook.php(309): HFE\Themes\HFE_Default_Compat->override_footer(NULL) #11 /data/sub/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #12 /data/sub/wordpress/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #13 /data/sub/wordpress/wp-includes/general-template.php(82): do_action('get_footer', NULL, Array) #14 /data/sub/wordpress/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(30): get_footer() #15 /data/sub/wordpress/wp-includes/template-loader.php(106): include('/data/2/c/2cce3...') #16 /data/sub/wordpress/wp-blog-header.php(19): require_once('/data/2/c/2cce3...') #17 /data/sub/wordpress/index.php(17): require('/data/2/c/2cce3...') #18 {main} thrown in /data/sub/wordpress/wp-content/plugins/woocommerce/includes/class-wc-template-loader.php on line 509

    Any help please? Using Elementor Pro. If I deactivate Woocommerce, article page shows fine without any problems with correct width (fullpage)
    Thank you

    • This topic was modified 2 years, 8 months ago by WPUser.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter WPUser

    (@renik)

    ok seems I fixed it by adding this in functions.php

    add_action( 'after_setup_theme', 'woocommerce_support' );
    function woocommerce_support() {
       add_theme_support( 'woocommerce' );
    }     

    Hi @renik

    Glad to hear that it’s sorted out!

    Please feel free to open a new topic if you have any other questions.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom theme – woocommerce error – WC_Template_Loader::unsupported_theme_title_’ is closed to new replies.