Jump to content

Code Instead Of Expected Installation screen


Recommended Posts

Hello,

Uploaded unzipped Prestashop files to Dotable.com Linux server running PHP5. Corrected permissions. Received now infamous error message,

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/aprivate/public_html/prestashop/install/classes/LanguagesManager.php on line 7

I modifed the primary .htaccess file using,

AddType x-mapp-php5 .php

I can now enter installation's first screen; however, it appears as you see it in the URL below. There is code where buttons are expected, etc. I suspect that I have a continuing problem with PHP version; but I lack experience in this area. Hoping someone knows specifically what the problem is.

Thanks in advance for any info.

Screen Shot

Link to comment
Share on other sites

I have exactly the same problem i already have prestashop 1.1 installed and working correctly i decided to setup a demo version of 1.2 for testing purposes however it will not even get to the install screen, any ideas guys?

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'

Link to comment
Share on other sites

its ok i solved it there was no .htaccess file telling the server to use php5

try creating a .htaccess file put it in your prestashop directory here are the contents of my file this file also allows the working of base.

AddType x-mapp-php5 .php

RewriteEngine on

RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^(.*)/S=([^/]+)/(.*) $1/$3 [E=STATUS:$2]

ErrorDocument 404 /404.php


RewriteBase /

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...