SugarDateTime error

Hello there!

I’ve been trying to install the latest release from GitHub (7.13.0) on a server, but I’m stuck at a few PHP errors and warnings during installation.

Deprecated : Return type of SugarDateTime::createFromFormat($format, $time, $timezone = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /include/SugarDateTime.php on line 111

Warning : Trying to access array offset on value of type null in /include/utils.php on line 1917

Warning : Trying to access array offset on value of type null in /include/utils.php on line 1871

From what I could tell by looking at the files, the return type annotated in the DateTime interface does not match the fact that the createFromFormat has no return type.

The server is running

  • PHP 8.1.7-1ubuntu3.1
  • mysql Ver 15.1 Distrib 10.6.11-MariaDB, for debian-linux-gnu (x86_64)
  • apache2
  • Ubuntu 22.10

Thanks for the help!

@iRealWorlds
Welcome to community!

SuiteCRM 7.13 support PHP 7.4 or 8.0. This is compatibility matrix.