** Changed in: mahara
     Assignee: (unassigned) => Hugh Davenport (hugh-catalyst)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/688304

Title:
  Check html export of views containing files owned by a different user
  to that of the view

Status in Mahara ePortfolio:
  Triaged

Bug description:
  Html export may be failing when trying to rewrite download links to
  files which are owned by someone other than the exporting user (files
  which are not going to be included in the export).

  
  [WAR] 80 (artefact/file/lib.php:563) Trying to get property of non-object
  Call stack (most recent first):
  * log_message("Trying to get property of non-object", 8, true, true, 
  "/srv/sitename.com/public/htdocs/artefact/file/l...", 563) at 
/srv/sitename.com/public/htdocs/lib/errors.php:444
  * error(8, "Trying to get property of non-object", 
"/srv/sitename.com/public/htdocs/artefact/file/l...", 563, array(size 3)) at 
/srv/sitename.com/public/htdocs/artefact/file/lib.php:563
  * ArtefactTypeFileBase::get_full_path("357", false) at 
/srv/sitename.com/public/htdocs/export/html/lib.php:800
  * HtmlExportOutputFilter->get_folder_path_for_file(object(ArtefactTypeFile)) 
at /srv/sitename.com/public/htdocs/export/html/lib.php:692
  * HtmlExportOutputFilter->replace_artefact_link(array(size 6)) at Unknown:0
  * 
preg_replace_callback("#<a[^>]+href="(http\\://sitename\\.com/)?/?view/...", 
array(size 2), "<div id="column_1" class="column columns3" style="...") at 
/srv/sitename.com/public/htdocs/export/html/lib.php:629
  * HtmlExportOutputFilter->filter("<div id="column_1" class="column columns3" 
style="...") at /srv/sitename.com/public/htdocs/export/html/lib.php:376
  * PluginExportHtml->dump_view_export_data() at 
/srv/sitename.com/public/htdocs/export/html/lib.php:198
  * PluginExportHtml->export() at 
/srv/sitename.com/public/htdocs/export/download.php:102

  ....

  PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted
  (tried to allocate 71 bytes) in
  
/srv/sitename.com/public/htdocs/lib/htmlpurifier/HTMLPurifier/ChildDef/Required.php
  on line 25

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to