mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #43052
[Bug 1509167] Re: PHP error message when you submit a page access end date in the past
Here is the error message
[WAR] 8f (lib/form/elements/viewacl.php:67) Undefined index: id
Call stack (most recent first):
log_message("Undefined index: id", 8, true, true, "/home/niranjanbandi/code/mahara/htdocs/lib/form/el...", 67) at /home/niranjanbandi/code/mahara/htdocs/lib/errors.php:521
error(8, "Undefined index: id", "/home/niranjanbandi/code/mahara/htdocs/lib/form/el...", 67, array(size 15)) at /home/niranjanbandi/code/mahara/htdocs/lib/form/elements/viewacl.php:67
pieform_element_viewacl(object(Pieform), array(size 13)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:1510
Pieform->build_element_html(array(size 13)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:726
Pieform->build() at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:169
Pieform::process(array(size 9)) at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:4838
pieform(array(size 9)) at /home/niranjanbandi/code/mahara/htdocs/view/accessurl.php:485
[WAR] 8f (lib/form/elements/viewacl.php:67) Undefined index: id
Call stack (most recent first):
log_message("Undefined index: id", 8, true, true, "/home/niranjanbandi/code/mahara/htdocs/lib/form/el...", 67) at /home/niranjanbandi/code/mahara/htdocs/lib/errors.php:521
error(8, "Undefined index: id", "/home/niranjanbandi/code/mahara/htdocs/lib/form/el...", 67, array(size 18)) at /home/niranjanbandi/code/mahara/htdocs/lib/form/elements/viewacl.php:67
pieform_element_viewacl(object(Pieform), array(size 13)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:1510
Pieform->build_element_html(array(size 13)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:726
Pieform->build() at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:169
Pieform::process(array(size 9)) at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:4838
pieform(array(size 9)) at /home/niranjanbandi/code/mahara/htdocs/view/accessurl.php:485
--
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/1509167
Title:
PHP error message when you submit a page access end date in the past
Status in Mahara:
Confirmed
Bug description:
To replicate:
1. Create a page
2. Share page
3. On the share page screen, share with "Public"
4. On the ACL line for public, set "Access end date/time" to a date in the past
5. Save
Expected result: You should see some Mahara end-user error messages
telling you "The end date for 'Public' access cannot be in the past."
and "There was an error with submitting this form. Please check the
marked fields and try again."
Actual result: In addition to those, PHP throws an error message:
Set a date in the past with the format: %%d/%%m/%%Y
[WAR] 32 (lib/form/elements/viewacl.php:65) Undefined index: id
Call stack (most recent first):
log_message("Undefined index: id", 8, true, true, "/var/www/html/maharagerrit/htdocs/lib/form/element...", 65) at /var/www/html/maharagerrit/htdocs/lib/errors.php:441
error(8, "Undefined index: id", "/var/www/html/maharagerrit/htdocs/lib/form/element...", 65, array(size 17)) at /var/www/html/maharagerrit/htdocs/lib/form/elements/viewacl.php:65
pieform_element_viewacl(object(Pieform), array(size 13)) at /var/www/html/maharagerrit/htdocs/lib/pieforms/pieform.php:1480
Pieform->build_element_html(array(size 13)) at /var/www/html/maharagerrit/htdocs/lib/pieforms/pieform.php:714
Pieform->build() at /var/www/html/maharagerrit/htdocs/lib/pieforms/pieform.php:169
Pieform::process(array(size 8)) at /var/www/html/maharagerrit/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 8)) at /var/www/html/maharagerrit/htdocs/view/access.php:546
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1509167/+subscriptions
References