Good afternoon,
When I try to access the /suitecrm/public folder for installation, I’m getting the attached error. I have already installed PHP and created the database. Does anyone know what could be the issue?
pgr
22 June 2023 18:51
#2
Sometimes these things happen simply because an extra character was accidentally inserted into a file in some text editor.
Go check that file, that line, and compare it to the original on Github:
<?php
use App\Kernel;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;
require __DIR__ . '/../config/bootstrap.php';
if ($_SERVER['APP_DEBUG']) {
umask(0000);
Debug::enable();
}
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
Request::setTrustedProxies(
explode(',', $trustedProxies),
Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST
);
}
This file has been truncated. show original
Also check that your PHP version is inside the matrix:
The following documentation is for SuiteCRM Version 8+; to see documentation on the same topic for Version 7, click here.
Versions SuiteCRM 8.3.x Platform
Linux, Unix, Mac OS
Any version supporting PHP
PHP
7.4, 8.0,
Additional...
An old PHP version would not recognize that ??
operator.