github-readme-streak-stats
github-readme-streak-stats copied to clipboard
Warnings when loading opcache and sockets extensions on Vercel
Problem Description
My card was not updating since the first time I placed it, so I decided to deploy on Vercel following the tutorial. I am receiving warnings when loading the opcache and sockets extensions on the Vercel hosting environment, even before editing or creating the php.ini file.
Steps to Reproduce
- Deploy the project on Vercel.
- Check the logs on Vercel.
Expected Behavior
- The
opcacheandsocketsextensions should not generate warnings if they are not needed.
Current Behavior
- Receiving warnings about the
opcacheandsocketsextensions not being found.
Additional Information
Warnings in the Vercel log:
Warning: Failed loading Zend extension 'opcache' (tried: /vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/opcache (/vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/opcache: cannot open shared object file: No such file or directory), /vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/opcache.so (/vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/opcache.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'sockets' (tried: /vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/sockets (/vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/sockets: cannot open shared object file: No such file or directory), /vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/sockets.so (/vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/sockets.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'runkit7' (tried: /vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/runkit7 (/vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/runkit7: cannot open shared object file: No such file or directory), /vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/runkit7.so (/vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/runkit7.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'mongodb' (tried: /vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/mongodb (/vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/mongodb: cannot open shared object file: No such file or directory), /vercel/path0/.vercel/builders/node_modules/@libphp/amazon-linux-2-v83/native/php/modules/mongodb.so (libutf8proc.so.1: cannot open shared object file: No such file or directory)) in Unknown on line 0
Error when opening the card link in the browser:
Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/task/user/api/stats.php:234 Stack trace: #0 /var/task/user/api/stats.php(49): getGraphQLCurlHandle('query {\n ...', 'ghp_57mAbttJQGT...') #1 /var/task/user/api/stats.php(126): executeContributionGraphRequests('NaideNi', Array) #2 /var/task/user/api/index.php(38): getContributionGraphs('NaideNi', NULL) #3 {main} thrown in /var/task/user/api/stats.php on line 234
I am using Windows 10, Google Chrome browser, and the browser version is Version 129.0.6668.60 (Official Build) (64-bit).