I am getting error on first use of OpenEMR

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

I’m using: Chrome

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


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



Open the XAMPP control panel -> Config -> open php.ini file -> find for error reporting (hit enter twice).
Place the code as
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