Page 1 of 1

Issues building an app

PostPosted: Wed Dec 30, 2009 6:41 am
by lkritchey
I am creating my first Xataface App. Theoretically, it looks like it should be very simple - I have been following this tutorial: http://xataface.com/wiki/How_to_build_a ... es_of_code

Unfortunately, when I run the app index - I receive the following error:

Code: Select all
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/19/d218789578/htdocs/lenten-season/xataface/dataface-public-api.php on line 472


I haven't changed the dataface-public-api.php so I assumed that there shouldn't be any issues with this - but unfortunately, there is. Do you have any ideas of what may be causing this? The section of code for 472 (same as the code when it was downloaded) is as follows:

Code: Select all
function df_translate($id, $default=null, $params=array(), $lang=null){
   return Dataface_LanguageTool::translate($id,$default,$params, $lang);
}


Thank you for your help!

Re: Issues building an app

PostPosted: Wed Dec 30, 2009 10:45 am
by shannah
What version of PHP are you using? Xataface 1.2 requires PHP 5? If you are using PHP 4, you can still use Xataface 1.1.5, but recommend you upgrade your PHP to PHP 5.

Re: Issues building an app

PostPosted: Wed Dec 30, 2009 1:48 pm
by lkritchey
Apparently, my webhost defaults to PHP 4.4 - I changed it to PHP 5 - and after a few other modifications, it seems to work. Thanks!