• Hi,

    I’ve updated the plugin to its latest update and it seems that when making the purchase process of a product (Woocommerce), at the end of the purchase instead of the Thank you page I get a critical error of the web. Despite this, the purchase is successful as the user receives his confirmation email.

    To get details of the error I activated the WP_DEBUG mode and I got the following deprecated error on the checkout page:

    Deprecated: Hook pll_after_languages_cache is?deprecated?since version 3.4 with no alternative available.

    With the WP_DEBUG mode activated, the payment fields are not available and I can’t complete the order.

    It seems that by deactivating the?Polylang plugin?and placing an order again, it works correctly (although all the content -footer, posts, products- is duplicated in the two languages that I’ve in the website).

    Php version: 8.1.23

    WordPress version: 6.3.1

    Any help would be great.

    Thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    I am not sure that this deprecated notice could cause your critical error.

    The deprecated notice is due to a 3rd party plugin / theme / custom code which uses this former hook from Polylang pll_after_languages_cache . We have removed it in Polylang 3.4 and we display this notice in debug mode to inform the developers who extend Polylang.

    I invite you to search which theme / plugin / custom code causes this notice in Polylang and inform the developer about this issue. Here is some useful information for developers about the changes we made in this version: https://polylang.pro/polylang-3-4-eases-the-translation-of-custom-tables/

    doreenhawdon

    (@doreenhawdon)

    Well, as the plugin that is causing this notcie for me is Polylang for Woocommerce, please allow me to notify you. ??

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