Background of the issue:
I am trying to resolve an error that appeared in wp-cli: Fatal error: Uncaught Error: Call to a member function get_language_codes() on bool in /home/xxxxxx/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation-records.php:233. I found this topic with your suggestion that resolved that error so I followed the steps: https://wpml.org/forums/topic/call-to-a-member-function-get_language_codes-on-bool-2/. I got stuck on the last step: "Fix post type assignment for translations" - it is loading forever.
Symptoms:
Usually when each step was completed a popup window with "Done" appeared, but now nothing. It has been working for over 1 hour. At some point I will have to close the browser and will I break something?
Questions:
Will closing the browser break something?
Why is the 'Fix post type assignment for translations' step loading forever?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
Can you try this:
1. Open your **wp-config.php** file and insert the following lines just before the comment that says `/* That's all, stop editing! Happy publishing. */`:
2. After saving the changes, try reproducing the issue by attempting to **Fix post type assignment for translations** again.
3. Once the issue occurs, locate the **debug log** file at this path: `/wp-content/debug.log`.
4. Please share the **latest 20 lines** from the log file here. No need to paste the entire log file—just the most recent lines. Make sure to censor any sensitive information.
I have followed your steps and after running "Fix post type assignment" it was completed very fast and got message "No errors were found in the assignment of post types."
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
I see, this will require debugging then.
To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.