-
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_qtranslate_acf_5_image' does not have a method 'wp_prepare_attachment_for_js' #718
Comments
+1 |
1 similar comment
+1 |
Hi, Exact same problem here, site with 1600+ images, seems like an ajax call is made for each image before the result is displayed in media library. So 1600+ ajax calls before seeing images in the library. Thanks for your help, please tag this as bug. |
@fminov Media library by default doesn't work. |
@Tusko hi, indeed, same problem with Real Media Library enabled or with stock Media Library |
hello, |
Yes but it is ok when qTranslate-XT is disabled as I mentioned in issue 719, so somehow they must be related, I was using the ACF gallery, going back to the previous version of ACF (5.8.2) fixed the issue for me. |
Mmmm that sounds strange but let's see.
|
thanks |
OK i found it
As a quick workaround fix you could just comment this line. For the correct fix one should look at the new Btw where did you get ACF 5.8.3? Maybe it's only for the PRO version. For the free it's still 5.8.2 even on github. |
Thanks for the quick reply and quick fix, yes its not good, I have the pro version, hopefully they release a fix soon. |
@herrvigg Hi, thanks a lot for the quick fix, it works perfectly ! |
Nice to hear! However i'm not sure about the impact, disabling this may have some side effects for that particular field. Could someone having 5.8.3 send the new file holding the |
Is there any simple way to contact you privately for this ? Note : previously I tried ACF 5.8.2 Pro and it didn't work any better. |
I searched the plugin for this but no where to be found. |
This sounds weird, in contradiction with what @gab1982 mentioned earlier :-/
We derive from Here is the class and the concerned function in 5.8.2 Free: Now to come up with a fix one should look at the diff 5.8.3 PRO vs 5.8.2 PRO. |
All right, tthey simply removed the function from 5.8.3 and it's not documented in the release notes. But it looked like a hacky hook in the first place:
So we can certainly assume it is safe to ignore it. Maybe they fixed something in WP core that allows to avoid this and i don't expect it to see it back again. I'll find a way to have a better check in QT-XT. For now the best temporary fix is simply to comment the line in the ACF module as described earlier. |
Fix merged in master. |
@fminov it is really surprising it didn't work when you moved back to ACF 5.8.2 because the original function is there. Maybe you had some cache working or something else happened when switching the versions. |
@herrvigg thanks a lot for your research ! |
Hi, there are no update yet but the fix works fine. I found the file here Regards!. |
Hello is this fixed on some latest version? I have |
@netgfx this has been fixed long ago. What qTranslate-XT are you using? |
@herrvigg Well that's the thing I have qtranslate-X (the site already had it installed when I picked it up), I know its long abandoned, do you think it is fairly save to replace it with qtranslate-xt or would there be lots of issues? |
@netgfx why do you still use qTranslate-X? There is no reason using an obsolete plugin. If you read the main README you will find the answer to your questions. |
ACF: 5.8.12 I have the same problem and the above solution is not working. |
You have all the history in this thread. Fixed in 3.6.2 almost one year ago... why are you using such an old version? Last release is 3.8.1. |
Wordpress media library not working with build-in acf image field.
When click on "select image", media library open, but show no image nor error.
In php log, we can see this error :
PHP 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/cauterets/wp-includes/class-wp-hook.php on line 286
I use the last version of your plugin and acf
The text was updated successfully, but these errors were encountered: