Title: Hook pll_after_languages_cache error
Last modified: September 8, 2023

---

# Hook pll_after_languages_cache error

 *  [bloomdes](https://wordpress.org/support/users/bloomdes/)
 * (@bloomdes)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/hook-pll_after_languages_cache-error/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhook-pll_after_languages_cache-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/hook-pll_after_languages_cache-error/#post-17036056)
 * 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/](https://polylang.pro/polylang-3-4-eases-the-translation-of-custom-tables/)
 *  [doreenhawdon](https://wordpress.org/support/users/doreenhawdon/)
 * (@doreenhawdon)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/hook-pll_after_languages_cache-error/#post-17233166)
 * 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.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [doreenhawdon](https://wordpress.org/support/users/doreenhawdon/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/hook-pll_after_languages_cache-error/#post-17233166)
 * Status: not resolved