Please make sure to update to WPML 4.3.4 before reporting any issue

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by Jamal 9 months ago.

Assigned support staff: Jamal.

Author Posts
January 16, 2019 at 8:20 am #3096400

danielA-25

Hello WPML Team,

im opening this Ticket because nobody seems to care about the new entries in this "closed" ticket, where the exact same problem is described by many users the last days: https://wpml.org/forums/topic/acf-option-page-translate-error-2/

We have german (main) and english language with ACF options pages in Backend, where admins can adjust settings. In german version all options are displayed, english version does only show one option and the rest of the page is empty. The problem occurs after updating to 5.0.3 and some plugin updates. Current versions:

WPML Multilingual CMS 4.1.3
ACF Pro 5.7.9
ACF Multilingual 1.0.3

Error Message

Fatal error: Uncaught InvalidArgumentException: Argument ID must be numeric and greater than 0. in /srv/data/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:28 Stack trace: #0 /srv/data/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element-factory.php(35): WPML_Translation_Element->__construct(false, Object(SitePress), NULL) #1 /srv/data/wp-content/plugins/sitepress-multilingual-cms/classes/custom-field-translation/class-wpml-custom-fields-post-meta-info.php(85): WPML_Translation_Element_Factory->create(false, 'post') #2 /srv/data/wp-content/plugins/sitepress-multilingual-cms/classes/custom-field-translation/class-wpml-custom-fields-post-meta-info.php(81): WPML_Custom_Fields_Post_Meta_Info->get_info(false, 'teaser-title-3') #3 /srv/data/wp-includes/class-wp-hook.php(286): WPML_Custom_Fields_Post_Meta_Info->get_info_filter(NULL, false, 'teaser-title-3') #4 /srv/data/wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Arr in /srv/data/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 28

We fixed it with the following hack in wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:

if ( ! is_numeric( $id ) || $id <= 0 ) {#                       throw new InvalidArgumentException( 'Argument ID must be numeric and greater than 0.' );
               }

This is a "dirty" fix. We think that the next update will give us new work - as long as there is no proper fix released by WPML or ACF. Are you guys in contact with ACF reguarding that problem? It seems this is not a minor issue.

Kind Regards
Daniel

January 16, 2019 at 9:52 am #3096797

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Thank you for contacting WPML Support. I will be glad to help with this.

Our compatibility team is releasing a new version, would you like to try it.
hidden link

If it does not, please share a duplicator package for a minimal reproduction using your code. You can use DropBox or GoogleDrive.

Best regards,
Jamal
WPML Support

February 21, 2019 at 3:09 pm #3228324

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Just to follow up on this request. I assume the ACFML update have resolved this issue ?
Would you like us to continue working on this until we get a fix ?
Let me know what do you think.

Best regards,
Jamal
WPML Support