I am getting error on first use of OpenEMR

Situation
It says: Only variables should be passed by reference in C:\xampp\htdocs\openemr\src\Menu\MainMenuRole.php on line 67

It is giving me this error after login and many errors like this: Notice : Constant REPEAT_EVERY_DAY already defined in C:\xampp\htdocs\openemr\interface\main\calendar\modules\PostCalendar\common.api.php on line 54

OpenEMR Version
I’m using OpenEMR version 5.0.2

Browser:
I’m using: Chrome

Operating System
I’m using: Windowa 10, 64bit

@Salvador,

Please check whether you have the following configuration in your php.ini file,

https://community.open-emr.org/t/i-need-help-getting-a-lot-of-errors-notice-undefined-index-state-in-c-xampp-htdocs-openemr-setup-php-on-line-14/3267

Thanks,
ViSolve

Open the XAMPP control panel -> Config -> open php.ini file -> find for error reporting (hit enter twice).
Place the code as
“error reporting =E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR”
This can clear your error.

SQL Statement failed on preparation: SELECT * FROM lang_definitions JOIN lang_constants ON lang_definitions.cons_id = lang_constants.cons_id WHERE lang_id=? AND constant_name = ? LIMIT 1’
SQL Statement failed on preparation: SELECT * FRO