Forum

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:
http://my-domain/tao/taoQtiTestPreviewer/Previewer/getItem?serviceCallId=previewer&uri=http%3A%2F%2Fmy-domain%2Ftao%2Fonline.rdf%23i158094151429765&resultId=http%3A%2F%2Fmy-domain%2Ftao%2Fonline.rdf%23i1580941751951108&itemDefinition=item-9&deliveryUri=http%3A%2F%2Fmy-domain%2Ftao%2Fonline.rdf%23i1580941576239472&_=1581022089285

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

How can I solve this?

Thanks in advance!

Comments

  • edited February 7

    Hi,
    TAO comes with a handy application level log,
    You can enable such logs from this config file,
    [HTDOCS]/config/generis/log.conf.php

    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(
                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 11

    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 13

    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.

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

×