Skip to content

Bug when importing qti questions with images #106

Description

@CPASimUSante

I tried to make a package with qti samples from https://www.imsglobal.org/question/index.html but when i imported as qti question i had this error.

500 Internal Server Error - ContextErrorException

Stack Trace
in vendor/ujm/exo-bundle/UJM/ExoBundle/Services/classes/QTI/qtiImport.php at line 211   -
            $extension = pathinfo($fileName, PATHINFO_EXTENSION);
            $hashName = $this->container->get('claroline.utilities.misc')->generateGuid() . '.' . $extension;
            $mimeType = $ob->getAttribute('type');
            $size = filesize($tmpFile);
            $targetFilePath = $filesDirectory . DIRECTORY_SEPARATOR . $hashName;
            copy($tmpFile, $targetFilePath);
            $file = new File();

my /web folder is 777, i've joined the file :

qti.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions