Page 1 of 1

makesite: Invalid argument supplied for foreach()

PostPosted: Tue Mar 30, 2010 6:42 pm
by mightyduk
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

<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/content/s/u/m/summorum/html/fidelissolutions/cd18project/xataface/makesite</b> on line <b>10</b><br />
<br />
<b>Warning</b>:  fwrite(): supplied argument is not a valid stream resource in <b>/home/content/s/u/m/summorum/html/fidelissolutions/cd18project/xataface/makesite</b> on line <b>75</b><br />



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

Any suggestions?

Re: makesite: Invalid argument supplied for foreach()

PostPosted: Tue Mar 30, 2010 6:55 pm
by shannah
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.

Re: makesite: Invalid argument supplied for foreach()

PostPosted: Wed Mar 31, 2010 6:06 pm
by mightyduk
Thanks for the information. I did go ahead and manually create the folders, as you said it's easy.