makesite: Invalid argument supplied for foreach()

Archived from the Xataface Users forum.

mightyduk — Tue Mar 30, 2010 6:42 pm

Hi,

I’m new to xataface but it looks like a great solution, I’m currently using Databik. The problem I’m having is with makesite.

Dataface 1.2.2 1616
Installed at /cd18project/xataface

Installation status INSTALLED CORRECTLY

when i am in the xataface directory and run the install without paramaters i get this:

Code: Select all
`[summorum@p3nlh209 xataface]$ ./makesite
Content-type: text/html



Warning:  Invalid argument supplied for foreach() in /home/content/s/u/m/summorum/html/fidelissolutions/cd18project/xataface/makesite on line 10



Warning:  fwrite(): supplied argument is not a valid stream resource in /home/content/s/u/m/summorum/html/fidelissolutions/cd18project/xataface/makesite on line 75
`

If I use the appropriate parameters for my install, i get the same error.

Any suggestions?


shannah — Tue Mar 30, 2010 6:55 pm

It looks as though your default php binary on the command line is not the CLI version, but the CGI version. You may need to explicitly call the cli version of php if you can find it.

e.g.
/usr/bin/php_cli makesite ….

Honestly, though, doing a manual install is so easy (2 lines of code) that it really isn’t worth using the makesite script.. I haven’t used makesite in quite a while.


mightyduk — Wed Mar 31, 2010 6:06 pm

Thanks for the information. I did go ahead and manually create the folders, as you said it’s easy.