Getting PHP Fatal error: Cannot redeclare serve_file() when using sync_langpacks
Bug #1895901 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
19.04 |
Fix Released
|
High
|
Unassigned | ||
19.10 |
Fix Released
|
High
|
Unassigned | ||
20.04 |
Fix Released
|
High
|
Unassigned | ||
20.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
This is because we are using require() instead of require_once() in sync_langpacks.php
Changed in mahara: | |
importance: | Undecided → High |
Changed in mahara: | |
milestone: | 20.10.0 → none |
To post a comment you must log in.
Reviewed: https:/ /reviews. mahara. org/11278 /git.mahara. org/mahara/ mahara/ commit/ 5b0a7106f793b2a def665773945013 d5eeda04f8
Committed: https:/
Submitter: Lisa Seeto (<email address hidden>)
Branch: master
commit 5b0a7106f793b2a def665773945013 d5eeda04f8
Author: Robert Lyon <email address hidden>
Date: Thu Sep 17 10:57:50 2020 +1200
Bug 1895901: Make sure we only call included files once
Otherwise we can end up with lib/file. php:38) in htdocs/lib/file.php on line 171
PHP Fatal error: Cannot redeclare serve_file() (previously declared
in htdocs/
Change-Id: I020393a3955437 38c9054783698e2 665160308f8
Signed-off-by: Robert Lyon <email address hidden>