Posts: 2
Threads: 1
Joined: Dec 2009
Hi everyone,
Fist I would like to thank to all people involved in Getsimple, its the easyest CMS system you can get and its very fun to play with it.
Currently I'm trying to install the latest release 3.0 on my hosting at 1&1 and I get this Failure message:
Code:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/19/d216990089/htdocs/mas/admin/inc/basic.php on line 148
Server Details can be found here:
http://www.ma-service.es/test.php
I have no clue what could be the problem, I tried also with the 2.3 version but I get the same problem
Are there any restrictions?
Thanks you all for your help and support
Phil from Spain.
Posts: 1,848
Threads: 86
Joined: Aug 2009
This means that the server is running PHP4. Even though your host may be saying its using PHP5 - there might still be things that you need to configure inside .htaccess or your cpanel.
search this forum... this error has been discussed before
-
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!
Posts: 2
Threads: 1
Joined: Dec 2009
ccagle8 Wrote:This means that the server is running PHP4. Even though your host may be saying its using PHP5 - there might still be things that you need to configure inside .htaccess or your cpanel.
search this forum... this error has been discussed before
Thank so much for your fast reply, everything ist running fine now.
1&1 has now activated php5 and every thing is fine
wish you good luck with your GS Project, i love it!
Posts: 2,928
Threads: 195
Joined: Feb 2011
visdelou Wrote:ccagle8 Wrote:This means that the server is running PHP4. Even though your host may be saying its using PHP5 - there might still be things that you need to configure inside .htaccess or your cpanel.
search this forum... this error has been discussed before
Thank so much for your fast reply, everything ist running fine now.
1&1 has now activated php5 and every thing is fine
wish you good luck with your GS Project, i love it!
Visdelou,
it's good that it is ok for you now!
I have added this topic to the WIKI, as the situation is quite typic ...
see here:
http://get-simple.info/wiki/installation...webhosters
Posts: 1
Threads: 0
Joined: May 2011
2011-05-05, 03:22:30
(This post was last modified: 2013-03-15, 00:49:49 by TomG.)
Normally with 1 & 1 you can change the parsing of PHP4 to PHP5 by adding the following lines to your .htaccess:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Then it works automatically! I checked this this my above URL
Tom / tomsbikecorner.de
Posts: 524
Threads: 48
Joined: Mar 2011
2011-05-05, 03:25:05
(This post was last modified: 2011-05-05, 03:33:34 by infos.media.)
Thanks for sharing the info, Tom!
Edit: Added the tip to the
wiki.
Posts: 1
Threads: 0
Joined: May 2011
2011-05-09, 21:39:51
(This post was last modified: 2011-05-10, 17:15:47 by Tuliptani.)
TomG Wrote:Normally with 1 & 1 you can change the parsing of PHP4 to PHP5 by adding the following lines to your .htaccess:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Then it works automatically!
Tom
Thanks Tom. I emailed 1 & 1 who advised PHP5 was running on my server and I still got the same error message, so I did what you suggested and It's running fine now - probably saved me waiting around for 12 hours at a time for 1 & 1 to reply!! Thanks again
Posts: 6
Threads: 0
Joined: Jul 2011
Hi all -
i am on 1und1 as well. but cant get along with solving it myself
sorry to come up with the same question again. but i did the research and applied all settings and the install process run trough till sending me the password.
after the install process i receive the error message:
Code:
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /.../htdocs/landing_page_mki/admin/inc/common.php on line 19
thats my .htaccess file: (i also changed all .htaccess files in the whole sub-directory to include the php 5)
Code:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
AddDefaultCharset UTF-8
Options -Indexes
# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files sitemap.xml>
Order allow,deny
Allow from all
Satisfy All
</Files>
RewriteEngine on
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
Posts: 2,928
Threads: 195
Joined: Feb 2011
a good test is testing step by step
1) what is your actual PHP-version?
2) take off mod_rewrite
if it is working without mod_rewrite, you have to check this point:
3) is "landing_page_mki" a subdirectory of your server root? If not, you have to edit the ReWriteBase in .htaccess
Code:
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /
Posts: 6
Threads: 0
Joined: Jul 2011
Connie Wrote:a good test is testing step by step
1) what is your actual PHP-version?
2) take off mod_rewrite
if it is working without mod_rewrite, you have to check this point:
3) is "landing_page_mki" a subdirectory of your server root? If not, you have to edit the ReWriteBase in .htaccess
Code:
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /
thank you for your respond and your help to get me on board with getSimple CMS
php version: 5.2.17
see screenshot i have in my first post.
i got it running now.
I guess it is my mistake!
i changed the temp.htaccess file BEFORE the installation to .htaccess with adding the php 5 handler to enable php 5 in 1und1 account. the installation works fine.
after installation i never checked the .htacces file again - but now. It was empty. so i replaced it again- now it works and i am running on GetSimple CMS.
Posts: 2,928
Threads: 195
Joined: Feb 2011