Issues building an app

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

Issues building an app

Postby lkritchey » Wed Dec 30, 2009 6:41 am

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!
lkritchey
 
Posts: 2
Joined: Wed Dec 30, 2009 5:33 am

Re: Issues building an app

Postby shannah » Wed Dec 30, 2009 10:45 am

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Issues building an app

Postby lkritchey » Wed Dec 30, 2009 1:48 pm

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!
lkritchey
 
Posts: 2
Joined: Wed Dec 30, 2009 5:33 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 22 guests

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