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

E_Error after WP5.3 Update #764

Closed
cyberfly999 opened this issue Nov 25, 2019 · 5 comments
Closed

E_Error after WP5.3 Update #764

cyberfly999 opened this issue Nov 25, 2019 · 5 comments
Labels
duplicate This issue or pull request already exists plugin: others Concerns integration with other plugins

Comments

@cyberfly999
Copy link

cyberfly999 commented Nov 25, 2019

Hi,

After updating WP to 5.3 I got the following E_Error and JS-Error. It may be related to #759. ACF-PRO is 5.7.10.

EDIT: Must be related to ACF PRO. If I run WP only with ACF PRO, the Errors still occur.

Thanks!

#WordPress-Version 5.3
Aktuelles Plugin: qTranslate-XT (Version 3.7.1)
PHP-Version 7.2.24###

Fehler-Details

Ein Fehler vom Typ E_ERROR wurde in der Zeile 86 der Datei /home/proitera/public_html/productive_wp/wp-content/plugins/qtranslate-xt-3.7.1/modules/acf/src/acf_5/fields/text.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function acf_esc_attrs() in /home/proitera/public_html/productive_wp/wp-content/plugins/qtranslate-xt-3.7.1/modules/acf/src/acf_5/fields/text.php:86
Stack trace:
#0 /home/proitera/public_html/productive_wp/wp-includes/class-wp-hook.php(288): acf_qtranslate_acf_5_text->render_field(Array)
#1 /home/proitera/public_html/productive_wp/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
#2 /home/proitera/public_html/productive_wp/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /home/proitera/public_html/productive_wp/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-field.php(433): do_action('acf/render_fiel...', Array)
#4 /home/proitera/public_html/productive_wp/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-field.php(584): acf_render_field(Array)
#5 /home/proitera/public_html/productive_wp/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-field.php(390): acf_render_field_wrap(Array, 'div', 'label')
#6 /home/pr####

screen

@herrvigg
Copy link
Collaborator

herrvigg commented Dec 1, 2019

I can't reproduce the problem with ACF free. Did you try the trick that @hirasso gave in #759? Maybe we can find a better fix.

@hirasso
Copy link

hirasso commented Dec 6, 2019

Hi there, I only get this error on my frontend, but the OP doesn't mention anything about that.

@herrvigg
Copy link
Collaborator

herrvigg commented Dec 8, 2019

But acf_form is only used on the admin side no? By front-end in qTX we mean the final rendering of the page for regular users by contrast to the admin section.

Nevertheless it sounds like the same problem. Can you check in which order the JS scripts are loaded? Try to put ACF after qTX.

@hirasso
Copy link

hirasso commented Dec 9, 2019

@herrvigg , acf_form() is for embedding a ACF Field Group in the frontend. Have a look at the documentation: https://www.advancedcustomfields.com/resources/acf_form/

@herrvigg
Copy link
Collaborator

I managed to reproduce it, it's rather due to acf_form_head which enables the loading of the client scripts but there's definitely something wrong with the order. To me it looks exactly as #759 so i close this one. Just surprised this was appearing after a WP update, still i don't the see the relation but in any case it should be fixed.

@herrvigg herrvigg added plugin: others Concerns integration with other plugins duplicate This issue or pull request already exists labels Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists plugin: others Concerns integration with other plugins
Projects
None yet
Development

No branches or pull requests

3 participants