WPIntell

Source evidence

Latest ACF update (5.8.3) breaks ACF QTranslate

ACF qTranslate · support · 2019-08-08T21:10:00+00:00

complaintsentiment
mediumseverity
0.92relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 31 rows with source links

16.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
freshcreate unresolved
Since updating to ACF5.8.3, there is an error on the media page – no media appears. However, it is not an issue with ACF, as disabling ACF QTranslate solves the issue. Here is how I isolated the problem to ACF QTranslate, combined with ACF 5.8.3: – ACF 5.8.3 with ACF QTranslate = error – ACF 5.8.3 without ACF QTranslate = no error – ACF 5.8.2 with ACF QTraslate = no error Unfortunately I’m not getting any errors in console to provide more leads as to the issue. Please let me know if there is a solution, as I now rely on ACF QTranslate for the site, and I would like to be able to continue updating ACF. Thanks in advance Hi, I had the same problem, there is a bug with acf_qtranslate_acf_5_image. As a work around you can comment the lines 31 and 39 of the file acf-qtranslate/src/acf_5/acf.php: //require_once ACF_QTRANSLATE_PLUGIN_DIR . 'src/acf_5/fields/image.php'; //acf()->fields->register_field_type(new acf_qtranslate_acf_5_image($this->plugin)); Hi, I have the same issue @marciomarim thanks! But it is not good solution) Hello, Has anyone came up with a solution to this problem? Will there be a fix either within an ACF qtranslate plugin update or an ACF plugin update?? I had to revert back to previous version of ACF for temporary (I hope) fix. Thank you. acf-qtranslate/src/acf_5/fields/image.php add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3); if ( method_exists( $this, 'wp_prepare_attachment_for_js' ) ) { add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3); } Until the update Similarly to @sleepgreen , I’ve decided to delete line 75 that shows as below from wp-content\plugins\acf-qtranslate\src\acf_5\fields\image.php: add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3); In Advanced Custom Fields PRO version 5.8.3 they removed the function called wp_prepare_attachment_for_js() from the plugin, which is what’s causing the error. Along with that, the Advanced Custom Fields PRO team also removed the same add_filter('wp_prepare_attachment_for_js.... call that’s in ACF qTranslate. Because of that, I think it’s fine to remove that line entirely given that it’s likely no longer needed. This reply was modified 6 years, 7 months ago by Jonathan Goldford . @jg-visual it worked for me, thanks alot @jg-visual Thank YOU!!!

Comments

7 shown
Marcio Marim 2019-08-16T14:38:00+00:00

Hi, I had the same problem, there is a bug with acf_qtranslate_acf_5_image. As a work around you can comment the lines 31 and 39 of the file acf-qtranslate/src/acf_5/acf.php: //require_once ACF_QTRANSLATE_PLUGIN_DIR . 'src/acf_5/fields/image.php'; //acf()->fields->register_field_type(new acf_qtranslate_acf_5_image($this->plugin));

korg_bro 2019-09-01T05:56:00+00:00

Hi, I have the same issue @marciomarim thanks! But it is not good solution)

eschmidtke 2019-09-18T21:48:00+00:00

Hello, Has anyone came up with a solution to this problem? Will there be a fix either within an ACF qtranslate plugin update or an ACF plugin update?? I had to revert back to previous version of ACF for temporary (I hope) fix. Thank you.

sleepgreen 2019-10-09T12:09:00+00:00

acf-qtranslate/src/acf_5/fields/image.php add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3); if ( method_exists( $this, 'wp_prepare_attachment_for_js' ) ) { add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3); } Until the update

Jonathan Goldford 2019-10-14T19:32:00+00:00

Similarly to @sleepgreen , I’ve decided to delete line 75 that shows as below from wp-content\plugins\acf-qtranslate\src\acf_5\fields\image.php: add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3); In Advanced Custom Fields PRO version 5.8.3 they removed the function called wp_prepare_attachment_for_js() from the plugin, which is what’s causing the error. Along with that, the Advanced Custom Fields PRO team also removed the same add_filter('wp_prepare_attachment_for_js.... call that’s in ACF qTranslate. Because of that, I think it’s fine to remove that line entirely given that it’s likely no longer needed. This reply was modified 6 years, 7 months ago by Jonathan Goldford .

Ahmed ElSayed 2019-10-22T21:33:00+00:00

@jg-visual it worked for me, thanks alot

HannaW 2019-11-26T14:17:00+00:00

@jg-visual Thank YOU!!!