Skip Navigation

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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 8 replies, has 3 voices.

Last updated by Andreas W. 3 days, 17 hours ago.

Assisted by: Andreas W..

Author Posts
November 11, 2024 at 9:05 pm #16390197

johnC-27

Background of the issue:
I am trying to import metadescriptions via the wp-import plugin, but when it is running, I am getting an error log pertaining to WPML. I expect the process to complete successfully.

Symptoms:
I expect the process to complete, but it starts and runs for maybe 15 minutes and then logs an error. PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /nas/content/live/timken/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php:319

Questions:
Why am I getting a PHP Fatal error related to WPML during the import process?
How can I resolve the TypeError in the WPML plugin?

November 11, 2024 at 10:10 pm #16390342

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

One of my colleagues will be taking over your ticket. In the meantime, I would like to gather more information.

Please explain your steps in detail and include samples of your import files.

I recommend trying the import again, but first, please deactivate all plugins except for WPML and any essential plugins required for the import. After that, go to WPML → Settings → Troubleshooting and perform the following actions:

- Clear the cache in WPML
- Set language information
- Fix the collation of element types
- Remove ghost entries from the translation tables
- Assign translation statuses to duplicated content

November 13, 2024 at 7:12 pm #16399331

johnC-27

Thank you for your recommendations! I went ahead and performed the troubleshooting on my staging site since i had to disable most plugins besides yoast and wpml related plugins.
I followed your process and I am still getting the same result unfortunately.

November 14, 2024 at 9:28 pm #16405139

johnC-27

Hello! Just following up on this 🙂

November 15, 2024 at 4:48 pm #16409427

johnC-27

Hello! Just following up on this again 🙂

November 15, 2024 at 10:54 pm #16410005

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please take kindly note that the addon "WPML All Import" is outdated and not longer recommended.

As you can see here, there are various known and unresolved issues:
https://wpml.org/plugin/wp-all-import/

We suggest using our new addon "WPML Export & Import" which works with WP All Export, WP All Import, and the native export and import methods of WordPress and WooCommerce.

Guide:
https://wpml.org/documentation/related-projects/wpml-export-and-import/

You can find the addon at Plugins > Add new > Commercial or download it at:
https://wpml.org/download/wpml-export-and-import/?section=changelog

Best regards
Andreas

November 19, 2024 at 1:25 pm #16419869

johnC-27

I went ahead and uploaded the new addon, "WPML Export and Import", and I am still getting the same error when trying to import my document.

I am attaching the same error message and an import screenshot of what I am trying to upload

Screenshot 2024-11-19 at 8.24.21 AM.png
Screenshot 2024-11-19 at 8.22.27 AM.png
November 19, 2024 at 5:58 pm #16420991

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Do you mean the error, that the server terminated the import process?

If so, then this is not a WPML issue. There is a WP All Import Settings that you can adjust the amount item to iterate on each batch to solve this issue.

hidden link

November 19, 2024 at 8:18 pm #16421471

johnC-27

hmmm but it sounds like an issue since this is the sever error that I am receiving with that front end message

PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /nas/content/live/timken/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php:319

November 19, 2024 at 9:50 pm #16421771

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Did you create a new export file using "WPML Export & Import" before running the new import?

I would like to request temporary access (wp-admin and FTP) to the site to investigate the issue further.

The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.

November 27, 2024 at 3:46 pm #16450849

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Your site has both plugin enabled:

- WPML All Import
- WPML Export & Import

I have disabled "WPML All Import".

Please try now running the import again but make sure to assign the fields to the import template first.

After the file has been imported, go to WPML > Export & Import and complete the migration.

November 27, 2024 at 7:02 pm #16451476

johnC-27

I will give that a try!
It looks like the Chinese translations for all our pages are now missing after you had been in there. Is there something that you might have done that would have caused that?

Even going back to an old backup, it shows your changes in the changelog.

November 27, 2024 at 9:37 pm #16451799

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

No, I just disabled the WPML All Import addon, as it should not be enabled when using WPML Export & Import.

I can see the Chinese Homepage here:
hidden link

I visited the pages of your menu and the Chinese content seems to work as expected. I do not see any reason why my action should have caused an issue and I hope you were able to solve the problem.

Please let me know if further assistance will be needed.