Error 500 when trying to review delivery items

I'm using TAO 3.3.0-RC02.

I get an error 500 when trying to review delivery items (Results > View > Review). I've enabled debugging as shown here, but no information is being logged (at least not to /var/log/apache2/error.log; is there any other file I should check?)

An example XHR that returns the error:

And the response is:
500: {"success":false,"type":"exception","code":0,"message":"An error occurred!"}

How can I solve this?

Thanks in advance!


  • edited February 2020

    TAO comes with a handy application level log,
    You can enable such logs from this config file,

    Examples of log configurations are commented there, uncomment and tweak as you need, for example,

    return new oat\oatbox\log\LoggerService(array(
        'logger' => new oat\oatbox\log\logger\TaoLog(array(
            'appenders' => array(
                    'class' => 'SingleFileAppender',
                    'threshold' => 2,
                    'max_file_size' => 1048576, // 1Mb
                    'rotation-ratio' => .5,
                    'file' => dirname(__FILE__) . '/../../TAOActivityLog.txt',
                    'format' => '%m',
                    'prefix' => '[dev]'
  • edjedj
    edited February 2020

    Thanks for the response!

    I used your code and then tried tweaking it a bit. Yours produces just one line (severity 2, file /var/www/html/tao/taoQtiTestPreviewer/models/ItemPreviewer.php, line 149): Either item.json or qti.xml should exist, as reported here. I changed 'format' to '%b' but it just printed %b (I suppose it's because no lines are errors). Then I changed 'threshold' to 0 and 'class' to 'XMLAppender', but I didn't find anything useful. I don't know how to tweak the other examples to produce more useful output. Unfortunately reinstalling TAO didn't solve the problem for me.

    What would you suggest?

    Thanks again!

  • edited February 2020

    Could it be that you deleted or moved files from your /data folder directly after you collected results? The issue is not reproducable but if you delete compiled item from the filesystem, the review would behave with this exception as it can't find the compiled version of the item anymore.

  • Hi.

    Same issue here. I'm a new user.

    3.3.0-RC02: 500: {"success":false,"type":"exception","code":0,"message":"An error occurred!"}
    3.4-RC01: Either item.json or qti.xml should exist

    Any sugestion?

  • I fix this issue replacing composer.json and composer.lock with those:

    All in TAO 3.4-RC01

Sign In or Register to comment.

We use cookies on our website to support technical features that enhance your user experience. Cookie Policy Privacy Policy