• Resolved Rufus87

    (@rufus87)


    Hi there,

    We found and issue in plugin v1.8.169.

    Please see following screenshot: https://prnt.sc/rtfe4e

    “wc_get_template” function should have 3rd argument to look for the requested template in that path, otherwise it will look for it in woocommerce path (first in theme, then in woocommerce plugin).

    As the argument is not provided it try to find it in theme, then in plugin and fails with PHP fatal error as:

    [05-Apr-2020 00:06:22 UTC] PHP Warning: include(): Failed opening ‘/wp-content/plugins/woocommerce/templates/woo-rfq/rfq-cart-empty.php’ for inclusion …

    Please fix that. Thanks

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Neah Plugins

    (@gplsaver)

    Hello,

    Something else must be wrong. If you are overriding the template, then the path is
    “themes/your_theme/woocommerce/woo-rfq/rfq-cart-empty.php” not “woocommerce/templates/woo-rfq”.

    Are you overriding the template or are you just getting the error?

    Thread Starter Rufus87

    (@rufus87)

    Hey,

    Thanks for the quick response.

    That template is not overwritten in theme. So it should use the one from your plugin, as the requested template does not exists in native Woocommerce plugin as well.

    Thank.

    Plugin Author Neah Plugins

    (@gplsaver)

    OK.Please try the 170 and let me know if the issue is resolved.

    Thread Starter Rufus87

    (@rufus87)

    Thanks a lot. This will work for sure. Feel free to close the topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WC template wrong call’ is closed to new replies.