• After updating to version 4.0.1 today – site is down….
    WordPress-version 6.6.2
    Aktivt tema: Flatsome (version 3.19.6)
    Nuv?rende plugin: YITH WooCommerce Wishlist (version 4.0.1) PHP version 8.2.21

    En fejl af typen E_ERROR skete i linje 132 i filen …/public_html/wp-content/plugins/yith-woocommerce-wishlist/includes/class-yith-wcwl-install.php. Fejlbesked: Uncaught Error: Call to undefined function wc_create_page() in …/public_html/wp-content/plugins/yith-woocommerce-wishlist/includes/class-yith-wcwl-install.php:132
    Stack trace:
    #0 …/public_html/wp-content/plugins/yith-woocommerce-wishlist/includes/class-yith-wcwl-install.php(76): YITH_WCWL_Install->add_pages()
    #1 …/public_html/wp-content/plugins/yith-woocommerce-wishlist/includes/class-yith-wcwl-install.php(49): YITH_WCWL_Install->init()
    #2 …/public_html/wp-includes/class-wp-hook.php(324): YITH_WCWL_Install->maybe_install()
    #3 …/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 …/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 …/public_html/wp-settings.php(700): do_action()
    #6 …/public_html/wp-config.php(108): require_once(‘/home/…’)
    #7 …/public_html/wp-load.php(50): require_once(‘/home/…’)
    #8 …/public_html/wp-login.php(12): require(‘/home/…’)
    #9 {main}
    thrown

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    thanks for contacting us!

    I don’t get that error when updating the plugin. I recommend you do the following:

    • Please remove the plugin and reinstall and activate it.
    • If this is still the case, check if you have any overridden templates from our plugin in your theme and delete them.

    Could you check it, please?

    Best regards.

    Thread Starter kaastrup

    (@kaastrup)

    Hi Juan

    I have uninstalled the 4.0.1 version. And then reinstalled the same version 4.0.1, and it is working fine now.

    The only difference was, that at first time, when it gave me errors, I had updated from an ealier version 3.xx -> 4.0.0 > 4.0.1. And when I made the update to version 4.0.0 it asked me if I would transform templates to newer PHP version, or some thing like that….

    How do I check if a plugin has overridden some templates ???

    One more thing – The formatting of the product page has changed, so that the default “add to wishlist” text is aligend to the left, and I can not see how to align it with my other text which is aliged to the right.

    And second – On the wishlist page, which only has the shortcode [yith_wcwl_wishlist] – the product stock is wrong – the wishlist simplt says “In stock” to all products even though some products is “on backorder” status…

    I have the same error.

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    – How do I check if a plugin has overridden some templates ???
    Only your theme can override templates. You can check this by going to wp-content/your theme/woocommerce/, and seeing if the name of any file there matches the name of any of our templates located in wp-content/plugins/yith-woocommerce-wishlist/templates/.

    1) Please send us your site URL to check this.

    2) To fix that, please add the following code in the functions.php file of your active theme:

    if ( ! function_exists( 'yith_wcwl_stock_status_custom' ) ) {
    function yith_wcwl_stock_status_custom( $stock_status_html, $item ) {
    if ( 'out-of-stock' === $item->get_stock_status() ) {
    $stock_status_html = '<span class="wishlist-out-of-stock">' . esc_html( apply_filters( 'yith_wcwl_out_of_stock_label', __( 'Out of stock', 'yith-woocommerce-wishlist' ) ) ) . '</span>';
    } elseif ( 'available-on-backorder' === $item->get_stock_status() ) {
    $stock_status_html = '<span class="wishlist-in-stock">' . esc_html__( 'On backorder', 'yith-woocommerce-wishlist' ) . '</span>';
    } else {
    $stock_status_html = '<span class="wishlist-in-stock">' . esc_html( apply_filters( 'yith_wcwl_in_stock_label', __( 'In Stock', 'yith-woocommerce-wishlist' ) ) ) . '</span>';
    }

    return $stock_status_html;
    }

    add_filter( 'yith_wcwl_stock_status', 'yith_wcwl_stock_status_custom', 10, 2 );
    }

    Could you check it, please?

    Best regards.

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