Page 1 of 1

Posted:
Mon Dec 18, 2006 12:43 pm
by Scuracchio
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.

Posted:
Mon Dec 18, 2006 1:37 pm
by zopemgr
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

Posted:
Mon Dec 18, 2006 1:46 pm
by Scuracchio
Running from the command line, actually it appears that our php didn't come configured with CLI....err. Thanks for the tip.

Posted:
Mon Dec 18, 2006 2:01 pm
by Scuracchio
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

Posted:
Mon Dec 18, 2006 2:14 pm
by zopemgr
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