PHP Inserting white space in ajax response for ACL listing

Situation
I already wrote it up on this site.

image

I believe this to be a server-side issue. The white space being inserted during the echo of the data back to the browser. How to find out what is causing the white space is my question.

OpenEMR Version
I’m using OpenEMR version 6

Browser:
I’m using: Chrome

Operating System
I’m using: Ubuntu 20.04

Logs
Did you check the logs? Yes
Was there anything pertinent in them? No
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

hi @juggernautsei, php7.3?

@stephenwaite it is 7.4.x. I did phpinfo() to make sure.

1 Like

looks ok in the demo, did you add anything in the acl?

Yes, the acl was edited in the interface and then this happened. No custom stuff done here.

ok, could there be some residue in the sql table?

I don’t know, what would I be looking for? blank space in a table column.

I found a solution that worked. Added ob_clean(); before the echo command. The blank line is gone and the page works normally again. Got the answer from the post below.

1 Like