ACF and ACF pro not working on my Nginx server with php7.2-fpm.
Trying to access “custom fields” tab, or trying to edit any page shows an error The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
I checked my nginx error log, this is what I’m getting:
php/php7.2-fpm.sock:", host: "example.com", referrer: "https://example.com/wp-admin/edit.php?post_type=page"
2019/11/12 01:49:15 [error] 2602#2602: *126 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function acf_is_local_field_group() in /var/www/html/example.com/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:31
Stack trace:
#0 /var/www/html/example.com/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php(318): acf_get_field_group(375)
#1 /var/www/html/example.com/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-post.php(83): acf_get_field_groups(Array)
#2 /var/www/html/example.com/wp-includes/class-wp-hook.php(286): ACF_Form_Post->add_meta_boxes('page', Object(WP_Post))
#3 /var/www/html/example.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#4 /var/www/html/example.com/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /var/www/html/example.com/wp-admin/includes/meta-boxes.php(1526): do_action('add_meta_boxes', 'page', Object(WP_Post))
#6 /var/www/html/example.com/wp-admin/edit-form-blocks.p" while reading response header from upstream, client: 162.218.155.178, server: example.com, request: "GET /wp-admin/post.php?post=81&action=edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "example.com", referrer: "https://example.com/wp-admin/edit.php?post_type=page"
I had forgotten to add my PRO license key!
I added the key, updated to the latest ACF Pro version and now everything works.
It did work on my local machine without the key, so that confused me.
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?
— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.