digilee Posted January 14, 2008 Share Posted January 14, 2008 Signed up, download, upload all files. I go to http://domain.com/prestashop and get this error: Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/username/prestashop/classes/Tools.php on line 23 Then I notice the install folder so I go to: I go to http://domain.com/prestashop/install and get this error: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/username/prestashop/install/classes/LanguagesManager.php on line 7 Not a good start guys. Any ideas what to do to get this working? thanks. Link to comment Share on other sites More sharing options...
Peter Wilson Posted January 14, 2008 Share Posted January 14, 2008 Hi digilee. Welcome to the PrestaShop Forum! This is a commonly reported error. It is likely due to your server not using PHP 5 or later. As noted on the Download page, System Requirements page, and on the Installer splashpage, PrestaShop only works with PHP version 5 or later. You'll have to get your hosting service to upgrade to PHP 5, or use a different hosting service. (Hosting services should really upgrade anyway, as PHP 4 is officially 'end of life', and PHP 6 is on the way.) After installing PrestaShop using PHP 5, feel free to pop back in and let us know if this error persists. Link to comment Share on other sites More sharing options...
digilee Posted January 15, 2008 Author Share Posted January 15, 2008 100% right. I thought I had PHP 5 installed as I requested this a while back but it seems to have been removed for some reason. Link to comment Share on other sites More sharing options...
THEDert Posted March 4, 2008 Share Posted March 4, 2008 I have PHP5 on my godaddy account and I get the store/classes/Tools.php on line 23 error when I try to install Link to comment Share on other sites More sharing options...
Peter Wilson Posted March 4, 2008 Share Posted March 4, 2008 Hi THEDert, Welcome to the PrestaShop Forum! With some hosting services, PHP5 is present but needs to be activated manually by uploading an .htaccess file. This may well be the case for GoDaddy servers, but we haven't been able to confirm the correct solution yet. Perhaps you could help us? First, check this list of hosting servers and try the different methods for activating PHP5 manually via an .htaccess file: http://www.prestashop.com/forum/index.php/topic,714.0.html If one of them works, can you tell us which one did the trick? If none of them work, can you tell us which version of PHP 5 you're using? For example, PHP 5.0.5 or PHP 5.2.4 ? Thanks in advance! Link to comment Share on other sites More sharing options...
THEDert Posted March 4, 2008 Share Posted March 4, 2008 That post makes no sense to me what so ever =( Link to comment Share on other sites More sharing options...
Bruno Leveque Posted March 5, 2008 Share Posted March 5, 2008 Hi THEDert, This is the complete trick to activate PHP 5 on GoDaddy Hosting: Options +FollowSymLinks RewriteEngine On RewriteBase / # switch GoDaddy's php extension handling for php5 AddHandler x-httpd-php5 .php AddHandler x-httpd-php .php4 You need to put this code in the root dir .htaccess file for global changes. (Thanks to http://www.dpinyc.com/literature/resources/code-bank/activating-php5-in-godaddy-hosting/) Best regards, Link to comment Share on other sites More sharing options...
THEDert Posted March 5, 2008 Share Posted March 5, 2008 How to fix PHP5 if you use Godaddy.com To Change Your Default PHP Language 1. Log in to your Account Manager. 2. In the My Products section, select Hosting Account List. 3. Next to the hosting account you want to modify, click Open. 4. In the Content section of the Hosting Control Center, click the Languages icon. 5. Select PHP version you'd like to set as the default. 6. Click Continue. 7. Verify the listed changes, and then click Update. Your Language change is submitted. Please allow up to 24 hours for the change to be processed by the hosting server. Link to comment Share on other sites More sharing options...
Peter Wilson Posted March 6, 2008 Share Posted March 6, 2008 Terrific! Thanks a lot, THEDert I've added it to the list in the Pre-Installation sticky: http://www.prestashop.com/forum/index.php/topic,714.0.html Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now