Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: Undefined index: acf_field_group in Plugin_ACF.php on line 937 #145

Closed
jasperrooduijn opened this issue Jun 21, 2018 · 6 comments
Closed

Comments

@jasperrooduijn
Copy link

Ik keep getting this error when doing some dashboard based actions. For instance when saving a user profile and when syncing ACF field groups. Using WP version 4.9.6, Simple History 2.23.1 and ACF 5.6.10.

Notice: Undefined index: acf_field_group in plugins/simple-history/loggers/Plugin_ACF.php on line 937

@jasperrooduijn
Copy link
Author

I also get this error when saving an excisting ACF fieldgroup with changed field settings.

Undefined variable: new_exists in plugins/simple-history/loggers/Plugin_ACF.php on line 898

@bonny
Copy link
Owner

bonny commented Jun 21, 2018

Thanks for the report, will take a look at this and fix in next version.

@jasperrooduijn
Copy link
Author

Great! Any news about a new update?

@bonny
Copy link
Owner

bonny commented Jul 27, 2018

Check version 2.26, it should fix this.

@LordWhisper
Copy link

Version 2.26.1 still having the same incompatibility with ACF

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _acf_get_field_by_id() in /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/simple-history/loggers/Plugin_ACF.php:374\nStack trace:\n#0 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/simple-history/loggers/Plugin_ACF.php(270): Plugin_ACF->add_acf_context(Array, 'added', Array, Array, Array, Array)\n#1 /var/www/vhosts/DOMAIN/httpdocs/wp-includes/class-wp-hook.php(286): Plugin_ACF->on_acf_save_post(559)\n#2 /var/www/vhosts/DOMAIN/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#3 /var/www/vhosts/DOMAIN/httpdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#4 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/advanced-custom-fields-pro/includes/acf-form-functions.php(136): do_action('acf/save_post', 559)\n#5 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-post.php(312): acf_save_post(559)\n...\n', referer: https://DOMAIN/wp-admin/post-new.php?post_type=auftritte&wp-post-new-reload=true&wp-post-new-reload=true

@bonny
Copy link
Owner

bonny commented Feb 25, 2019

Version 2.26.1 still having the same incompatibility with ACF

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _acf_get_field_by_id() in /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/simple-history/loggers/Plugin_ACF.php:374\nStack trace:\n#0 /var/www/vhosts/DOMAIN/httpdocs/wp-

I think thas was another error and nothing to do with this issue. It is however fixed in version 2.29.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants