← Back to team overview

mahara-contributors team mailing list archive

[Bug 1221001] Re: Embedded PDFs don't display to logged-out users

 

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.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1221001

Title:
  Embedded PDFs don't display to logged-out users

Status in Mahara ePortfolio:
  Triaged

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1221001/+subscriptions


References