• Can’t add custom taxonomies, because if i add it and save settings – then i can’t open ACF page.
    Here is error text:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function PLL_Admin_Filters_Columns::term_column(), 2 passed in /var/www/u21268/data/www/city-pub-crawl.com/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in /var/www/u21268/data/www/city-pub-crawl.com/wp-content/plugins/polylang/admin/admin-filters-columns.php:231

    Stack trace
    1.
    PLL_Admin_Filters_Columns->term_column(‘acf-fg-descript…’, 1646)
    /var/www/u21268/data/www/city-pub-crawl.com/wp-includes/class-wp-hook.php:287
    2.
    WP_Hook->apply_filters(”, Array)
    /var/www/u21268/data/www/city-pub-crawl.com/wp-includes/class-wp-hook.php:311
    3.
    WP_Hook->do_action(Array)
    /var/www/u21268/data/www/city-pub-crawl.com/wp-includes/plugin.php:478
    4.
    do_action(‘manage_pages_cu…’, ‘acf-fg-descript…’, 1646)
    /var/www/u21268/data/www/city-pub-crawl.com/wp-admin/includes/class-wp-posts-list-table.php:1238
    5.
    WP_Posts_List_Table->column_default(Object(WP_Post) in /var/www/u21268/data/www/city-pub-crawl.com/wp-content/plugins/polylang/admin/admin-filters-columns.php on line 231
    /var/www/u21268/data/www/city-pub-crawl.com/wp-admin/includes/class-wp-list-table.php:1361

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

    (@chouby)

    Hello,

    As the error message states: the method PLL_Admin_Filters_Columns::term_column(), expects 3 arguments and receives only 2. It is hooked to the filter https://developer.wordpress.org/reference/hooks/manage_this-screen-taxonomy_custom_column/ which, as you can see, provides 3 arguments. If any theme or plugin also applies this filter but provides only 2 arguments, then you get the fatal error. But this is a bug to apply a filter with the same name as a WordPress filter and not to pass the same arguments.

    I checked the ACF Pro code and did not find any line where ACF would apply this filter. So my guess is that your error is coming from another plugin (or your theme). Once you’ve found it, please report this error to the author. As I wrote above and as stated in the WP doc, 3 arguments must be passed to this filter.

    Thread Starter polyspirit

    (@polyspirit)

    I realized my mistake: just can’t call custom taxonomy – ‘pages’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with ACF plugin’ is closed to new replies.