Today, while installing a theme for a foreign trade website, after importing the Demo data, an error occurred at the location where the website frontend images should be displayed. The content is as follows:
Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /www/wwwroot/*/wp-content/themes/*/framework/class-image.php on line 120 Warning: getimagesize(): Failed to enable crypto in /www/wwwroot/*/wp-content/themes/*/framework/class-image.php on line 120 Warning: getimagesize(https://*/wp-content/uploads/2021/02/video-opacity-tiny.png): failed to open stream: operation failed in /www/wwwroot/*/wp-content/themes/*/framework/class-image.php on line 120
The cause of this problem is a certificate issue. The solution is as follows:
1. Download the cert certificate to any location on the server. URL: https://curl.haxx.se/ca/cacert.pem
2. Modify the openssl.cafile= in the php.ini configuration file to openssl.cafile=server directory/cacert.pem
3. Re-execute it~
————————————————
Source: https://blog.csdn.net/default7/article/details/77008973