Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -
- 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 11 replies, has 2 voices.

Last updated by Kor 5 months ago.

Assisted by: Kor.

Author Posts
October 12, 2025 at 6:33 pm #17477721

dragomirG

Background of the issue:
I am trying to update a product on my site hidden link. I changed the product to a Variable Product, added an Attribute with two variants '500 mg | 1000 mg', set SKU and Price in the Variants tab, and saved under variations. I then updated the product. I initially contacted ACF, but they directed me to contact WPML.

Symptoms:
I encounter a fatal error: 'Uncaught TypeError: Cannot access offset of type array in isset or empty' in the file /home/peptidepower/public_html/wp-content/plugins/advanced-custom-fields/includes/class-acf-data.php on line 128.

Questions:
Why am I getting a fatal error when saving a Variable Product?
How can I resolve the error related to the ACF plugin when updating a product?

October 13, 2025 at 1:00 am #17477986

Kor

Thanks for contacting us. I’ve reviewed your screenshot, and it appears the issue is related to the ACF plugin. Could you please go to WP > ACF > Field Groups and verify that the translation options are set correctly, as explained here https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/ ?

October 13, 2025 at 4:52 pm #17480681

dragomirG

Hi,
i am in "Expert mode" in ACF Fields, and all fields are market according to needs. Copy or Translate

I think the problem is elsewhere, please take a closer look

October 14, 2025 at 8:08 am #17482247

Kor

Thanks for your reply. I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

October 20, 2025 at 4:13 pm #17500395

Kor

Thanks for your reply. My apologies for the delay in response. Could you please double check your credentials? I'm getting "ERROR: Incorrect username or password."

October 23, 2025 at 3:43 pm #17513230

Kor

Thanks for your reply. I’m logged in, and your WPML configuration looks fine. Could you please share a screen recording showing how the issue occurs? You can use the free tool hidden link to record it. Once done, share the link here so I can check further.

October 23, 2025 at 4:20 pm #17513319

dragomirG

Hi,
here is a loom video:

hidden link

and again i paste the error:

Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/class-acf-data.php:128 Stack trace: #0 /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/class-acf-data.php(143): ACF_Data->_key(Array) #1 /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/acf-field-functions.php(35): ACF_Data->has(Array) #2 /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/acf-meta-functions.php(285): acf_get_field(Array) #3 /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/api/api-template.php(312): acf_get_meta_field('product_attribu...', 1166) #4 /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/api/api-template.php(248): acf_maybe_get_field('product_attribu...', 1166) #5 /home/peptidepower/peptidepowereu.is/wp-content/plugins/acfml/classes/class-wpml-acf-field-state.php(59): get_field_object('product_attribu...', 1166) #6 /home/peptidepower/peptidepowereu.is/wp-content/plugins/acfml/classes/class-wpml-acf-field-state.php(41): ACFML\FieldState->getCurrentMetadata(1166) #7 /home/peptidepower/peptidepowereu.is/wp-includes/class-wp-hook.php(324): ACFML\FieldState->storeStateBefore(1166) #8 /home/peptidepower/peptidepowereu.is/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #9 /home/peptidepower/peptidepowereu.is/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/acf-form-functions.php(152): do_action('acf/save_post', 1166) #11 /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/forms/form-post.php(332): acf_save_post(1166) #12 /home/peptidepower/peptidepowereu.is/wp-includes/class-wp-hook.php(326): ACF_Form_Post->save_post(1166, Object(WP_Post)) #13 /home/peptidepower/peptidepowereu.is/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #14 /home/peptidepower/peptidepowereu.is/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /home/peptidepower/peptidepowereu.is/wp-includes/post.php(5110): do_action('save_post', 1166, Object(WP_Post), true) #16 /home/peptidepower/peptidepowereu.is/wp-includes/post.php(5212): wp_insert_post(Array, false, true) #17 /home/peptidepower/peptidepowereu.is/wp-admin/includes/post.php(453): wp_update_post(Array) #18 /home/peptidepower/peptidepowereu.is/wp-admin/post.php(227): edit_post() #19 {main} thrown in /home/peptidepower/peptidepowereu.is/wp-content/plugins/advanced-custom-fields/includes/class-acf-data.php on line 128

October 23, 2025 at 6:30 pm #17513773

Kor

Thanks for your reply. Ok, I'm able to see the issue now. Are you able to clone the site to another staging site? I'd like to disable plugins or switch themes to troubleshoot this further.

October 23, 2025 at 8:20 pm #17513976

dragomirG

Hi,
i have made a backup of the current state, and this is not production site, so feel free to work on it.

I hope that this would be solved soon so I can continue working on the site

October 24, 2025 at 6:15 pm #17517753

Kor

Thanks for your reply. Ok, I will have to escalate this further to our 2nd Tier Support for further investigation. I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

October 26, 2025 at 4:06 am #17519040

dragomirG

i figured out where is the error
and i am a new wp/woo dev, i can't understand how can a plugin like yours which is from so many years can have this little bugs

October 27, 2025 at 8:19 am #17520456

Kor

Thanks for your reply, and my apologies for the delay over the weekend. Could you please let me know where exactly the error occurs so I can escalate it directly to our 2nd Tier Support team?

The topic ‘[Closed] Error when saving Variable Product’ is closed to new replies.