-
Notifications
You must be signed in to change notification settings - Fork 108
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
acf_form: qTranslateConfig is not defined #759
Comments
Probably a problem of order in the script loading sequence. You should not use qTranslateConfig until qtranslate is initialized. You need a "on-ready" callback and be sure your script comes after qtranslate. |
This looks the same as #764. But i can't reproduce it with ACF free. Are you also using ACF Pro? |
Yes, I'm also using ACF Pro. Please note, that this only happens in the frontend for me, when using |
I can reproduce with ACF 5.8.7 (Free). It's due to |
This ensures the scripts are loaded in the right order, especially when using acf_form_head() which can lead to a different loading sequence.
@hirasso @cyberfly999 i think i found a solution, i sent a patch on master so you are much welcome to test it. Let me know how it works :) |
@hirasso can you check if this solves the problem? I'd like to release the last fixes but i'll wait until you confirm it's fine. |
Looks good to me! Thanks a lot!! 👍 |
Hi there! I just noticed a small bug: If I use the function
acf_form()
in my frontend with qtranslate-xt activated, I get this error:qTranslateConfig is not defined
This is a hotfix, until it's fixed in qtranslate-xt itself:
The text was updated successfully, but these errors were encountered: