Comment 1 for bug 1221001

Revision history for this message
Aaron Wells (u-aaronw) wrote :

The iframe page is erroring out with this error when accessed by a logged-out user:

[Thu Sep 05 15:34:49 2013] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://vegas.wgtn.cat-it.co.nz/mahara/htdocs/view/view.php?id=6
[Thu Sep 05 15:34:49 2013] [error] [client 127.0.0.1] PHP 1. {main}() /home/aaronw/www/mahara/htdocs/artefact/file/blocktype/pdf/viewer.php:0, referer: http://vegas.wgtn.cat-it.co.nz/mahara/htdocs/view/view.php?id=6
[Thu Sep 05 15:34:49 2013] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function artefact_instance_from_id() in /home/aaronw/www/mahara/htdocs/artefact/file/blocktype/pdf/viewer.php on line 47, referer: http://vegas.wgtn.cat-it.co.nz/mahara/htdocs/view/view.php?id=6

So, it looks like the problem is that it relies on certain library files being included in the page load. They must be getting loaded in by other parts of the process for a logged-in user, but not for a logged-out user.