Electronic Report page showing white screen

arnabnaha wrote on Friday, November 08, 2013:

Hi.
I am using current dev tip…4.1.3 in xampp 1.8.0 with windows 8.1

When ever i click on Procedures->Electronic reports, it shows nothing and displays a complete white page.
I was not able to replicate the problem in official demo…anybody can help??

fsgl wrote on Friday, November 08, 2013:

Be certain that you used the correct setup protocol.

arnabnaha wrote on Friday, November 08, 2013:

Come on…i am using openemr since 3 yrs now…have been into setups plenty of times…setup is perfect…

fsgl wrote on Friday, November 08, 2013:

Those who are infallible require no help.

arnabnaha wrote on Friday, November 08, 2013:

Thank You!!

tmccormi wrote on Friday, November 08, 2013:

white screen is directory/file permissions errors 99% of the time. Look at the apache web logs for a permission denied message.

–Tony

tmccormi wrote on Friday, November 08, 2013:

PS… I’ve installed OpenEMR thousands of times (literally) and I still occasionally forget a step…
–Tony

bradymiller wrote on Friday, November 08, 2013:

Check the php error log. Usually get an error reported when see white
screen of death.
-brady

yehster wrote on Friday, November 08, 2013:

I think it’s actually a PHP 5.5 problem.

[Fri Nov 08 14:07:08.715971 2013] [:error] [pid 1287] [client 192.168.255.1:49630] PHP Fatal error: Call-time pass-by-reference has been removed in /var/www/opendev/pc/interface/orders/receive_hl7_results.inc.php on line 320, referer: http://192.168.255.110/opendev/pc/interface/main/left_nav.php

yehster wrote on Friday, November 08, 2013:

Actually it looks like call time pass by reference went away in 5.4, which XAMPP 1.8 is based on.

Please do provide log info in the future, but this looks like a bug a not a config problem to me.

yehster wrote on Friday, November 08, 2013:

This fix for this is trivial,

But understanding proper uses of references in PHP is important.

The second parameters is declared in the function prototype to be “by reference” so the ampersand in the function call is not needed.

yehster wrote on Friday, November 08, 2013:

http://php.net/manual/en/language.references.pass.php

Note: There is no reference sign on a function call - only on function definitions. Function definitions alone are enough to correctly pass the argument by reference. As of PHP 5.3.0, you will get a warning saying that “call-time pass-by-reference” is deprecated when you use & in foo(&$a);. And as of PHP 5.4.0, call-time pass-by-reference was removed, so using it will raise a fatal error.

arnabnaha wrote on Saturday, November 09, 2013:

Thank you kevin…its is working fine now…thank you so much :slight_smile:

arnabnaha wrote on Saturday, November 09, 2013:

Thank u kevin
This fixed the problem. My apache error log suddenly started acting differently…was not showing any error due to the blank screen…it is repeatedly showing these…dont know what are these for…

[Sat Nov 09 02:08:29.903557 2013] [cgi:error] [pid 1976:tid 1784] [client 83.136.201.86:52819] script not found or unable to stat: C:/xampp/cgi-bin/php5
[Sat Nov 09 02:47:17.682557 2013] [access_compat:error] [pid 1976:tid 1784] [client 23.244.125.66:55080] AH01797: client denied by server configuration: C:/xampp/htdocs/xampp/, referer: http://nahahealthclinic.dyndns.org/xampp/

this is why i was not able to paste the apache error log values in my first post and not able to trace the error myself too…

Neways, your fixed worked briliantly and i dont know why sourceforge is suddenly showing post awaiting moderation…any problems??

yehster wrote on Sunday, November 10, 2013:

Dr. Naha,
You are welcome. Not sure what’s going on with “post moderation.”

I suspect that the call-time pass-by-reference error might be hiding somewhere in your error log among the “script not found or unable to stat: C:/xampp/cgi-bin/php5” errors.

That looks like an xampp configuration problem of some sort, but I’m not really sure what that’s about either.

Incidentally, it looks like PHP 5.3 was end-of-life’d back in July

http://www.phpdeveloper.org/news/19837

bradymiller wrote on Monday, November 11, 2013:

Hi Arnab,

Sorry about the moderation stuff. For some reason, it occasionally happens on sourceforge (once every couple months) and I was away from computer for several days traveling.

-brady
OpenEMR

bradymiller wrote on Sunday, November 17, 2013:

Hi,
Is this ready to go into the codebase on sourceforge? (and will then get it in next 4.1.2 patch)
-brady
OpenEMR

bradymiller wrote on Saturday, November 23, 2013:

Hi,

Seemed like a trivial bug fix so I brought this into the official codebase (was gonna put it into the 4.1.2 patch, but realized when I tried to cherry-pick the commit over to rel-412 branch that it’s not an issue in 4.1.2).

Thanks for reporting this bug Arnab and for providing the fix Kevin. Very cool to see the development branch getting testing.

-brady
OpenEMR