List of steps to reproduce (step by step, including full links if applicable):
- Fresh install of MediaWiki 1.36.0
- Visit https://www.jjhritz.com/wiki/index.php?title=Main_Page
- Log in
- Attempt to edit Main Page with the Edit button, which launches visual editor
- Exception appears
What happens?:
The loading bar for VisualEditor gets ~2/3rds of the way through, and then an exception box appears:
[YNFAwtfG@h7hNlTI8NufSwAAAAE] Exception caught: Undefined constant "CURLINFO_TOTAL_TIME_T"
What should have happened instead?:
The VisualEditor interface finishes loading
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
MediaWiki 1.36.0
PHP 8.0.2 (cgi-fcgi)
MySQL 8.0.23-0ubuntu0.20.04.1
ICU 60.2
VisualEditor: 0.1.2
Skin: Vector 1.0.0
Server Host: Dreamhost
Service type: Shared Unlimited
Host OS: Ubuntu 18.04.4 LTS
Client OS: Windows 10 Pro 21H1
Client Browser: Chrome Version 91.0.4472.11
Excerpts from debug log file
Start request POST /wiki/api.php IP: 69.216.100.116 HTTP HEADERS: CONNECTION: close HOST: www.jjhritz.com COOKIE: [Redacted] ACCEPT-LANGUAGE: en-US,en;q=0.9 ACCEPT-ENCODING: gzip, deflate, br REFERER: https://www.jjhritz.com/wiki/index.php?title=Main_Page&veaction=edit SEC-FETCH-DEST: empty SEC-FETCH-MODE: cors SEC-FETCH-SITE: same-origin ORIGIN: https://www.jjhritz.com CONTENT-TYPE: application/x-www-form-urlencoded; charset=UTF-8 USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36 SEC-CH-UA-MOBILE: ?0 X-REQUESTED-WITH: XMLHttpRequest DNT: 1 ACCEPT: application/json, text/javascript, */*; q=0.01 SEC-CH-UA: " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91" CONTENT-LENGTH: 133 AUTHORIZATION: (end headers) [session] SessionManager using store SqlBagOStuff [localisation] LocalisationCache using store LCStoreDB [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0s] mysql.jjhritz.com: SET group_concat_max_len = 262144, sql_mode = '' [DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info { "IPAddress": "69.216.100.116", "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/91.0.4472.106 Safari\/537.36", "ChronologyProtection": false, "ChronologyPositionIndex": 0, "ChronologyClientId": false }
[exception] [YNFAwtfG@h7hNlTI8NufSwAAAAE] /wiki/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2 Error: Undefined constant "CURLINFO_TOTAL_TIME_T" #0 /home/dh_bq7tsu/jjhritz.com/wiki/includes/libs/http/MultiHttpClient.php(481): constant(string) #1 /home/dh_bq7tsu/jjhritz.com/wiki/includes/libs/http/MultiHttpClient.php(279): MultiHttpClient->getCurlTime(CurlHandle, integer, string) #2 /home/dh_bq7tsu/jjhritz.com/wiki/includes/libs/http/MultiHttpClient.php(189): MultiHttpClient->runMultiCurl(array, array) #3 /home/dh_bq7tsu/jjhritz.com/wiki/includes/libs/virtualrest/VirtualRESTServiceClient.php(254): MultiHttpClient->runMulti(array) #4 /home/dh_bq7tsu/jjhritz.com/wiki/includes/libs/virtualrest/VirtualRESTServiceClient.php(142): VirtualRESTServiceClient->runMulti(array) #5 /home/dh_bq7tsu/jjhritz.com/wiki/extensions/VisualEditor/includes/ApiParsoidTrait.php(141): VirtualRESTServiceClient->run(array) #6 /home/dh_bq7tsu/jjhritz.com/wiki/extensions/VisualEditor/includes/ApiParsoidTrait.php(234): ApiVisualEditor->requestRestbase(Title, string, string, array) #7 /home/dh_bq7tsu/jjhritz.com/wiki/extensions/VisualEditor/includes/ApiVisualEditor.php(158): ApiVisualEditor->requestRestbasePageHtml(MediaWiki\Revision\RevisionStoreRecord) #8 /home/dh_bq7tsu/jjhritz.com/wiki/includes/api/ApiMain.php(1647): ApiVisualEditor->execute() #9 /home/dh_bq7tsu/jjhritz.com/wiki/includes/api/ApiMain.php(617): ApiMain->executeAction() #10 /home/dh_bq7tsu/jjhritz.com/wiki/includes/api/ApiMain.php(588): ApiMain->executeActionWithErrorHandling() #11 /home/dh_bq7tsu/jjhritz.com/wiki/api.php(90): ApiMain->execute() #12 /home/dh_bq7tsu/jjhritz.com/wiki/api.php(45): wfApiMain() #13 {main}