• Resolved carlj21

    (@carlj21)


    Hi,

    i have a problem with this plugin on my site.

    When i add faq to products the page will no longer work and i obtain error 500 from server. Here is the error:
    PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function ffw_get_template(), 2 passed in ……/wp-content/plugins/faq-for-woocommerce/includes/faq-woocommerce-public.php on line 126 and at least 3 expected in ……./wp-content/plugins/faq-for-woocommerce/includes/ffw-helper.php

    I have this error after upgrading the plugin.

    FAQ for Woocommerce Version 1.3.23
    WooCommerce Version 6.2.1
    Wordpress Version 5.9.1
    PHP Version 7.4.24

    How can i solve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter carlj21

    (@carlj21)

    I have solved for now

    in file includes/faq-woocommerce-public.php i have changed the last line of this function and added the third param with false

    function ffw_new_product_tab_content() {
    global $product;
    $id = $product->get_id();
    //get layout
    $options = get_option( ‘ffw_general_settings’ );
    $layout = isset( $options[‘ffw_layout’] ) ? (int) $options[‘ffw_layout’] : 1;
    echo ffw_get_template($layout, $id, false);
    }

    Plugin Author WPFeel

    (@wpfeelteam)

    @carlj21

    Thanks for the issue and the solution. We were on vacation and the issue occurred in the meantime. We solved the issue and release as you mention for the solution.

    Thanks a lot. Please tell is if you think we have anything to improve in the plugin.

    Regards
    WPFeel Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Php fatal error ffw_get_template()’ is closed to new replies.