That you can save your time, if someone else run into the same problem:
It was the start of cron.php which still used php 8.2
Or should I not write this, because it takes my time?
Critical error in FieldType.php
Collapse
X
-
This is just the frontend editor does not support the new syntax. It does not show errors in the output. I have to leave this topic as it takes my time.Leave a comment:
-
If i use <?php like in the file, then I get the error.
If I use <php I don't get the error.Leave a comment:
-
I'm 99.99% percent sure that your PHP version was not up to date when the log error occurred. The web server PHP version may differ from the CLI version.👍 1Leave a comment:
-
Critical error in FieldType.php
Hi after updating to 9.3.1 I inspected the espocrm log and found:
The code is:Code:CRITICAL: (0) Uncaught Exception ParseError: "syntax error, unexpected identifier "VARCHAR", expecting "="" at /var/www/clients/client1/web62/web/application/Espo/Core/ORM/Type/FieldType.php line 34 :: /var/www/clients/client1/web62/web/application/Espo/Core/ORM/Type/FieldType.php(34)
When I check this in an online php sandbox I get the same error. https://onlinephp.io/Code:class FieldType { public const string VARCHAR = 'varchar'; public const string BOOL = 'bool';
The word string is the reason. It should look like:
Is this correct ?Code:class FieldType { public const VARCHAR = 'varchar'; public const BOOL = 'bool';
Btw. it has nothing to do with 9.3.1
It's a PHP problem.
application/Espo/Core/ORM/Type/FieldType.phpTags: None

Leave a comment: