Home›Support›English Support›[Waiting for user feedback] When importing through wp-import, I am getting an error with WPML
[Waiting for user feedback] When importing through wp-import, I am getting an error with WPML
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/
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?
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
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.
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.
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.
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
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.
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.
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.