Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: GoogleSheet.php - array_shift(): Argument #1 ($array) must be of type array, null given #1429

Closed
jasonmckinney66 opened this issue Apr 12, 2024 · 1 comment
Labels

Comments

@jasonmckinney66
Copy link

Description

Importing from Google Sheets with header and single row of simple data. FeedMe connects but throws error:
Screenshot 2024-04-12 at 4 13 02 PM

Steps to reproduce

  1. Verified url format and key are working via Google Workspace Explorer
  2. Added url with key to FeedMe.
  3. Feed looks like: https://sheets.googleapis.com/v4/spreadsheets/1r4XVBK54osTdyyZedPcLlAb_7LFnyphEo1IoEYRnP7s?ranges='2022'&key=AIzaSyCXuTJxsI-t7IzLwcCrPsnjYT1qellXXXX

Additional info

  • Craft version: 4.8.9
  • PHP version: 8.0.8
  • Database driver & version: MySQL 5.7.34
  • Plugins & versions: FeedMe 5.4.0
@i-just
Copy link
Contributor

i-just commented May 2, 2024

Hi, thanks for reaching out! I believe your feed URL is not quite right. I have tried the following 2 examples:

The response from the Google Sheets URL has to contain the “values” key. Something along the lines of:
Screenshot 2024-05-02 at 13 48 56

I hope this helps!

I will close this now, but please don’t hesitate to get in touch if you run into any further problems!

@i-just i-just closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants