DenverCoder1 / DenverCoder1/github-readme-streak-stats

Warnings when loading opcache and sockets extensions on Vercel

Open
#719 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
7.1k
Forks
1.8k
Avg merge
9d 6h
Merged PRs (30d)
2

Description

### 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
1. Deploy the project on Vercel.
2. Check the logs on Vercel.

### Expected Behavior
- The `opcache` and `sockets` extensions should not generate warnings if they are not needed.

### Current Behavior
- Receiving warnings about the `opcache` and `sockets` extensions 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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.