Prevent fatal error if invalid SCORM/zip is uploaded

Created on 4 February 2023, over 1 year ago
Updated 21 June 2023, about 1 year ago

Problem/Motivation

Currently if an invalid zip file is uploaded, there is no error on upload or save but when viewing the content there's a fatal error.

Steps to reproduce

Proposed resolution

    if (!$start_sco) {
      \Drupal::messenger()->addError(t('Invalid SCORM file.'));
      \Drupal::logger('vss_custom')->error('Invalid SCORM file.');
      return;
    }

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Comments & Activities

Production build 0.69.0 2024