[Resolved] Unable to translate LearnPress quiz questions
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.
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.
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.
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.
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.
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.
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?
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
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.
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.
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.