Call to undefined function acf_get_setting()
-
Hello,
First of all, in the field “Link to the page you need help with:” this is not my website.
I already apply a quick fix on the site where I noticed the error and I don’t show errors anyway. I picked the first website I saw on Google in the 2 pages of results with this error.From what I see, you are using
acf_get_setting()
function but it is not defined yet at this stage. I think this is strange since plugins are loaded in alphabetical order.For the mooment I have added
function_exists('acf_get_setting')
in every condition but the result is that all code located in acf.php is simply not executed
Quick fix :if (function_exists('acf_get_setting') && acf_get_setting('enqueue_google_maps')) {
Best regards,
Here is the complete stack trace :
[Thu Feb 04 08:03:40.183872 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function acf_get_setting() in /wp-content/plugins/complianz-gdpr/integrations/plugins/acf.php:7, referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183903 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: Stack trace:, referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183910 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #0 /wp-includes/class-wp-hook.php(287): cmplz_acf_script(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183916 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #1 /wp-includes/plugin.php(212): WP_Hook->apply_filters(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183922 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #2 /wp-content/plugins/complianz-gdpr/class-cookie-blocker.php(133): apply_filters(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183943 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #3 /wp-content/plugins/complianz-gdpr/class-cookie-blocker.php(41): cmplz_cookie_blocker->replace_tags(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183949 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #4 [internal function]: cmplz_cookie_blocker->filter_buffer(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183953 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #5 /wp-includes/functions.php(4755): ob_end_flush(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183958 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #6 /wp-includes/class-wp-hook.php(287): wp_ob_end_flush_all(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183963 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #7 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183968 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #8 /wp-includes/plugin.php(484): WP_Hook->do_action(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183973 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #9 /wp-includes/load.php(1052): do_action(), referer: https://www.mydomain.tld/ [Thu Feb 04 08:03:40.183978 2021] [fcgid:warn] [pid 3074] [client 81.241.4.104:56802] mod_fcgid: stderr: #10 [ in /wp-content/plugins/complianz-gdpr/integrations/plugins/acf.php on line 7, referer: https://www.mydomain.tld/
The page I need help with: [log in to see the link]
- The topic ‘Call to undefined function acf_get_setting()’ is closed to new replies.