Incorrect directory name for unzip of package

Created on 22 May 2024, 6 months ago

Problem/Motivation

When SCORM package is uploaded and it is extracted to directory public://external_package_extracted
But in another part the code check if manifest file exists in different directory public://opigno_scorm_extracted

This cause that in database there is no record in table "opigno_scorm_packages" and when you try to display SCORM package, you receive error Invalid SCORM package

Steps to reproduce

Upload SCORM package into file and save
Try to acccess content with SCORM package
Error message is displayed: Invalid SCORM package

Proposed resolution

Change directory in file docroot/modules/contrib/opigno_scorm/src/OpignoScorm.php in function OpignoScorm::scormExtract

$extract_dir = 'public://external_package_extracted/scorm_' . $file->id();

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

🇨🇿Czech Republic Jiskra

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024