• Resolved zokkoz

    (@zokkoz)


    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;”></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<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

    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

    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

    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.

    • This topic was modified 2 months, 3 weeks ago by zokkoz.
    • This topic was modified 2 months, 3 weeks ago by zokkoz.
    • This topic was modified 2 months, 3 weeks ago by zokkoz.
    • This topic was modified 2 months, 3 weeks ago by zokkoz.
    • This topic was modified 2 months, 3 weeks ago by zokkoz.
Viewing 4 replies - 1 through 4 (of 4 total)
  • I have MS succesfully integrated with TranslatePress.
    These are some screenshots from the settings tab. You might need to adapt yours. (note, I don’t use a subdomain)
    https://ibb.co/HVKVM7n
    https://ibb.co/JCX0CLH

    Maybe that can help with your issues.

    Thread Starter zokkoz

    (@zokkoz)

    Thanks @boxhamster ! I appreciate you sharing your experience with me. But a quick question: are you also using the SEOPack addon from Translatepress? The thing is that I don’t just translate the course copy on the site, I also translate the course slug, so “/en/courses/a-sample-course/” from English becomes in Spanish “/es/cursos/un-ejemplo-de-curso/”. When the course slug is translated if I click on “Inicio del curso” button (for the Spanish version) of “Début du cours” button (for French version) I get the error message. But if only the default base /en/, /fr/, and /es/ is added to the course slug and the rest of the slug remains as it is from the site’s default language (English), everything works. So, when /en/courses/a-sample-course/ becomes /fr/courses/a-sample-course/, or /es/courses/a-sample-course/, the integration works. And it’s not working when /en/courses/a-sample-course/ becomes /es/cursos/un-ejemplo-de-curso/.

    Ahh, great you have everything working already.
    Unfortunately, I had stumbled into the same issue recently and have yet to find a solution. I’m not sure if it’s a TPR or MS issue though. ??

    Plugin Support mgordonStylemixThemes

    (@mgordon7)

    Hello,

    Thank you for reaching out,

    The LMS plugin supports the Loco translate and WPML plugins for the translations. Other plugins do not include with the LMS plugin at the moment

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.