Error with manual setup

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

Error with manual setup

Postby butchseaman » Sat Jan 23, 2010 5:45 pm

I had to do a manual setup since my account does not allow me command line access. here is my index.php

INDEX.php
<?
require_once "/home/butchseaman/public_html/xataface/dataface-public-api.php";
df_init(__FILE__, "/Faculty");
$app =& Dataface_Application::getInstance();
$app->display();
?>


CONF.INI
[_database]
host = "localhost"
user = "butchseaman_name"
password = "password_used"
name = "butchseaman_Faculty"

[_tables]
Course = "Course"
Program = "Program"

getting this error on my host provider

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/butchsea/public_html/xataface/dataface-public-api.php on line 472

any ideas ...?


Thanks
Butch
butchseaman
 
Posts: 21
Joined: Sat Jan 23, 2010 8:51 am

Re: Error with manual setup

Postby Jean » Mon Jan 25, 2010 3:50 am

Hi Butch,
Insert complete URL to your xataface directory
Code: Select all
df_init(__FILE__,"url/to/xataface/directory");


Jean
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France

Re: Error with manual setup

Postby butchseaman » Mon Jan 25, 2010 10:20 am

did not seem to to work.... here is my test

http://www.butchseaman.com/xataface/dataface_info.php
butchseaman
 
Posts: 21
Joined: Sat Jan 23, 2010 8:51 am

Re: Error with manual setup

Postby shannah » Mon Jan 25, 2010 10:40 am

Unfortunately Xataface 1.2.x requires PHP 5 now.... some work needs to be done to have it notify you when you install it... but in any case, it looks like you're running php 4.

Xataface 1.1.5 will still work on PHP 4, but I recommend you upgrade to php 5.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Error with manual setup

Postby butchseaman » Mon Jan 25, 2010 1:55 pm

Ok... got it working... but still having an issue with the appearance of the page

please see attachment
file-1.jpg
file-1.jpg (40.38 KiB) Viewed 1882 times
butchseaman
 
Posts: 21
Joined: Sat Jan 23, 2010 8:51 am

Re: Error with manual setup

Postby shannah » Mon Jan 25, 2010 2:07 pm

Please post your index.php file contents... the problem is most certainly the 2nd parameter of your df_init() method.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 23 guests

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