how i fixed error loading config.ini no (windows with xampp)

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

how i fixed error loading config.ini no (windows with xampp)

Postby pcrudy » Sat Apr 18, 2009 10:41 am

c:\xampp\htdocs\xataface has the installation files
c:\xampp\htdocs\facultyofwidgetry contains index and config files

created db with phpmyadmin

index.php as follows:
note: i have taken out the required surrounding question marks and brackets required in php etc.

require_once 'c:/xampp/htdocs/xataface/dataface-public-api.php';
df_init(__FILE__, 'what goes here?');
$app =& Dataface_Application::getInstance();
$app->display();

in what goes here:

i have tried variations of c:\xampp\htdocs\xataface\dataface
tried http://localhost/xataface/dataface or
http://localhost/facultyofwidgetry
and just about every other path and url i can think of

config file

[_database]
host = "localhost"
user = "root"
password = "password"
name = "facultyofwidgetry"
[_tables]
Course = "course"
Program = "program"
Last edited by pcrudy on Sun Apr 19, 2009 10:56 am, edited 1 time in total.
pcrudy
 
Posts: 3
Joined: Sat Apr 18, 2009 10:19 am

Postby fongchun » Sat Apr 18, 2009 12:39 pm

You should be putting the directory of where Xataface is installed.

c:\xampp\htdocs\xataface

But since the xataface folder is in the htdocs, the server should be able to recognize this to:

http://xataface

So try either one, and it should work

Note that dataface has been changed to xataface.
fongchun
 
Posts: 30
Joined: Sun Aug 03, 2008 12:23 am
Location: Vancouver, BC

Postby pcrudy » Sat Apr 18, 2009 3:30 pm

thanks for the tip but neither one worked.

i know dataface is xataface but there is folder called dataface so i tried using that as well as every other combination of url and path to xataface etc.

when i check the installation it indicates it's installed at /xataface so i have used '/xataface'; c:\xampp\htdocs\xataface; http://localhost/xataface;http://xataface; but nothing seems to work

i don't know what the error message means; not finding the database? or not not loading the config.ini file (i.e. what is preventing the config.ini file from loading?)

thanks for trying
pcrudy
 
Posts: 3
Joined: Sat Apr 18, 2009 10:19 am

Postby fongchun » Sat Apr 18, 2009 4:47 pm

Hmm make sure the file is called conf.ini NOT config.ini and should be in the same directory as your Xataface application you are trying to get working.
fongchun
 
Posts: 30
Joined: Sun Aug 03, 2008 12:23 am
Location: Vancouver, BC

Postby pcrudy » Sun Apr 19, 2009 10:15 am

BINGO!! thanks. i guess my brain always saw conf.ini as config.ini and i never noticed the mistake.

i got by the error loading conf file but then i started getting these errors which I fixed. In trying to fix another error i used singled quotes in conf.ini file. I changed them to double quotes and that fixed the following errors.
Warning: mysql_connect() [function
.mysql-connect]: Unknown MySQL server host ''localhost'' (11001) in C:\xampp\htdocs\xataface\Dataface\Application.php on line 251
Error connecting to the database: Unknown MySQL server host ''localhost'' (11001)

then I started getting these errors, which I fixed by deleting any white space in the index.php file. I had put some white space before the first <? - removing it fixed the following errors.

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\FacultyOfWidgetry\index.php:3) in C:\xampp\htdocs\xataface\Dataface\Application.php on line 489

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\FacultyOfWidgetry\index.php:3) in C:\xampp\htdocs\xataface\Dataface\Application.php on line 691

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\FacultyOfWidgetry\index.php:3) in C:\xampp\htdocs\xataface\Dataface\Application.php on line 691

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\FacultyOfWidgetry\index.php:3) in C:\xampp\htdocs\xataface\Dataface\Application.php on line 692

I posted all these so anyone reading may be able to install and get this up and running.

thanks again. hope i can return the favor someday.
pcrudy
 
Posts: 3
Joined: Sat Apr 18, 2009 10:19 am

Postby fongchun » Sun Apr 19, 2009 6:23 pm

No worries. Glad you got it working.
fongchun
 
Posts: 30
Joined: Sun Aug 03, 2008 12:23 am
Location: Vancouver, BC


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 16 guests

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