-
Bug
-
Resolution: Fixed
-
Major
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
Discovered this by coincidence, because I saw some PHP warnings in logs:
Undefined variable $SCRIPT in /lib/outputrenderers.php on line 888
Tracing down the problem, this is a regression of MDL-71965, where a global statement was not moved to a new function created there. Pretty simple.
To reproduce:
- Enable profiling ($CFG->profilingenabled = true;) in your site (you will need the xhprof extension installed and enabled).
- Enable under demand profiling ($CFG->profilingallowme = true;)
- Go to any page in the site and add &PROFILEME at the end of the URL.
- In the footer a "This script has been profiled" link will display.
Expected:
- The link points to a page where you can see the summary information of the just profiled page.
Actual:
- The link points to a page with the "Sorry, cannot find any profiling run for the '' URL" message.
- is a regression caused by
-
MDL-71965 New footer
- Closed