• k1aus

    (@k1aus)


    Hello,

    I have Polylang version 1.8.5 installed.

    POSSIBLE ISSUE ROOT:
    I think $postarr['inline_lang_choice'] might not always be present.

    ERROR:
    I get the following error:

    Notice: Undefined index: inline_lang_choice in /my/path/wordpress/wp-content/plugins/polylang/admin/admin-filters-post.php on line 472

    ERROR SCENARIO:
    This happens when I submit the bulk edit form of my custom post type. My custom post type admin list that does NOT have the Polylang language columns in it, as the standard Post list has. (I use the standard wordpress admin lists for my custom post types, not my own list UI)

    I temporarily fixed this by wrapping lines 472 to 475 of polylangs’ admin-filters-post.php file with this if clause:

    if(isset($postarr['inline_lang_choice'])) {

Viewing 3 replies - 1 through 3 (of 3 total)
  • JLesacher

    (@jlesacher)

    Hi !

    I have the same issue, thanks for the quick fix.

    Johann

    Thread Starter k1aus

    (@k1aus)

    You’re welcome.

    Got the same issue. On a custom post type edit screen, when bulk editing items, a blank screen appears with the Undefined index: inline_lang_choice notice many times and finally:

    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/wordpress/wp-content/plugins/polylang/admin/admin-filters-post.php:549) in /var/www/wordpress/wp-includes/pluggable.php on line 1195
    
    • This reply was modified 6 years, 10 months ago by certainlyakey.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Polylang breaks admin UI with: "Notice: Undefined index: inline_lang_choice"’ is closed to new replies.