We are unable to upload scorm package.

Created on 26 July 2023, over 1 year ago
Updated 27 September 2023, about 1 year ago

Problem/Motivation

After installing Opigno Module, we are unable to upload scorm package in the opigno_activity. When uploading any scorm package we are getting ajax error. For your reference we have attached the this image opigno-lms-issues.png

We are getting below error also in recent log message,

Exception: Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed in serialize() (line 14 of /app/docroot/core/lib/Drupal/Component/Serialization/PhpSerialize.php).

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

🇮🇳India gowtham.boopathiraj

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

Comments & Activities

  • Issue created by @gowtham.boopathiraj
  • 🇮🇳India jyothi.rs

    Hi is there any fix on this issue? I think this should be fix as soon as possible, I am facing the same issues in uploading the scorm package after upgrading opigno to ^3.1. It seems removal and upload package is working in edit section only. Please advise on this

    Exception: Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed in serialize() (line 14 of /var/www/dev-lms.lifenethealth.org/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php).

  • 🇪🇸Spain dtamajon

    Hi! Same here. We are not able to upload the SCORM packages.

  • 🇨🇦Canada metasim

    Hello Guys,
    I had the same problem with one of my projects,
    After trying to find around what the problem might be, I found the same issue on `opigno_module` module which was one of the dependencies in my project.

    Applying the patch from this issue here: https://www.drupal.org/project/opigno_module/issues/3377470 🐛 Serialization error when try to upload files into 'File' type fields when create activities Needs review
    solved it for me, so this could be helpful for you guys too!

  • 🇪🇸Spain dtamajon

    This solves our issue. Thanks @metasin

Production build 0.71.5 2024