Fatal error: Uncaught Error: Undefined class constant ‘BUFFER_SIZE’
-
hello,
just upgraded to v5.2,but i got this fatal error:Fatal error: Uncaught Error: Undefined class constant ‘BUFFER_SIZE’ in /public/wp-includes/Requests/Transport/cURL.php:391 Stack trace: #0 /public/wp-includes/Requests/Transport/cURL.php(133): Requests_Transport_cURL->setup_handle(‘https://api.wor…’, Array, ‘plugins=%7B%22p…’, Array) #1 /public/wp-includes/class-requests.php(379): Requests_Transport_cURL->request(‘https://api.wor…’, Array, Array, Array) #2 /public/wp-includes/class-http.php(384): Requests::request(‘https://api.wor…’, Array, Array, ‘POST’, Array) #3 /public/wp-includes/class-http.php(596): WP_Http->request(‘https://api.wor…’, Array) #4 /public/wp-includes/http.php(187): WP_Http->post(‘https://api.wor…’, Array) #5 /public/wp-includes/update.php(376): wp_remote_post(‘https://api.wor…’, Arra in /public/wp-includes/Requests/Transport/cURL.php on line 391
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.The last two sentences above are also displayed almost every page of the WP backend. sometimes can’t open, plugings can’t updated,or wp-admin can’t login, etc.but there is NO mail sent to my admin email box.
The line 391 is as follows, seems to be the same as the one in github/wordpress
curl_setopt($this->handle, CURLOPT_BUFFERSIZE, Requests::BUFFER_SIZE);Any ideas? thanks!
- The topic ‘Fatal error: Uncaught Error: Undefined class constant ‘BUFFER_SIZE’’ is closed to new replies.