don’t work on wp 6.1
-
plugin causes an error when installing on wordpress version 6.1
-
Hello,
I found the same problem with the plugin.
When it is activated on a version of WordPress 6.1, access to the Back-Office is no longer possible.
This creates an error “Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) “.Best regards
Same here! Blank screen after login. Isolating the plugin helps.
Memory size was 1GB – and still not enough…Thanks for your reports.
I’m checking it
What PHP varsion do you have on the server?php 7.4
PHP 8.0
I cannot reproduce this problem.
In my website is everything OK.
Maybe you have too many unneeded plugins and skins selected for searching?
uncheck not needed:
https://drive.google.com/file/d/1eaPGaO1LriRs1p8_PCtRohGF989F4ZlZ/view?usp=sharingAlready did the standard check: isolating/deactivating all plugins and re-activating one by one. Together with my hosting provider we found … that it’s indeed just the TTfP. As mentioned by the second poster, I can confirm that the plugin wants to consume an impossible hight memory.
B.t.w: One cannot uncheck the functions according to your screenshot, as … the backend is not accessible when TTfP is active ;-).
- This reply was modified 1 year, 7 months ago by marscom.
I still cannot reproduce this problem.
Can you check which filter is wrong in file:
theme-translation-for-polylang.phpby commenting these lines:
add_filter(‘gettext’, ‘tt_pll_gettext_filter’, 1, 2);
add_filter(‘esc_html’, ‘tt_pll_esc_html_filter’, 1, 2);
add_filter(‘ngettext’, ‘tt_pll_ngettext_filter’, 1, 4);
add_filter(‘gettext_with_context’, ‘tt_pll_gettext_with_context_filter’, 999, 4);Hello,
It is this line that is causing problems :
add_filter('gettext', 'tt_pll_gettext_filter', 1, 2);
To be more precise, we encounter this problem on all sites with the plugin when we switch them to WP 6.1. Whatever the plugins and themes present.
OK, I pushed changes, please check 3.2.14 version 🙂
After updating plugin to version 3.2.14 following warning
Warning: in_array() expects parameter 2 to be array, null given in /wp-content/plugins/theme-translation-for-polylang/theme-translation-for-polylang.php on line 342
Environment
WordPress 6.1
PHP 7.4after installing the plugin:
Warning: in_array() expected parameter 2 to be array, null given in /wp-content/plugins/theme-translation-for-polylang/theme-translation-for-polylang.php on line 342
php 7.4
WordPress 6.1I got the same problem even with WordPress 6.0.3. I am still running older version of Polylang Pro however (3.2.5).
I performed the following quick patch at
/wp-content/plugins/theme-translation-for-polylang/theme-translation-for-polylang.php at line 342.Replaced
if (in_array($domain, $settings[‘themes’]) || in_array($domain, $settings[‘plugins’])) {
With
if (is_array($settings[‘themes’]) && in_array($domain, $settings[‘themes’]) || is_array($settings[‘plugins’]) && in_array($domain, $settings[‘plugins’])) {
- The topic ‘don’t work on wp 6.1’ is closed to new replies.