How do I fix issues with course translation (using TranslatePress)
Hi!
I am trying to translate a course into 3 different other languages (French, Spanish, and Portuguese). I am using TranslatePress with MasterStudy in a local test environment. I got error messages when I clicked on the translated version of the course and tried to learn like a usual student would. By the way, I am in a multisite environment and MasterStudy is activated on a sub-site. The course page translates poperly, but when I click on the start course button I get the error message. Here are the error messages I got (by language)…
_______
For French: <gwmw style=”display: none; background-color: transparent;”></gwmw><gwmw style=”display:none;”></gwmw>
Avertissement: Tentative de lecture de la propriété “ID” sur null en /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php en ligne 19
Avertissement: Tentative de lecture de la propriété “ID” sur null en /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php en ligne 19
Erreur fatale: Uncaught TypeError : MasterStudy\Lms\Repositories\CurriculumRepository::get_curriculum() : L’argument #1 ($course_id) doit être de type int, null donné, appelé dans /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php sur la ligne 24 et défini dans /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CurriculumRepository.php:36 Trace de pile : #0 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php(24) : MasterStudy\Lms\Repositories\CurriculumRepository->get_curriculum(NULL, true) #1 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/stm-lms-templates/course-player.php(29) : MasterStudy\Lms\Repositories\CoursePlayerRepository->get_main_data(‘test’, 63) #2 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-includes/template-loader.php(106) : include(‘/Users/davidcel…’) #3 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-blog-header.php(19) : require_once(‘/Users/davidcel…’) #4 /Users/davidcelestin/Local Sites/ayisyennet/app/public/index.php(17) : require(‘/Users/davidcel…’) #5 {main} lancé dans /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CurriculumRepository.php en ligne 36<gwmw style=”display:none;”></gwmw>
Il y a eu une erreur critique sur ce site.
<gwmw style=”display: none; background-color: transparent;”></gwmw><gwmw style=”display:none;”></gwmw>
_______
For Spanish:
Advertencia: Intento de leer la propiedad “ID” en null en /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php en línea 19<gwmw style=”display:none;”></gwmw>
Advertencia: Intento de leer la propiedad “ID” en null en /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php en línea 19
Error fatal: Uncaught TypeError: MasterStudy\Lms\Repositories\CurriculumRepository::get_curriculum(): Argument #1 ($course_id) must be of type int, null given, called in /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php en la línea 24 y definido en /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CurriculumRepository.php:36 Seguimiento de pila: #0 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php(24): MasterStudy\Lms\Repositories\CurriculumRepository->get_curriculum(NULL, true) #1 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/stm-lms-templates/course-player.php(29): MasterStudy\Lms\Repositories\CoursePlayerRepository->get_main_data(‘esto-es-solo-un…’, 63) #2 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-includes/template-loader.php(106): include(‘/Users/davidcel…’) #3 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-blog-header.php(19): require_once(‘/Users/davidcel…’) #4 /Users/davidcelestin/Local Sites/ayisyennet/app/public/index.php(17): require(‘/Users/davidcel…’) #5 {main} lanzado en /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CurriculumRepository.php en línea 36
_______
For Portuguese:
Advertência: Tentativa de ler a propriedade “ID” em null em /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php em linha 19
Advertência: Tentativa de ler a propriedade “ID” em null em /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php em linha 19
Erro fatal: Uncaught TypeError: MasterStudy\Lms\Repositories\CurriculumRepository::get_curriculum(): O argumento #1 ($course_id) deve ser do tipo int, null given, chamado em /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php na linha 24 e definido em /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CurriculumRepository.php:36 Stack trace: #0 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php(24): MasterStudy\Lms\Repositories\CurriculumRepository->get_curriculum(NULL, true) #1 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/stm-lms-templates/course-player.php(29): MasterStudy\Lms\Repositories\CoursePlayerRepository->get_main_data(‘este-e-apenas-u…’, 63) #2 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-includes/template-loader.php(106): include(‘/Users/davidcel…’) #3 /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-blog-header.php(19): require_once(‘/Users/davidcel…’) #4 /Users/davidcelestin/Local Sites/ayisyennet/app/public/index.php(17): require(‘/Users/davidcel…’) #5 {main} lançado em /Users/davidcelestin/Local Sites/ayisyennet/app/public/wp-content/plugins/masterstudy-lms-learning-management-system/includes/Repositories/CurriculumRepository.php em linha 36
Há um erro crítico em seu site.
_______
How can you please help me fix that?
Thanks in advance.
<gwmw style=”display:none;”></gwmw>
<gwmw style=”display:none;”></gwmw><gwmw style=”display:none;”></gwmw><gwmw style=”display:none;”></gwmw>
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس