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

Invalid argument supplied in process.php line 27 #4

Open
chornge opened this issue Nov 6, 2018 · 3 comments
Open

Invalid argument supplied in process.php line 27 #4

chornge opened this issue Nov 6, 2018 · 3 comments

Comments

@chornge
Copy link

chornge commented Nov 6, 2018

Hi, when I run php ./process.php, I get an error:

Warning: Invalid argument supplied for foreach() in /Users/christian/OtherProjects/ew61-export/process.php on line 27

@jamesinglis
Copy link
Owner

Hi there

This line is where PHP queries the SQLite database for the first time - the fact that this is failing and not returning an array that foreach can iterate over suggests that either PHP isn't compiled with SQLite support or is unable to connect to the .db database files that should be at ./resources/ (Songs.db and SongWords.db) - they either don't exist or are not valid SQLite database files.

If you're still experiencing problems, please contact me with details of your PHP implementation and I'll try to help you get up and running.

Kind regards

James

@ivansdj68
Copy link

Hello. Was this issue resolved? I am experiencing the same problem. Thank you.

@jamesinglis
Copy link
Owner

Hi @r603, did you check the two most likely things in the above comment? When I get time, I'll add some more verbose error messages giving you more details about the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants