PHP MAKESITE ERROR

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

Postby Scuracchio » Mon Dec 18, 2006 12:43 pm

php makesite

PHP Notice: Use of undefined constant STDOUT - assumed 'STDOUT' in /var/www/html/dataface/makesite on line 75
PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/dataface/makesite on line 75

Content-type: text/html
X-Powered-By: PHP/4.3.9

Any suggestions appreciated.
Scuracchio
 
Posts: 3
Joined: Wed Dec 31, 1969 5:00 pm

Postby zopemgr » Mon Dec 18, 2006 1:37 pm

Are you running the script from the command line or via the web browser?

If the makesite script won't work, I recommend doing a manual install.... it is almost as fast and it will give you a better feel for how the system works.

-Steve
zopemgr
 
Posts: 66
Joined: Wed Dec 31, 1969 5:00 pm

Postby Scuracchio » Mon Dec 18, 2006 1:46 pm

Running from the command line, actually it appears that our php didn't come configured with CLI....err. Thanks for the tip.
Scuracchio
 
Posts: 3
Joined: Wed Dec 31, 1969 5:00 pm

Postby Scuracchio » Mon Dec 18, 2006 2:01 pm

Yup manually worked. Now I'm getting

Notice: Undefined index: -relationship in /var/www/html/dataface/Dataface/Application.php(981) : eval()'d code on line 1

Notice: Undefined index: -relationship in /var/www/html/dataface/Dataface/Application.php(981) : eval()'d code on line 1

Notice: Use of undefined constant history__id - assumed 'history__id' in /var/www/html/dataface/Dataface/Application.php(981) : eval()'d code on line 1

Notice: Undefined variable: context in /var/www/html/dataface/Dataface/Application.php(981) : eval()'d code on line 1
Scuracchio
 
Posts: 3
Joined: Wed Dec 31, 1969 5:00 pm

Postby zopemgr » Mon Dec 18, 2006 2:14 pm

OK.. this is a bug that has been fixed in my devel version, and will be in the next release. To fix it go to line 981 of the Dataface/Application.php file. You'll find something like:
return eval('return '.$matches[1].$matches[2].';');

Change it to
return @eval('return '.$matches[1].$matches[2].';');
(i.e. all you have to do is prepend '@' to the call to eval).

Alternatively, you could just turn off error reporting of Notices by adding the following to the first line of your index.php file:
error_reporting(E_ALL^E_NOTICE);

-Steve
zopemgr
 
Posts: 66
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 38 guests

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