Support

Search results for ""

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

Error with AC ACF Plugin 5.7.4 / 3.0.3

Hey there, I get an error since 23 days for the Pages list, using Admin Columns Pro with the ACF extension.

I did:
– Reverted back stepwise 4 versions for the main plugin and also acf extension
– Resetted sorting for all ACP lists
– Deactived AdminColumns -> Viewig the page works like a charm
– Deleted the AdminColumns presets for the effected list (pages)

Log:

TypeError: Argument 1 passed to ACA\ACF\FieldsFactory::create() must be of the type array, bool given
1 File "/home/web/public_html/wp-content/plugins/ac-addon-acf/classes/FieldsFactory.php" line 12
+1 non-project frame
3 File "/home/web/public_html/wp-content/plugins/ac-addon-acf/classes/Service/AddColumns.php" line 43 in array_map
4 File "/home/web/public_html/wp-includes/class-wp-hook.php" line 307 in ACA\ACF\Service\AddColumns::add_columns
5 File "/home/web/public_html/wp-includes/class-wp-hook.php" line 331 in WP_Hook::apply_filters
6 File "/home/web/public_html/wp-includes/plugin.php" line 476 in WP_Hook::do_action
7 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php" line 645 in do_action
8 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php" line 488 in AC\ListScreen::set_column_types
9 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php" line 519 in AC\ListScreen::get_column_types
10 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php" line 534 in AC\ListScreen::get_column_by_type
11 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php" line 699 in AC\ListScreen::get_class_by_type
12 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php" line 772 in AC\ListScreen::create_column
13 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php" line 477 in AC\ListScreen::set_columns
14 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/classes/Editing/EditableDataFactory.php" line 27 in AC\ListScreen::get_columns
15 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/classes/Editing/Addon.php" line 65 in ACP\Editing\EditableDataFactory::create
16 File "/home/web/public_html/wp-includes/class-wp-hook.php" line 307 in ACP\Editing\Addon::register_table_screen
17 File "/home/web/public_html/wp-includes/class-wp-hook.php" line 331 in WP_Hook::apply_filters
18 File "/home/web/public_html/wp-includes/plugin.php" line 476 in WP_Hook::do_action
19 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ScreenController.php" line 37 in do_action
20 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/Table/Screen.php" line 61 in AC\ScreenController::register
21 File "/home/web/public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/Controller/TableListScreenSetter.php" line 83 in AC\Table\Screen::register
22 File "/home/web/public_html/wp-includes/class-wp-hook.php" line 307 in AC\Controller\TableListScreenSetter::handle
23 File "/home/web/public_html/wp-includes/class-wp-hook.php" line 331 in WP_Hook::apply_filters
24 File "/home/web/public_html/wp-includes/plugin.php" line 476 in WP_Hook::do_action
25 File "/home/web/public_html/wp-admin/includes/class-wp-screen.php" line 422 in do_action
26 File "/home/web/public_html/wp-admin/includes/screen.php" line 243 in WP_Screen::set_current_screen
27 File "/home/web/public_html/wp-admin/admin.php" line 212 in set_current_screen
28 File "/home/web/public_html/wp-admin/edit.php" line 10 in require_once [args]
2 years, 2 months ago
Stefan van den Dungen Gronovius
Developer

Hi Kevin

This needs some further debugging.
Are you a developer and are you able to follow some instructions to find where certain data comes from?
Please contact me at support@admincolumns.com so I can help you further in detail though email.

2 years, 2 months ago
Jordi Damwichers

Hi,

I get something similar. What to do?

Fatal error: Uncaught TypeError: Argument 1 passed to ACA\ACF\FieldsFactory::create() must 
be of the type array, null given in /public_html/wp-content/plugins/ac-addon-acf/classes/FieldsFactory.php:12 
Stack trace: 
0 [internal function]: ACA\ACF\FieldsFactory->create(NULL) 
1 /public_html/wp-content/plugins/ac-addon-acf/classes/Service/AddColumns.php(43): array_map(Array, Array) 
2 /public_html/wp-includes/class-wp-hook.php(307): ACA\ACF\Service\AddColumns->add_columns(Object(ACP\ListScreen\Post)) 
3 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) 
4 /public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) 
5 /public_html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php(645): do_action('ac/column_types', Object(ACP\ListScreen\Post)) 
6 /h in /public_html/wp-content/plugins/ac-addon-acf/classes/FieldsFactory.php on line 12
2 years, 2 months ago
Tobias Schutter
Developer

What version of Advanced Custom Fields are you using?

2 years, 2 months ago
Tobias Schutter
Developer

I found the issue. We already fix it, but have not released it yet. We will release the official patch soon.

For now you could try and patch it yourself. Go to the file classes/FieldRepository.php

Replace:

return array_merge( ...$fields );

With:

return array_filter( array_merge( ...$fields ) );
2 years, 2 months ago
Jordi Damwichers

I can confirm this solved it for me. Thank you!

Jordi

2 years, 2 months ago
Kevin Leicht

Hey, the problem exists again in the latest Update 6.0.3

And now there is no FieldRepository.php in classes anymore.
Please help

Best
Kevin

1 year, 10 months ago
Stefan van den Dungen Gronovius
Developer

@Kevin can you share your exact error log with me at support@admincolumns.com?
The file you mention should really be available in the 6.0.3 release.

1 year, 10 months ago

You must be logged in to reply to this topic.