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

Can't upload attachment in acf subfield on multi-language website #772

Closed
stefano88ita opened this issue Dec 18, 2019 · 3 comments
Closed
Labels
duplicate This issue or pull request already exists module: ACF Integration with ACF

Comments

@stefano88ita
Copy link

Hi! When i try to upload an attachment on a multi-language website with ACF, in the network call, after dragging a file in the media explorer, i get the following message "Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'acf_qtranslate_acf_5_image' does not have a method 'wp_prepare_attachment_for_js' in /var/www/html/wp-includes/class-wp-hook.php on line 288
".

Resolved by commenting the line acf()->fields->register_field_type(new acf_qtranslate_acf_5_image($this->plugin));
in modules/acf/src/acf_5/acf.php:39

I don't know if can be a common issue! :)

My config: wp 5.3.1, acf pro 5.8.7, qtranslatext 5.3.1

@herrvigg herrvigg added the plugin: others Concerns integration with other plugins label Jan 8, 2020
@herrvigg
Copy link
Collaborator

@stefano88ita this should have been solved in #718 released with qTranslate-XT 3.6.2. We are now in 3.7.1.

It seems other people have the problem #783 and i don't see why. Are you the problem comes from qTranslate-XT? Could it be that you are using an old qTranslate-X/XT or the old legacy plugin acf-qtranslate?

@stefano88ita
Copy link
Author

I tested the current version right now (previously 3.6.1) and the issue has been solved with update.
Thank you for your very good job!

@herrvigg
Copy link
Collaborator

Great to read!

@herrvigg herrvigg added duplicate This issue or pull request already exists and removed need info The submitter must provide more info labels Feb 17, 2020
@herrvigg herrvigg added module: ACF Integration with ACF and removed plugin: others Concerns integration with other plugins labels Dec 27, 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 module: ACF Integration with ACF
Projects
None yet
Development

No branches or pull requests

2 participants