[url][
Hi,
I have installed xataface on a windows vista SP2 desktop pc and installed xampp to run mysql 5.1.39-ndb-7.0.9-cluster-gpl, apache 2.2 and PHP 5.3. I have also tried this on my windows 7 server with both IIS and Xampp running apache and get the same result.
I have tried a couple of solutions to get to a newly installed application. 1st I used installer.php (see below for ATTEMPED SOLUTION 1 for error log) and then I tried to build an application by coding into PHP using the instructions from xataface (install instructions and error log in ATTEMPTED SOLUTION 2) .
Sorry, I am not a php expert, so I may be just being stupid. Can you tell me what I am doing wrong?
Regards,
Simon Barker
Simon.j.barker@gmail.com
Below is what I have done to set up xataface:
Installed Xampp which has a preconfigured MySQL server with all privileges given to user root with no password.
change php.ini file:
allow_url_include = off
log_errors = off
change to
allow_url_include = on
log_errors = on
restart apache server
download and open compressed file from xataface downloads with fix for php 5.3.0 depreciation warnings
http://sourceforge.net/projects/datafac ... p/download
rename the xataface-xx.xx.xx folder to dataface
create app folder ie c:\xampp\htdocs\test
move dataface folder (ie c:\xampp\htdocs\test\dataface)
Give c:\xampp and folders full control to everyone and add anonymous logon with full control
Ran http://localhost/test/dataface/dataface_info.php
And received:
Dataface 1.2.3b2 1700
Installed at /test/dataface
Installation status INSTALLED CORRECTLY
Templates Dir C:\xampp\htdocs\test\dataface/Dataface/templates
Templates Compile Dir C:\xampp\htdocs\test\dataface/Dataface/templates_c
ATTEMPED SOLUTION 1:
After loading the page which allows you to add a database, the Xataface application installer at:
http://localhost/test/dataface/installe ... ion=db2app
Gave the following result:
Warning: require_once(HTML/QuickForm.php) [function.require-once]: failed to open stream: No such file or directory inC:\xampp\htdocs\test\dataface\installer.php on line 246
Fatal error: require_once() [function.require]: Failed opening required 'HTML/QuickForm.php' (include_path='.:lib') inC:\xampp\htdocs\test\dataface\installer.php on line 246
I used windows search and found the following files:
C:\xampp\htdocs\test\dataface\lib\HTML\QuickForm.php
C:\xampp\htdocs\test\dataface\HTML\QuickForm.php
ATTEMPED SOLUTION 1:
create index.php file in c:\xampp\htdocs\test using php editor and add the following code:
<?php
echo dirname(__FILE__);
require_once '/dataface/dataface-public-api.php';
df_init(__FILE__, '/dataface/');
$app =& Dataface_Application::getInstance();
$app->display();
?> location and name of API
location of xataface directory
start instance of xataface
show xataface instance
create and save conf.ini in same location as index.
[_database]
host = "localhost"
user = "root"
password = ""
name = "contacts"
[_tables]
Contacts = "contact_name" location of MySQL server
username of MySQL server
password of MySQL server
name of dbs to include: add new line for extra
names of tables to include: add new line for extra
When run from http://localhost/test/, get the following errors:
C:\xampp\htdocs\test
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\test\index.php:3) inC:\xampp\htdocs\test\dataface\Dataface\Application.php on line 590
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\test\index.php:3) in C:\xampp\htdocs\test\dataface\Dataface\Application.php on line 795
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\test\index.php:3) in C:\xampp\htdocs\test\dataface\Dataface\Application.php on line 795
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\test\index.php:3) inC:\xampp\htdocs\test\dataface\Dataface\Application.php on line 796
Block "custom_stylesheets2"
Block "head"
Block "body_atts"
>
Block "before_body"
Block "before_header"
Block "after_header"
Block "before_search"
Search:
Block "after_search_form_submit"
Block "after_search"
Block "before_nav_menu"
Block "tables_menu_head"
• test
Block "tables_menu_tail"
Block "after_nav_menu"
Block "before_language_selector"
Block "after_language_selector"
Block "before_bread_crumbs"
You are here: test :: List
Block "after_bread_crumbs"
Block "before_main_table"
Block "before_left_column"
Block "before_record_tree"
Block "after_record_tree"
Block "before_application_menu"
Block "after_application_menu"
Block "after_left_column" Block "before_main_column"
Block "before_table_tabs"
Block "actions_menu_head"
• Details
• List
• Find
Block "actions_menu_tail"
Block "before_menus"
• New Record
• Show All
• Copy Set
• Delete Set
• Update Set
• Import Records
Block "after_menus"
Block "before_main_section"
Block "before_result_list"
Block "actions_menu_head"
• Export CSV
• Export XML
• RSS
Block "actions_menu_tail"
No records matched your request.
Block "after_result_list"
Block "after_main_section"
Block "before_fineprint"
Powered by Dataface
(c) 2005-2007 All rights reserved
Block "after_fineprint"
Block "before_global_footer"
Block "after_global_footer"
/url]