Help: Calendar not display in frame. Using PHP 5.5.9

elandau1260 wrote on Wednesday, October 15, 2014:

Hello: I just installed openEMR on another machine… this one running Ubuntu, with php 5.5.9 and the top frame which should be displaying the calendar is not displaying anything (just blank).

/var/log/apache2/error.log shows errors about deprecated functions… do I have to depricate my php version?

I saw a post dated a few months ago that someone “removed the warnings”… but I do not see anything else. Does anyone know a work-around? I’ve been trying to depricate my php back to 5.3.10 but am having a heck of a time… now my machine is in a weird state :).

'WOuld love advice.

Thanks
_Ed

mdsupport wrote on Wednesday, October 15, 2014:

With Ubuntu 14.04 LAMP stack it would be hard to roll back PHP. You could turn PHP warnings on so you can at least see the deprecated statements that are killing the top frame. Most of the fixes are as simple as replacing a function.

elandau1260 wrote on Wednesday, October 15, 2014:

Yes… tried this but the changes are not a simple function replacement and there seems to be more than one file using these deprecated statements.

I’m not up to hacking the code base … hoping someone has already solved this?

-Ed

elandau1260 wrote on Wednesday, October 15, 2014:

Does anyone know if php 5.4 works with OpenEMR?

yehster wrote on Wednesday, October 15, 2014:

Deprecated functions are not a problem. That is a warning that existing functions need to be changed for compatibility with future versions of PHP.

PHP 5.5.9 works with OpenEMR fine.

Most likely your directory permissions are wrong. That is almost always the problem when a blank screen occurs, as the smarty templates which the calendar uses cannot be recompiled and saved.

fsgl wrote on Wednesday, October 15, 2014:

See this.

elandau1260 wrote on Wednesday, October 15, 2014:

Thanks. Ok… first need to restore my Ubuntu machine …

elandau1260 wrote on Wednesday, October 22, 2014:

Thanks for your help fsgl. chmod on PostCalendar/pntemplates did the trick. "not sure why these files were set to the wrong permissions in the first place!

And Kevin: OpenEMR “sort of” supports PHP5.5… after you replace the “<?” with “<?php”… as per another post I just saw.

I really want to express my appreciation for the folks who read this forum and answer questions. THANK YOU! I hope that I will soon know enough to be able to answer others.

-Ed

yehster wrote on Wednesday, October 22, 2014:

The need to replace <? with <?php can be avoided by changing the short_open_tag php.ini setting to on.

That is a requirement regardless of PHP version which is used and is mentioned during setup.

elandau1260 wrote on Wednesday, October 22, 2014:

Nice ! Thanks !!! :slight_smile: