Hi, Am having issues whereby my etherfax pulls the faxes off the etherfax portal but then is unable to show them/load them. Have reached out to etherfax support but they say it is not an etherfax issue per se. Sent over the following pdf showing fax activity.
I just tested with your api key with success.
From the look of your screenshot the API Key field looks like not enough characters.
Reenter and save or try saving from module setup.
Note:
@Peter_Litchfield
By turning on User Debug in Config->Logging I trapped api response showing PHP error
Looks like running out of memory available to PHP:
Fatal error</b>: Allowed memory size of 536870912 bytes exhausted (tried to allocate 268435488 bytes)
I’ll need to check code to see if I’m batching because look like you have 165 fax events.
You may need to increase your memory_limit in php.ini
I’ve tested on dev demo Gamma(my up for grab) linux docker server using your etherfax account and is working well.
It appears from your error code you are running out of memory or we have a race condition. Max memory size for a PHP script can be set in php.ini file with memory_size=xxxMB I think default is 256 or 512MB. Look up online web search.
You may have an issue from patch install. Did you run sql_patch.php after patch install?
Read openemr patch wiki or upgrade guide for how to.
I may want to give you a new patch to test later.
If you need us to look at the files coming down from the etherFAX network to your instance, we can at least give you some idea of the file sizes and help trace the events.
Thanks Robert but I’m sure this is an issue specific to this site and how we handle a large log which is what gets rendered in UI. 165 entries may be what is the cause on render.
This is why works for me everywhere I’ve tested because the 165 faxes have already been downloaded and logged in Peters instance so I’m not seeing that heavy load in my tests using same account.
Right now I’m trying to ssh into his server with no luck.
I’ll get it but not a etherFax issue I’m pretty sure.
Looks like I’m going to have to find a way to render tiff. Most likely will put in a pdf.
I’m not sure what extra cost is charged to have etherFax covert to pdf by default.
For those watching this thread we have been communicating a lot of the debugging in private due to HIPAA and Peters privacy.
Currently in a nut shell Peters team and I have isolated problem to an issue with rendering UI log after 176 log entries. IMO not a memory issue even though it’s the only PHP error.
The environment we’re running in is setup correctly with more than enough memory so it’s on me and my design perhaps.
At any rate I’ll get to the bottom of issue and will return here to update those interest.
We where indeed running out of memory allocated to script. I found an unused string being populated with json encoded string that was additive to the string size inside the UI table iteration.
Needless to say it goes to show how finicky interrupted languages without strong typing can be and goes to show why testing with large datasets is important.
Thanks @Peter_Litchfield for bringing to our attention and being gracious in helping resolve the issue.
This can be marked resolved.