-
Bug
-
Resolution: Fixed
-
Major
-
2.7.17, 2.9.9, 3.0.7, 3.1.3, 3.2
-
MOODLE_27_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_27_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
-
MDL-57163-undefined-function-curl_version -
Steps to reproduce:
1) Start installing Moodle on the system without curl PHP extension (in my case it was a Debian Linux box without php5-curl package installed).
2) After accepting license agreement you get redirected to "Server checks" page (/admin/index.php?cache=0&lang=en&agreelicense=1).
Expected behavior:
The page should load properly and display the information about missing curl extension.
Actual behavior:
In production environment this page is blank (because of disabled error reporting in PHP). In development environment with E_ALL error reporting level this page displays the following error:
PHP Fatal error: Call to undefined function curl_version() in /path/to/moodle/lib/upgradelib.php on line 2334
The problem is caused by changes introduced recently in MDL-55777:
https://github.com/moodle/moodle/commit/f2330472f0963985deb34ca72ee2b33a6d4358b7#diff-ec328f1a30e59aed57fc4f0555f82f44R875
The proposed fix (updated):
https://github.com/vvzh/moodle/commits/MDL-57163-undefined-function-curl_version
- blocks
-
MDL-56806 Add environment checks for TLS that missed stables in MDL-55404
- Closed
- has a non-specific relationship to
-
MDL-56917 Environment checks for TLS can trigger a false positive
- Closed
- is a regression caused by
-
MDL-55777 Add envcheck for minimum recommended version of libcurl 7.19.4
- Closed