Hi,
I am currently trying to Install SuiteCrm 7.14 and always run into the same problem and I am curious if someone else experiences the same.
After entering all necessery credentials I click next and right after creating the database i get the error of a dublicate declaration of the var $sfh in aow_utils.php on line 645. In this file the variable is declared twice. I tried to use the isset-function without success.
Any ideas how to fix this?
rsp
12 February 2024 20:58
2
Zoologist:
aow_utils.php
Do you have the below code?
if (isset($fieldlist[$fieldname]['type']) && $fieldlist[$fieldname]['type'] == 'currency' && $view != 'EditView') {
static $sfh;
if (!isset($sfh)) {
require_once('include/SugarFields/SugarFieldHandler.php');
$sfh = new SugarFieldHandler();
}
if ($currency_id != '' && !stripos((string) $fieldname, '_USD')) {
$userCurrencyId = $current_user->getPreference('currency');
if ($currency_id != $userCurrencyId) {
$currency = BeanFactory::newBean('Currencies');
$currency->retrieve($currency_id);
$value = $currency->convertToDollar($value);
$currency->retrieve($userCurrencyId);
$value = $currency->convertFromDollar($value);
}
}
$parentfieldlist[strtoupper($fieldname)] = $value;
return($sfh->displaySmarty($parentfieldlist, $fieldlist[$fieldname], 'ListView', $displayParams));
}
Hi, yes it is exactly this code. In this part the $sfh is declared the second time.
The problem seems to have solved itself by changing the php version to V8.2.
With V8.3 the problem occured.
pgr
13 February 2024 12:32
4
PHP 8.3 is not supported yet.
rsp
13 February 2024 16:06
5
You should always refer this page to check combability.
The following documentation is for SuiteCRM Version 8+; to see documentation on the same topic for Version 7, click here.
Versions SuiteCRM 8.5.x Platform
Linux, Unix, Mac OS
Any version supporting PHP
PHP
8.1, 8.2
Web Server
...
I relied too much on the check of the environment when installing and it set my php Version is sufficient.
pgr
15 February 2024 12:26
7
Are you still seeing that $sfh error?