Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$'
#1
Hi there,

Trying to install GetSimple , I rename temp.htaccess to .htaccess ,navigate to the directory then get this:


GetSimple Version 2.03 - Latest version installed
PHP Version 5.2.14 - OK
Folder Permissions OK - Writable
cURL Module Installed - OK
GD Library Installed - OK
SimpleXML Module Installed - OK
Default Timezone Function Installed - OK
Apache Mod Rewrite Installed - OK


Enter site name etc and click ok, then brings up the error:


Code:
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /homepages/33/d337644085/htdocs/GetSimple/admin/inc/common.php on line 17


from the page :

http://mysite.co.uk/GetSimple/admin/welcome.php

an email is successfully sent saying site setup has worked.
Reply
#2
that is odd - i would think that this is because you don't have 5.2 installed - but according to your screenshot, you do. What OS is this server?
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#3
Server is running linux. Php 4 enabled by default, but I followed the hosts guide to enable 5 by editing the htaccess.
Reply
#4
Ok , think Ive solved it.

I edited the .htaccess file to read:

Code:
AddDefaultCharset UTF-8
RewriteEngine on

RewriteBase /GetSimple/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [QSA,L]

AddType x-mapp-php5 .php

SetEnv PHP_VER      


And now it works, thanks for the help.
Reply
#5
Add a handler to this type as well.
Code:
AddType x-mapp-php5 .php
[b]AddHandler application/x-httpd-php5 .php[/b]
Addons: blue business theme, Online Visitors, Notepad
Reply




Users browsing this thread: 1 Guest(s)