unexpected T_OBJECT_OPERATOR in dataface-public-api.php

Archived from the Xataface Users forum.

egretta — Fri Nov 13, 2009 1:23 am

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


tomhousley — Fri Nov 13, 2009 5:12 am

What version of PHP are you running?

Try version 5.


egretta — Fri Nov 13, 2009 5:36 am

You are right, on the server is php4. But I have no possibility to upgrade to php5. Isn’t there another possibility?


tomhousley — Fri Nov 13, 2009 6:23 am

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/


egretta — Fri Nov 13, 2009 8:32 am

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…


shannah — Mon Nov 16, 2009 4:31 pm

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.