# Lots of PHP error messages

**URL:** <https://community.open-emr.org/t/lots-of-php-error-messages/18012>\
**Category:** Support\
**Created:** [March 14, 2022, 10:32am UTC](https://community.open-emr.org/t/lots-of-php-error-messages/18012 "2022-03-14T10:32:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgev](https://community.open-emr.org/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@georgev](https://community.open-emr.org/u/georgev)\
**Post date:** [March 14, 2022, 10:32am UTC](https://community.open-emr.org/t/lots-of-php-error-messages/18012/1 "2022-03-14T10:32:03Z")

</div>

**Situation**  
I have just installed openEMR and I get this message when I log on

: Only variables should be passed by reference in **D:\xampp\htdocs\openemr\src\Menu\MainMenuRole.php** on line **68**

**OpenEMR Version**  
I’m using OpenEMR Version Number: v6.0.0 (4)

**Browser** :  
Firefox

**Operating System**  
I’m using: XAMP on WIN10

**Logs**  
Did you check the logs?  
Was there anything pertinent in them?  
Please paste them here (surround with three backticks (```) for readability.  
You can also turn on User Debugging under Administration-\>Globals-\>Logging User Debugging Options=\>All

---

<div class="post-metadata">

**Author:** ![robert.down](https://community.open-emr.org/user_avatar/community.open-emr.org/robert.down/32/15055_2.png) [@robert.down](https://community.open-emr.org/u/robert.down)\
**Post date:** [March 14, 2022, 4:41pm UTC](https://community.open-emr.org/t/lots-of-php-error-messages/18012/2 "2022-03-14T16:41:01Z")

</div>

Hi George,

Is this showing up in the user interface or only in the logs?

---

<div class="post-metadata">

**Author:** ![georgev](https://community.open-emr.org/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@georgev](https://community.open-emr.org/u/georgev)\
**Post date:** [March 16, 2022, 7:41am UTC](https://community.open-emr.org/t/lots-of-php-error-messages/18012/3 "2022-03-16T07:41:12Z")

</div>

Hi Rob,

Thank you for responding I’m a complete noob when it comes to OpenEMR I’m trying to customize it for use in our Natural health clinic

in answer to your question It shows up in the user interface

 ![OpenEMR PHP issue](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/8/7/873d9c282fdf0c15a368ae43dee1518ca50e3491.png)

See attached screen shot

GV

---

<div class="post-metadata">

**Author:** ![psoas](https://community.open-emr.org/letter_avatar_proxy/v4/letter/p/d6d6ee/32.png) [@psoas](https://community.open-emr.org/u/psoas)\
**Post date:** [March 24, 2022, 8:23pm UTC](https://community.open-emr.org/t/lots-of-php-error-messages/18012/4 "2022-03-24T20:23:24Z")

</div>

You need to change your PHP preferences in the php.ini file.

See:  
[https://www.open-emr.org/wiki/index.php/FAQ#What\_are\_the\_correct\_PHP\_settings\_.28can\_be\_found\_in\_the\_php.ini\_file.29.3F](https://www.open-emr.org/wiki/index.php/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29.3F)

You need to change error reporting to:  
error\_reporting = E\_ALL & ~E\_NOTICE & ~E\_STRICT & ~E\_DEPRECATED

The symbol “~” means “NOT”. So, the above line means Notices and deprecated messages will not be displayed.

---

<div class="post-metadata">

**Author:** ![georgev](https://community.open-emr.org/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@georgev](https://community.open-emr.org/u/georgev)\
**Post date:** [March 25, 2022, 2:21am UTC](https://community.open-emr.org/t/lots-of-php-error-messages/18012/5 "2022-03-25T02:21:07Z")

</div>

Hi Robert,

Thank you for responding, I managed to fig the error … was a config issue in my php.conf file.

regards

GV
