Page 1 of 1

unexpected T_OBJECT_OPERATOR in dataface-public-api.php

PostPosted: Fri Nov 13, 2009 1:23 am
by egretta
Hi,
i've just made a fresh install of xataface on a Linux webserver, but I get the following error message in my application directory:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /.../public_html/evaluation/admin/xataface/dataface-public-api.php on line 472

On my local (Windows) webserver everything works fine. The file dataface_info.php says, everything is installed correctly. I didn't touch any of the files in the xataface directory. Can anybody help me?
Thanks
Ralf

PostPosted: Fri Nov 13, 2009 5:12 am
by tomhousley
What version of PHP are you running?

Try version 5.

PostPosted: Fri Nov 13, 2009 5:36 am
by egretta
You are right, on the server is php4. But I have no possibility to upgrade to php5. Isn't there another possibility?

PostPosted: Fri Nov 13, 2009 6:23 am
by tomhousley
As far as I'm aware latest version is only compatible with PHP5. Perhaps until someone can suggest a workaround, try an older version of xataface from: http://sourceforge.net/projects/dataface/files/

PostPosted: Fri Nov 13, 2009 8:32 am
by egretta
Thanks for fast reply. I downgraded now to version 1.1.5
Probably it should work but as my server works in safe mode, I ran into other problems. Even if I create the tmp directory manually and include session_save_path() in my application directory, the created session files belong to another user group and everything stops...

PostPosted: Mon Nov 16, 2009 4:31 pm
by shannah
Sorry. Safe mode is a no go with Xataface. It mucks with the permissions when creating directories which affects xataface's ability to manage its template compilation.