Closed (fixed)
Project:
Real Estate Manager
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Feb 2024 at 17:15 UTC
Updated:
18 Mar 2024 at 13:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sarwan_verma commentedHi @FlutterStack,
I have fixed this issue "PHP Fatal error: Traits cannot have constants in web/modules/contrib/re_mgr/src/Entity/EntityBaseDataTrait.php on line 13" and also attached patch,
please review and verify.
Comment #3
flutterstack commentedError: Undefined constant Drupal\re_mgr_visualization\Service\CoordinatesFieldService::ENTITY_LIST in Drupal\re_mgr_visualization\Service\CoordinatesFieldService->__construct() (line 67 of modules/contrib/re_mgr/modules/visualization/src/Service/CoordinatesFieldService.php).
patch causing some more errors.
Comment #4
mattixonix commentedHi @FlutterStack, thank you for reporting that issue. Problem happens on PHP lower than 8.2. My bad because i didn't tested lower PHP versions after adding trait to optimize code.
Thanks @sarwan_verma for your patch, however it's not working properly. By changing constants to static variables and changing their names You solved global PHP problem, but module will not work after that. With changing variables names you should also change each place where they were used in code. Despite that i'll grand you credit for good idea ;)
I've added new release to module here https://www.drupal.org/project/re_mgr/releases/1.0.6. It's fix this problem and also few smaller bugs.