Im having a problem installing Version 7.12 I have changed permissions on everything needed, but when i go to install the program im getting this error:
Parse error : syntax error, unexpected ‘:’, expecting ‘{’ in /home/xxxxxxxx/public_html/xxxxxxx/include/utils.php on line 288
I have no idea why this has come up, can anyone help urgently so i can get this installed.
Can you replace the file with one from Repo?
<?php
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
* Copyright (C) 2011 - 2021 SalesAgility Ltd.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
This file has been truncated. show original
I have replaced the code with the one you suggested, yet the error still shows.
Its saying on the error expecting ‘{’ So is this missing somewhere on that line 288
pgr
8 August 2022 14:29
#5
I think your problem is that you have an old version of PHP.
Check the matrix:
Versions SuiteCRM 7.12.x Platform
Linux, Unix, Mac OS
Any version supporting PHP
Windows
Windows Server 2012+
PHP
7.3, 7.4, 8.0
Web Server
Apache
2.2, 2.4
IIS
8, 8.5, 10
Database
MariaDB
10.2, 10.3, 10.4, 10.5, 10.6
I have version 7.12 prior to version 8 which has the same error but points to the index page instead, i know cos i have tried version 8 as well
pgr
8 August 2022 14:48
#7
I am asking about PHP version, not SuiteCRM version.
I have PHP 7.4 running sorry my mistake
I have again confirmed its PHP version 7.4 If i cant get this error fixed then i will have to cancel the project. Is this a bug in the program thats causing this because I have no idea what i am supposed to do now.
pgr
1 September 2022 21:36
#10
There are two different php setups involved. How exactly did you check the version?
You can use
php -v
To check the CLI (command line)
And a small php file running phpinfo to check the web server php. Search online for details.
Do you have any custom code or its a fresh ootb install? What other errors do you see in php error_log ?