# PHP7 clean up

**URL:** <https://community.open-emr.org/t/php7-clean-up/7964>\
**Category:** OpenEMR Development\
**Created:** [June 3, 2016, 11:00am UTC](https://community.open-emr.org/t/php7-clean-up/7964 "2016-06-03T11:00:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 3, 2016, 11:00am UTC](https://community.open-emr.org/t/php7-clean-up/7964/1 "2016-06-03T11:00:59Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Friday, June 03, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/79b03779/#1227):

Hi,

For any developers whom are working in php7 and want straightforward bug fixes to work on, here are a couple warnings/deprecated php7 issues that I noted when I was testing the forms:

[03-Jun-2016 03:44:22 America/Los\_Angeles] PHP Warning: Declaration of C\_FormVitals::default\_action($form\_id) should be compatible with Controller::default\_action() in /var/www/openemr/interface/forms/vitals/C\_FormVitals.class.php on line 8

[03-Jun-2016 03:46:21 America/Los\_Angeles] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; FormPainMap has a deprecated constructor in /var/www/openemr/interface/forms/painmap/FormPainMap.php on line 21

[03-Jun-2016 03:46:21 America/Los\_Angeles] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AbstractClickmapModel has a deprecated constructor in /var/www/openemr/interface/clickmap/AbstractClickmapModel.php on line 31

[03-Jun-2016 03:46:45 America/Los\_Angeles] PHP Warning: API violation: set function called with empty or non numeric string. in /var/www/openemr/interface/clickmap/AbstractClickmapModel.php on line 157

[03-Jun-2016 03:47:13 America/Los\_Angeles] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; FormPriorAuth has a deprecated constructor in /var/www/openemr/interface/forms/prior\_auth/FormPriorAuth.class.php on line 11

-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 11, 2016, 3:57pm UTC](https://community.open-emr.org/t/php7-clean-up/7964/2 "2016-08-11T15:57:44Z")

</div>

**[juggernautsei](https://sourceforge.net/u/juggernautsei/)** wrote on [Thursday, August 11, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/79b03779/#5c79):

I have just run into these issues and I am working trying to solve them. I’ll let you know if I get anywhere with  
[03-Jun-2016 03:44:22 America/Los\_Angeles] PHP Warning: Declaration of C\_FormVitals::default\_action($form\_id) should be compatible with Controller::default\_action() in /var/www/openemr/interface/forms/vitals/C\_FormVitals.class.php on line 8

BTW, the system is throwing a zend\_mm\_heap error and a bunch of restarts.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 11, 2016, 4:57pm UTC](https://community.open-emr.org/t/php7-clean-up/7964/3 "2016-08-11T16:57:53Z")

</div>

**[juggernautsei](https://sourceforge.net/u/juggernautsei/)** wrote on [Thursday, August 11, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/79b03779/#9739):

did not work yet just changed the method not fixed the problem even though the error has gone away.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 12, 2016, 8:48am UTC](https://community.open-emr.org/t/php7-clean-up/7964/4 "2016-09-12T08:48:55Z")

</div>

**[juggernautsei](https://sourceforge.net/u/juggernautsei/)** wrote on [Monday, September 12, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/79b03779/#3afb):

> <https://github.com/openemr/openemr/pull/240>

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [October 23, 2016, 8:04pm UTC](https://community.open-emr.org/t/php7-clean-up/7964/5 "2016-10-23T20:04:00Z")

</div>

**[juggernautsei](https://sourceforge.net/u/juggernautsei/)** wrote on [Sunday, October 23, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/79b03779/#0c40):

Need help with this one:  
On the fee sheet

[24-Oct-2016 02:42:00 UTC] PHP Stack trace:  
[24-Oct-2016 02:42:00 UTC] PHP Notice: Undefined index: newcodes in C:\emr\_wamp\www\openemr\interface\forms\fee\_sheet\new.php on line 1226

I can see line 885 is

Lines 1224 - 1226  
// If new billing code(s) were ed, add their line(s) here.  
//  
if ($\_POST[‘newcodes’]) {

But newcode can’t be selected because it is hidden and the value is empty. Am I reading that right?
