Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Anthony Skegss

No title (Array) for Columns from ACF

Hey

After update plugins
Admin Columns Pro to Version 5.7.1
Admin Columns Pro – Advanced Custom Fields (ACF) to Version 3.0.2

we can see errors when we are trying to look at columns for custom post type we can see : “No title (Array)”.

The fields are setted correctly and fields in custom post type aren’t empty.

Can you help me?

Thanks.

1 week ago
Anthony Skegss

In the query monitor I can see some notices.

Notice	Trying to access array offset on value of type bool	98,681	
wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:328
acf_get_field_groups()
wp-content/plugins/ac-addon-acf/classes/FieldGroup/Location/Post.php:42
ACA\A\F\L\Post->get_groups()
wp-content/plugins/ac-addon-acf/classes/FieldRepository.php:26
ACA\ACF\FieldRepository->find_by_list_screen()
wp-content/plugins/ac-addon-acf/classes/Service/AddColumns.php:40
ACA\A\S\AddColumns->add_columns()
wp-includes/class-wp-hook.php:303
do_action('ac/column_types')
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:645
AC\ListScreen->set_column_types()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:488
AC\ListScreen->get_column_types()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:519
AC\ListScreen->get_column_by_type()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:534
AC\ListScreen->get_class_by_type()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:699
AC\ListScreen->create_column()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:762
AC\ListScreen->set_columns()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:477
AC\ListScreen->get_columns()
wp-content/plugins/admin-columns-pro/classes/Editing/EditableDataFactory.php:27
ACP\E\EditableDataFactory->create()
wp-content/plugins/admin-columns-pro/classes/Editing/Addon.php:65
ACP\E\Addon->register_table_screen()
wp-includes/class-wp-hook.php:303
do_action('ac/table/list_screen')
wp-content/plugins/admin-columns-pro/admin-columns/classes/ScreenController.php:37
AC\ScreenController->register()
wp-content/plugins/admin-columns-pro/admin-columns/classes/Table/Screen.php:61
AC\T\Screen->register()
wp-content/plugins/admin-columns-pro/admin-columns/classes/Controller/TableListScreenSetter.php:83
AC\C\TableListScreenSetter->handle()
wp-includes/class-wp-hook.php:303
do_action('current_screen')
wp-admin/includes/class-wp-screen.php:421
WP_Screen->set_current_screen()
wp-admin/includes/screen.php:243
set_current_screen()
wp-admin/admin.php:212
Notice	Trying to access array offset on value of type bool	98,681	
wp-includes/class-wp-list-util.php:168
WP_List_Util->pluck()
wp-includes/functions.php:5024
wp_list_pluck()
wp-content/plugins/advanced-custom-fields-pro/includes/local-fields.php:492
_acf_apply_get_local_field_groups()
wp-includes/class-wp-hook.php:303
apply_filters('acf/load_field_groups')
wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:340
acf_get_field_groups()
wp-content/plugins/ac-addon-acf/classes/FieldGroup/Location/Post.php:42
ACA\A\F\L\Post->get_groups()
wp-content/plugins/ac-addon-acf/classes/FieldRepository.php:26
ACA\ACF\FieldRepository->find_by_list_screen()
wp-content/plugins/ac-addon-acf/classes/Service/AddColumns.php:40
ACA\A\S\AddColumns->add_columns()
wp-includes/class-wp-hook.php:303
do_action('ac/column_types')
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:645
AC\ListScreen->set_column_types()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:488
AC\ListScreen->get_column_types()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:519
AC\ListScreen->get_column_by_type()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:534
AC\ListScreen->get_class_by_type()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:699
AC\ListScreen->create_column()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:762
AC\ListScreen->set_columns()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:477
AC\ListScreen->get_columns()
wp-content/plugins/admin-columns-pro/classes/Editing/EditableDataFactory.php:27
ACP\E\EditableDataFactory->create()
wp-content/plugins/admin-columns-pro/classes/Editing/Addon.php:65
ACP\E\Addon->register_table_screen()
wp-includes/class-wp-hook.php:303
do_action('ac/table/list_screen')
wp-content/plugins/admin-columns-pro/admin-columns/classes/ScreenController.php:37
AC\ScreenController->register()
wp-content/plugins/admin-columns-pro/admin-columns/classes/Table/Screen.php:61
AC\T\Screen->register()
wp-content/plugins/admin-columns-pro/admin-columns/classes/Controller/TableListScreenSetter.php:83
AC\C\TableListScreenSetter->handle()
wp-includes/class-wp-hook.php:303
do_action('current_screen')
wp-admin/includes/class-wp-screen.php:421
WP_Screen->set_current_screen()
wp-admin/includes/screen.php:243
set_current_screen()
wp-admin/admin.php:212
Notice	Array to string conversion	39	
wp-content/plugins/admin-columns-pro/admin-columns/classes/Settings/Column/Post.php:72
sprintf()
wp-content/plugins/admin-columns-pro/admin-columns/classes/Settings/Column/Post.php:72
AC\S\C\Post->format()
wp-content/plugins/admin-columns-pro/admin-columns/classes/Column.php:375
AC\Column->get_formatted_value()
wp-content/plugins/ac-addon-acf/classes/Value/Formatter/DefaultFormatter.php:15
ACA\A\V\F\DefaultFormatter->format()
wp-content/plugins/ac-addon-acf/classes/Column.php:79
ACA\ACF\Column->get_value()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php:830
AC\ListScreen->get_display_value_by_column_name()
wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen/Post.php:63
AC\L\Post->manage_value()
wp-includes/class-wp-hook.php:303
do_action('manage_commitment_posts_custom_column')
wp-admin/includes/class-wp-posts-list-table.php:1343
WP_Posts_List_Table->column_default()
wp-admin/includes/class-wp-list-table.php:1452
WP_List_Table->single_row_columns()
wp-admin/includes/class-wp-posts-list-table.php:1377
WP_Posts_List_Table->single_row()
wp-admin/includes/class-wp-posts-list-table.php:795
WP_Posts_List_Table->_display_rows()
wp-admin/includes/class-wp-posts-list-table.php:772
WP_Posts_List_Table->display_rows()
wp-admin/includes/class-wp-list-table.php:1364
WP_List_Table->display_rows_or_placeholder()
wp-admin/includes/class-wp-list-table.php:1291
WP_List_Table->display()
wp-admin/edit.php:476
1 week ago
Stefan
Developer

@Anthony
Can you send me an export of your ACF fields so I can try to reproduce the issue?
I like to figure out what ACF field you’re using and if there might be a mismatch in the value that is expected and that we try to parse.

6 days, 8 hours ago
Anthony Skegss
[
    {
        "version": "5.7.1",
        "title": "Original",
        "type": "coltest",
        "id": "62a30a4c35232",
        "updated": 1654852172,
        "columns": {
            "5ec3e91a2cfc9": {
                "type": "field_5c542be302da6",
                "label": "Test",
                "width": "",
                "width_unit": "%",
                "field": "field_5c542be302da6",
                "post_property_display": "title",
                "post_link_to": "edit_post",
                "edit": "off",
                "sort": "on",
                "filter": "off",
                "filter_label": "",
                "name": "5ec3e91a2cfc9",
                "label_type": null,
                "bulk-editing": null,
                "export": "on",
                "search": null
            }
        },
        "settings": []
    }
]

Here is one of the problematic columns. I can see field_5c542be302da6 in my custom post type, and this have correct value. This field is post object type.

6 days, 7 hours ago
Stefan
Developer

Is there a possibility that there is a mismatch between the settings of your ACF field and the data that is stored?
I expect that your ACF Post Object field is set to a single value (Multiple disabled) but that the data in your database contains multiple IDs.

This could happen if you have changed the multiple setting in your field from multiple to single while you already have records with multiple items. Another possibility is that you store the ACF field yourself and store the ids as an array for a single setting field.

Can you see if this is indeed the case?

6 days, 3 hours ago
Anthony Skegss

Hey @STEFAN
Our ACF Settings aren’t changed after creation.

After downgrade to previous version of Admin Columns Pro (Version 4.6.2) and ACF addon (Version 2.5.2) then everything is working correctly.
If settings will be broken, then after downgrade should I see same value ( No title (array) ).

5 days, 8 hours ago
Stefan
Developer

We do things more strictly in our latest ACF integration (from version 3).
Could you check the DB value in the postmeta table for the post(s) that show this wrong value in V3?
And can check that if they contain multiple records/ids your ACF post relation is indeed set to multiple?

Can you also tell me how you populate this ACF field?
When you open the post through the edit page in WordPress and save the post, does this correct the value?

5 days, 3 hours ago

You must be logged in to reply to this topic.