Parse error on line 18

Installing and configuring Tera-WURFL on your server.

Parse error on line 18

Postby oesmieu » Sat Apr 30, 2011 10:43 pm

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.
oesmieu
 
Posts: 9
Joined: Sat Apr 30, 2011 10:38 pm

Re: Parse error on line 18

Postby kamermans » Mon May 02, 2011 7:43 pm

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
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Parse error on line 18

Postby oesmieu » Tue May 03, 2011 7:27 pm

I have PHP4.x

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

Thank you.
oesmieu
 
Posts: 9
Joined: Sat Apr 30, 2011 10:38 pm

Re: Parse error on line 18

Postby kamermans » Tue May 03, 2011 7:29 pm

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.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Parse error on line 18

Postby oesmieu » Tue May 03, 2011 7:33 pm

Installed the latest version. Now the error is line 33. Any suggestions?

Thank you.
oesmieu
 
Posts: 9
Joined: Sat Apr 30, 2011 10:38 pm

Re: Parse error on line 18

Postby kamermans » Tue May 03, 2011 7:44 pm

Unfortunately I believe there is no way to get it working on PHP4 without rewriting the code.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Parse error on line 18

Postby oesmieu » Wed May 04, 2011 5:13 pm

PHP5 Did the trick. Thank you again.
oesmieu
 
Posts: 9
Joined: Sat Apr 30, 2011 10:38 pm

Re: Parse error on line 18

Postby kamermans » Wed May 04, 2011 6:38 pm

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!
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX


Return to Installation / Configuration

Who is online

Users browsing this forum: No registered users and 3 guests

cron