Page 1 of 1

Parse error on line 18

PostPosted: Sat Apr 30, 2011 10:43 pm
by oesmieu
After copying the files into a directory on my server and attempting to reach the install.php page I get the following error:

Parse error: syntax error, unexpected ';', expecting '(' in /home/content/x/p/l/xplizit00/html/wurfl/admin/install.php on line 18

I open the page to see what was line 18 this is what I got:

$dir = $tw->rootdir.TeraWurflConfig::$DATADIR;

I am not sure why its producing the error.

Any assistance would be greatly appreciated.

Thank you.

Re: Parse error on line 18

PostPosted: Mon May 02, 2011 7:43 pm
by kamermans
Do you know what version of PHP you are using? Also, in the current version, the line you posted is line 33, you may want to download the latest version from github: https://github.com/kamermans/Tera-WURFL

Re: Parse error on line 18

PostPosted: Tue May 03, 2011 7:27 pm
by oesmieu
I have PHP4.x

I will try to download the latest version see if that makes a difference.

Thank you.

Re: Parse error on line 18

PostPosted: Tue May 03, 2011 7:29 pm
by kamermans
Ah, there are a lot of things that will prevent it from working in PHP 4.x. Currently, PHP 5.0 or newer is required.

Re: Parse error on line 18

PostPosted: Tue May 03, 2011 7:33 pm
by oesmieu
Installed the latest version. Now the error is line 33. Any suggestions?

Thank you.

Re: Parse error on line 18

PostPosted: Tue May 03, 2011 7:44 pm
by kamermans
Unfortunately I believe there is no way to get it working on PHP4 without rewriting the code.

Re: Parse error on line 18

PostPosted: Wed May 04, 2011 5:13 pm
by oesmieu
PHP5 Did the trick. Thank you again.

Re: Parse error on line 18

PostPosted: Wed May 04, 2011 6:38 pm
by kamermans
Ah, I'm glad you were able to get PHP upgrade and get Tera-WURFL up and running. Let me know if you have any questions!