# Patch #6 Billing problem

**URL:** <https://community.open-emr.org/t/patch-6-billing-problem/1904>\
**Category:** Management and Administration\
**Created:** [June 10, 2014, 12:55am UTC](https://community.open-emr.org/t/patch-6-billing-problem/1904 "2014-06-10T00:55:27Z")\
**Posts on this page:** 4\
**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 10, 2014, 12:55am UTC](https://community.open-emr.org/t/patch-6-billing-problem/1904/1 "2014-06-10T00:55:27Z")

</div>

**[nursejeff](https://sourceforge.net/u/nursejeff/)** wrote on [Tuesday, June 10, 2014](https://sourceforge.net/p/openemr/discussion/202505/thread/c2bceca6/#b508):

Updated to patch 6 today.

My Biller tried to make a claim and got a white screen.

Error log is as follows:

[Mon Jun 09 19:55:57 2014] [error] [client 192.168.1.149] PHP Warning: fopen(/var/www/html/openemr/library/freeb/process\_bills.log): failed to open stream: Permission denied in /var/www/html/openemr/interface/billing/billing\_process.php on line 122, referer: [http://192.168.1.105/openemr/interface/billing/billing\_report.php](http://192.168.1.105/openemr/interface/billing/billing_report.php)  
[Mon Jun 09 19:55:57 2014] [error] [client 192.168.1.149] PHP Fatal error: Call to undefined method Claim::claimTypeRaw() in /var/www/html/openemr/library/gen\_hcfa\_1500.inc.php on line 103, referer: [http://192.168.1.105/openemr/interface/billing/billing\_report.php](http://192.168.1.105/openemr/interface/billing/billing_report.php)

Please help.  
Thanks as always.

Jeff Guillory  
NP Health Clinic  
Lumberton, TX

---

<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 10, 2014, 2:56am UTC](https://community.open-emr.org/t/patch-6-billing-problem/1904/2 "2014-06-10T02:56:02Z")

</div>

**[cmswest](https://sourceforge.net/u/cmswest/)** wrote on [Tuesday, June 10, 2014](https://sourceforge.net/p/openemr/discussion/202505/thread/c2bceca6/#0a1a):

nice use of the error log, like the fatal error states, Claim::claimTypeRaw() doesn’t exist in Claim.class.php, you can put the below in line 835 of library/Claim.class.php

function claimTypeRaw($ins=0) {  
if (empty($this-\>payers[$ins][‘object’])) return 0;  
return $this-\>payers[$ins][‘object’]-\>get\_freeb\_type();  
}

looks like the most recent update of that file wasn’t included in the downloaded patch

[https://github.com/openemr/openemr/blob/master/library/Claim.class.php#L835](https://github.com/openemr/openemr/blob/master/library/Claim.class.php#L835)

ps might want to check your permissions on the freeb directory where the billing log is kept

---

<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 10, 2014, 4:33am UTC](https://community.open-emr.org/t/patch-6-billing-problem/1904/3 "2014-06-10T04:33:29Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Tuesday, June 10, 2014](https://sourceforge.net/p/openemr/discussion/202505/thread/c2bceca6/#f063):

Hi,

Agreed on above edited out “shame” comment. Sorry I missed that file and didn’t catch it on testing. Just uploaded a new patch 6 file that includes this file.

-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:** [June 10, 2014, 4:34am UTC](https://community.open-emr.org/t/patch-6-billing-problem/1904/4 "2014-06-10T04:34:31Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Tuesday, June 10, 2014](https://sourceforge.net/p/openemr/discussion/202505/thread/c2bceca6/#fa55):

Jeff,  
Thanks for the quick error report.  
-brady
