Error with manual setup

Archived from the Xataface Users forum.

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


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


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


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.


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


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.