mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #09898
[Bug 1034194] Re: When adding a folder/file to a group page warnings are shown
On looking in more detail, it seems this is because there is a variable
$group which is set, but site files don't have an author field. Solution
would be to check for admin status.
Also, it appears that there is code for having an "edit" button next to
group and site files/folders, but is not shown. It could be cool to fix
that, maybe a seperate bug?
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1034194
Title:
When adding a folder/file to a group page warnings are shown
Status in Mahara ePortfolio:
Confirmed
Bug description:
When adding a folder artefact, below is shown (twice)
[WAR] 3a (artefact/file/lib.php:464) Undefined property: stdClass::$author
Call stack (most recent first):
log_message("Undefined property: stdClass::$author", 8, true, true, "/var/www/mahara-dev/htdocs/artefact/file/lib.php", 464) at /var/www/mahara-dev/htdocs/lib/errors.php:446
error(8, "Undefined property: stdClass::$author", "/var/www/mahara-dev/htdocs/artefact/file/lib.php", 464, array(size 14)) at /var/www/mahara-dev/htdocs/artefact/file/lib.php:464
ArtefactTypeFileBase::get_my_files_data(0null, "1", "mahara", array(size 1)) at /var/www/mahara-dev/htdocs/artefact/file/form/elements/filebrowser.php:142
pieform_element_filebrowser(object(Pieform), array(size 16)) at /var/www/mahara/dev/htdocs/lib/pieforms/pieform.php:1378
Pieform->build_element_html(array(size 16)) at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:659
Pieform->build() at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:899
Pieform->json_reply(0array(size 7)) at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:866
Pieform->reply(0array(size 7)) at /var/www/mahara-dev/htdocs/blocktype/lib.php:588
BlockInstance->instance_config_store(object(Pieform), array(size 8)) at Unknown:0
call_user_func_array(array(size 2), array(size 2)) at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:514
Pieform->__construct(array(size 15)) at /var/www/mahara-dev/htdocs/blocktype/lib.php:872
BlockInstance->build_configure_form() at /var/www/mahara-dev/htdocs/view/blocks.php:87
When adding a file artefact, the following (repeated 12 times)
[WAR] 10 (artefact/file/lib.php:464) Undefined property: stdClass::$author
Call stack (most recent first):
log_message("Undefined property: stdClass::$author", 8, true, true, "/var/www/mahara-dev/htdocs/artefact/file/lib.php", 464) at /var/www/mahara-dev/htdocs/lib/errors.php:446
error(8, "Undefined property: stdClass::$author", "/var/www/mahara-dev/htdocs/artefact/file/lib.php", 464, array(size 14)) at /var/www/mahara-dev/htdocs/artefact/file/lib.php:464
ArtefactTypeFileBase::get_my_files_data(0null, "1", "mahara", null) at /var/www/mahara-dev/htdocs/artefact/file/form/elements/filebrowser.php:142
pieform_element_filebrowser(object(Pieform), array(size 15)) at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:1378
Pieform->build_element_html(array(size 15)) at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:659
Pieform->build() at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:899
Pieform->json_reply(0array(size 7)) at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:866
Pieform->reply(0array(size 7)) at /var/www/mahara-dev/htdocs/blocktype/lib.php:588
BlockInstance->instance_config_store(object(Pieform), array(size 8)) at Unknown:0
call_user_func_array(array(size 2), array(size 2)) at /var/www/mahara-dev/htdocs/lib/pieforms/pieform.php:514
Pieform->__construct(array(size 15)) at /var/www/mahara-dev/htdocs/blocktype/lib.php:872
BlockInstance->build_configure_form() at /var/www/mahara-dev/htdocs/view/blocks.php:87
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1034194/+subscriptions
References