mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #179] Undefined offset: 1 error while launching? #117
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @makandz on GitHub (Dec 25, 2019).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/179
I just setup the latest version of this API using composer on my CentOS System running PHP 7.2. It works fine on my Windows machine but my Linux machine posts the following errors when I try loading any page with the autoload required.
Notice: Undefined offset: 1 in /var/www/html/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 237Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/html/vendor/jwilsson/spotify-web-api-php/src/Request.php:57 Stack trace: #0 /var/www/html/vendor/jwilsson/spotify-web-api-php/src/Request.php(254): SpotifyWebAPI\Request->parseBody(NULL, 0) #1 /var/www/html/vendor/jwilsson/spotify-web-api-php/src/Request.php(104): SpotifyWebAPI\Request->send('POST', 'https://account...', 'grant_type=clie...', Array) ....Any help?
Update: Doing some more investigation it looks like my curl_exec is returning with a false Boolean value.
@makandz commented on GitHub (Dec 25, 2019):
Managed to fix it, SELinux for some reason was preventing my curl requests from going out. Solved 👍