• Hi!

    When using minimog theme there is not enough arguments passed to woocommerce_title().

    Full error: Fatal error: Uncaught ArgumentCountError: Too few arguments to function Quotes_WC::woocommerce_title(), 1 passed in /presta/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in /presta/wp-content/plugins/quotes-for-woocommerce/class-quotes-wc.php:774 Stack trace: #0 /presta/wp-includes/class-wp-hook.php(307): Quotes_WC->woocommerce_title('Home') #1 /presta/wp-includes/plugin.php(189): WP_Hook->apply_filters('Home', Array) #2 /presta/wp-content/plugins/insight-core/includes/breadcrumb.php(110): apply_filters('the_title', 'Home') #3 /presta/wp-content/plugins/insight-core/includes/breadcrumb.php(490): InsightCore_Breadcrumb->breadcrumb(Array) #4 /presta/wp-content/themes/minimog/template-parts/breadcrumb.php(10): insight_core_breadcrumb() #5 /presta/wp-includes/template.php(772): require('/presta/wp-cont...') #6 /presta/wp-includes/template.php(716): load_template('/presta/wp-cont...', false, Array) #7 /presta/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #8 /presta/wp-cont in /presta/wp-content/plugins/quotes-for-woocommerce/class-quotes-wc.php on line 774

    Could you help me solve this? I can share anything needed as this is just an early test site and your plugin is essential for the whole concept.

    Plugin kinda works when I remove $id from the required parameters in woocommerce_title() but at the end I might be loosing something if its removed.

    • This topic was modified 2 years, 6 months ago by webjet.
    • This topic was modified 2 years, 6 months ago by webjet.
    • This topic was modified 2 years, 6 months ago by webjet.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pinal.shah

    (@pinalshah)

    Hi @webjet,

    I apologize for the delay in response.

    I checked the woocommerce_title() in the plugin and I’m passing 2 arguments to the same. Unsure why the error is being thrown.

    Can you kindly let me know the WP, WC & Quotes plugin versions being used?

    If you are on the latest versions of all the plugins and the issue persists, can you kindly send the theme to pinalj1612 at gmail dot com? I’ll test the latest release with the theme and get back to you.

    I understand that you are seeing this error on the front end WooCommerce pages. Please confirm.

    Thanks,
    Pinal

    • This reply was modified 2 years, 6 months ago by pinal.shah.
    Plugin Author pinal.shah

    (@pinalshah)

    Hi @webjet,

    Sorry, I re-read your query and I think the issue is that I’m expecting 2 arguments in the plugin code and only one is being sent.

    $id is mandatory as the plugin changes the page title based on the page ID. Hence I suggest you do not remove $id. Can you kindly check if the theme is using the latest versions of the WC template files and is completely compatible with WC?

    I think the issue might be caused by the theme and it might be a good idea to get in touch with the theme author as well.

    I’m going to keep this request open until I hear back from you. Please let me know.

    Thanks,
    Pinal

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problems with minimog theme’ is closed to new replies.