Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was unable to translate quiz questions in a course using LearnPress with WPML. Specifically, answers were not being copied over to the translated version, and fill-in-the-blank questions were changing to true/false questions after translation.

Solution:
1. We recommended updating WPML to the latest version and increasing the WP Memory Limit as preliminary steps.
2. We asked the client to replicate the issue on a clean WordPress installation with LearnPress and its addon plugin installed to determine if it was a compatibility issue.
3. We requested temporary access to the client's site to investigate further, emphasizing the importance of taking a full backup before proceeding.
4. After reviewing the quizzes, we found discrepancies in question types between the original and translated versions and suggested checking for misconfigurations or missing elements.
5. We proposed removing the current quiz and adding a new one, or creating a new course with the same content and a new quiz, to see if the issue persisted, indicating a potential database corruption.

If you're experiencing similar issues, we recommend following the steps outlined above. However, please note that the solution might be irrelevant due to being outdated or not applicable to your case. We highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us for further assistance.

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.

Tagged: 

This topic contains 29 replies, has 4 voices.

Last updated by Bobby 1 year ago.

Assisted by: Bobby.

Author Posts
April 8, 2024 at 5:37 am #15492396

stephenH-20

I'm translating below course. There is a quiz at the end and inside the quiz there are three questions.
hidden link

Below is the Chinese course. Please go to the quiz and there is problem with the 2nd & 3rd questions. I cannot fill in answers.
hidden link

When I go to backend and check the questions, there is no answers.
First problem is that I copied all content from English version. Why the answers are not copied? Second question is that even I try fill in answer in the Chinese version and then save, it becomes empty after saving.

no answers in questions.png
cannot fill in answer.png
April 9, 2024 at 1:00 pm #15499345

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

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

Hi,

thanks for contacting us.

First of all, please update WPML to the latest version since the one you're using now is not compatible with WordPress 6.5

Second, please increase your WP Memory Limit (https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-can-i-increase-my-sites-memory-limit)
This is a minimum requirement so if you don't fix this WPML might not work as expected.

After you increase the Memory Limit, please try to resave your translation (copy them again in your case)

April 12, 2024 at 3:58 am #15511217

stephenH-20

1. WPML is updated to latest version.
2. WP memory limit is increased.

My problem still occur. I was unable to translate quiz questions.

Take below as an example. It's a fill in the blank question.
hidden link

When I translate the above question into Chinese language, it became a True/False question. Even I tried to copy content from English version, still the same.
hidden link

I also tried to delete the Chinese question and the create the the translation again. Still the same. Please help.

2024-04-12 11_55_47-Window.png
2024-04-12 11_54_52-Window.png
April 12, 2024 at 4:13 am #15511249

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

It could be a compatibility issue. In order to escalate the issue, please help us replicate the issue on a clean installation of WordPress. You can access the admin area with this link
hidden link

Kindly follow the steps below:

- Don’t restore your site there.
- Install LearnPress and its addon plugin.
- Try to replicate the issue with minimal steps.
- Then let me know the steps to replicate it.

Thanks.

April 12, 2024 at 5:16 am #15511294

stephenH-20

I remember in previous tickets you have the sandbox site setup already? Why we need to setup another sandbox site? It's very inefficient.

And seems WPML is incompatible with LearnPress, we are now seeking alternative way to translate the site. Please let me know if you can help in any ways. Thx.

April 12, 2024 at 6:44 pm #15513817

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

I'll be assisting you with the issue you're facing.

My colleague suggested setting up a new sandbox environment as the previous one has expired. Starting fresh allows us to troubleshoot effectively.

If you prefer, we can skip this step for now and instead take a closer look at the backend to confirm if this is a configuration or compatibility issue before proceeding with the sandbox.

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

April 15, 2024 at 11:03 pm #15522075

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

I have reviewed the quizzes and I can indeed see some strange behavior.

Please see the official documentation here:
hidden link

When I view the question in EN vs ZN , the question C7002 Quiz: 第二个关键词是什么? in EN is set up as "fill in blanks" but the ZN translation is True or False.

Even if I switch back to Fill in blanks if I copy paste the Details when I add a new line the count does not increase which does not allow me to add more info.

See the screencast here:
hidden link

From the looks of the documentation from Learnpress this should be quite simple, therefore I wonder if something is misconfigured or missing, please review and let me know your feedback.

If you are not using any custom code or I am not missing anything else to reproduce this, what are your results if you simply create a test quiz with 2 questions and just translate it?

Does the issue remain ?

April 16, 2024 at 7:52 am #15523060

stephenH-20

I checked your video and in my testing I have the same result.

However, when I do a test in other courses, the problem didn't happen. Please see below video, it shows correct result.
hidden link
Video password is itix2@23

hidden link

April 16, 2024 at 7:46 pm #15528204

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the video!

1. What are your results if you remove the current quiz and add a new one for this course?

2. What are your results if you create a new course, add the same content, and create a new quiz for it?

If something is corrupted in the database that relates to this course this might be a quick way to resolve

Let me know your results, please.

April 17, 2024 at 6:48 am #15529510

stephenH-20

I'm trying to workout item 1 today but was unable to complete.

First I created 3 questions to replace the original questions in C7002 course.
However, when I click the translate button to translate these 3 questions, the screen freezed.

What should I do next?

2024-04-17 14_43_27-Window.png
2024-04-17 14_43_41-Question Bank ‹ P.L.A.I. Behaviour Consulting — WordPress and 8 more pages - Per.png
April 17, 2024 at 8:25 pm #15534776

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the update, not sure why this happened, I just accessed the backend and was able to complete the new translations for these questions.

Let me know your results, please.

April 18, 2024 at 7:35 am #15535725

stephenH-20

I created 3 new fill in the blank questions and tried to translate them.
hidden link

Again the Chinese version shows a True/False instead of fill in the blank. Even if I clicked "Copy content from English", still same.

2024-04-18 15_34_41-Settings.png
2024-04-18 15_33_00-Settings.png
April 22, 2024 at 6:24 am #15548100

stephenH-20

Do you have any update?
I was testing the quiz and the translation still doesn't give correct outcome.

April 22, 2024 at 5:48 pm #15552606

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi,

After some testing it looks like this might be caused by a compatibility issue, it would be best if we could move the testing into our sandbox and try to reproduce it with a clean environment.

Unforutnately any previous sandbox we had is now deleted, I have created a new one for us to further investigate.

Please use this link to access it and do the following:
hidden link

Upload the necessary plugin and add-ons (WPML is added and configured already)

Create a sample lesson with a quiz and questions, does the issue reproduce in this clean environment?

This will allow us to exclude any issues coming from third-party plugins.

April 23, 2024 at 7:53 am #15554103

stephenH-20

I'm not sure if I can get all needed plugin but I'll try.
I purchased the Eduma theme in themeforest then all plugins comes included.
It's very frustrating to manage the issue as I believe compatibility problem should be handled well by the theme/LearnPress and WPML.