Error message when sharing profile page with public

Bug #1625389 reported by Kristina Hoeppner on 2016-09-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Medium
Unassigned
17.04
Medium
Unassigned
17.10
Medium
Unassigned

Bug Description

Mahara master (16.10dev)

When I share my profile page with "Public", I get the following error message after I saved the form and access rules have been applied.

[WAR] 0b (view/access.php:415) Undefined index: startdate
Call stack (most recent first):

    log_message("Undefined index: startdate", 8, true, true, "/home/kristina/code/mahara/htdocs/view/access.php", 415) at /home/kristina/code/mahara/htdocs/lib/errors.php:513
    error(8, "Undefined index: startdate", "/home/kristina/code/mahara/htdocs/view/access.php", 415, array(size 10)) at /home/kristina/code/mahara/htdocs/view/access.php:415
    editaccess_validate(object(Pieform), array(size 11)) at Unknown:0
    call_user_func_array("editaccess_validate", array(size 2)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:1449
    Pieform->validate(array(size 11)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:521
    Pieform->__construct(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:164
    Pieform::process(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:4764
    pieform(array(size 8)) at /home/kristina/code/mahara/htdocs/view/access.php:555

[WAR] 0b (view/access.php:415) Undefined index: stopdate
Call stack (most recent first):

    log_message("Undefined index: stopdate", 8, true, true, "/home/kristina/code/mahara/htdocs/view/access.php", 415) at /home/kristina/code/mahara/htdocs/lib/errors.php:513
    error(8, "Undefined index: stopdate", "/home/kristina/code/mahara/htdocs/view/access.php", 415, array(size 10)) at /home/kristina/code/mahara/htdocs/view/access.php:415
    editaccess_validate(object(Pieform), array(size 11)) at Unknown:0
    call_user_func_array("editaccess_validate", array(size 2)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:1449
    Pieform->validate(array(size 11)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:521
    Pieform->__construct(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:164
    Pieform::process(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:4764
    pieform(array(size 8)) at /home/kristina/code/mahara/htdocs/view/access.php:555

[WAR] 0b (view/access.php:420) Undefined index: stopdate
Call stack (most recent first):

    log_message("Undefined index: stopdate", 8, true, true, "/home/kristina/code/mahara/htdocs/view/access.php", 420) at /home/kristina/code/mahara/htdocs/lib/errors.php:513
    error(8, "Undefined index: stopdate", "/home/kristina/code/mahara/htdocs/view/access.php", 420, array(size 11)) at /home/kristina/code/mahara/htdocs/view/access.php:420
    editaccess_validate(object(Pieform), array(size 11)) at Unknown:0
    call_user_func_array("editaccess_validate", array(size 2)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:1449
    Pieform->validate(array(size 11)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:521
    Pieform->__construct(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:164
    Pieform::process(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:4764
    pieform(array(size 8)) at /home/kristina/code/mahara/htdocs/view/access.php:555

[WAR] 0b (view/access.php:425) Undefined index: startdate
Call stack (most recent first):

    log_message("Undefined index: startdate", 8, true, true, "/home/kristina/code/mahara/htdocs/view/access.php", 425) at /home/kristina/code/mahara/htdocs/lib/errors.php:513
    error(8, "Undefined index: startdate", "/home/kristina/code/mahara/htdocs/view/access.php", 425, array(size 11)) at /home/kristina/code/mahara/htdocs/view/access.php:425
    editaccess_validate(object(Pieform), array(size 11)) at Unknown:0
    call_user_func_array("editaccess_validate", array(size 2)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:1449
    Pieform->validate(array(size 11)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:521
    Pieform->__construct(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:164
    Pieform::process(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:4764
    pieform(array(size 8)) at /home/kristina/code/mahara/htdocs/view/access.php:555

Robert Lyon (robertl-9) on 2016-10-20
Changed in mahara:
milestone: 16.10.0 → 16.10.1
Robert Lyon (robertl-9) on 2016-10-21
Changed in mahara:
milestone: 16.10.1 → 17.04.0
Robert Lyon (robertl-9) on 2017-03-28
Changed in mahara:
milestone: 17.04.0 → 17.04.1

Reviewed: https://reviews.mahara.org/7748
Committed: https://git.mahara.org/mahara/mahara/commit/c277d5d41607c8f0a9ccfa30e85ecd3139615b9a
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit c277d5d41607c8f0a9ccfa30e85ecd3139615b9a
Author: Robert Lyon <email address hidden>
Date: Thu May 11 19:48:02 2017 +1200

Bug 1625389: Proper checking of view access start/stop date values

As profile page can have the fields disabled and so don't get passed
to the saving part causing errors before

behatnotneeded

Change-Id: I1a48c5cdf93a20abb69630e6d1e52aaef701eee5
Signed-off-by: Robert Lyon <email address hidden>

Reviewed: https://reviews.mahara.org/7779
Committed: https://git.mahara.org/mahara/mahara/commit/0b26386688cc8d0b42d40fc0d1b995b7cb3782f9
Submitter: Robert Lyon (<email address hidden>)
Branch: 17.04_STABLE

commit 0b26386688cc8d0b42d40fc0d1b995b7cb3782f9
Author: Robert Lyon <email address hidden>
Date: Thu May 11 19:48:02 2017 +1200

Bug 1625389: Proper checking of view access start/stop date values

As profile page can have the fields disabled and so don't get passed
to the saving part causing errors before

behatnotneeded

Change-Id: I1a48c5cdf93a20abb69630e6d1e52aaef701eee5
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit c277d5d41607c8f0a9ccfa30e85ecd3139615b9a)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers