[Plugin: Polylang] – Errors when only one language exists
-
Hello,
I would like to inform the plugin’s creator that having a single language in the general languages settings causes multiple warnings while saving post/page.
Here are some examples:
Warning: Invalid argument supplied for foreach() in plugins/polylang/include/admin-filters.php on line 387
>>> foreach ($_POST[‘post_tr_lang’] as $lang=>$tr_id)Warning: Invalid argument supplied for foreach() in /home/ahavaves/public_html/wp-content/plugins/polylang/include/admin-filters.php on line 393
>>> foreach ($translations as $lang=>$tr_id) {It was detected in WP3.3.1 and Polylang 0.7pre14.
In most (if not all) cases there will be more than one language, in addition, creating a second language (even if it is not used for now) will solve the problem and can be considered as a workaround here.
Goodluck!
The topic ‘[Plugin: Polylang] – Errors when only one language exists’ is closed to new replies.