Embedded PDFs don't display to logged-out users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Aaron Wells |
Bug Description
I thought I was having problems with embedded PDFs not displaying properly in Chromium and FF, but it turns out the problem was that I was viewing them while logged in (since I was editing the page) in FF, and then to save time I was viewing them while logged out in my other browsers.
To replicate:
1. Create a page that has an embedded PDF.
2. Make the page viewable by Public
3. Log out
4. View the page (while logged out)
Expected result: You should be able to see the embedded PDF
Actual result: You see only the embedded PDF block's title (in FF and Chromium) or the title and a grayed-out scrollbar (in IE).
So it looks like the problem may be that some of the JS is not getting included into the page when a logged-out user views it.
Changed in mahara: | |
status: | Confirmed → Fix Committed |
Changed in mahara: | |
milestone: | 1.8rc1 → 1.8.0 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
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 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 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
[Thu Sep 05 15:34:49 2013] [error] [client 127.0.0.1] PHP 1. {main}() /home/aaronw/
[Thu Sep 05 15:34:49 2013] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function artefact_
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.