makesite: Invalid argument supplied for foreach()

A place for users and developers of the Xataface to discuss and receive support.

makesite: Invalid argument supplied for foreach()

Postby 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

<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?
mightyduk
 
Posts: 2
Joined: Tue Mar 30, 2010 6:34 pm

Re: makesite: Invalid argument supplied for foreach()

Postby 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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: makesite: Invalid argument supplied for foreach()

Postby 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.
mightyduk
 
Posts: 2
Joined: Tue Mar 30, 2010 6:34 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 21 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved