# Update 5.0.1 (7) Ubuntu to 6.0.0

**URL:** <https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769>\
**Category:** Management and Administration\
**Tags:** question\
**Created:** [June 19, 2021, 11:47pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769 "2021-06-19T23:47:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cornutaurus](https://community.open-emr.org/user_avatar/community.open-emr.org/cornutaurus/32/11917_2.png) [@cornutaurus](https://community.open-emr.org/u/cornutaurus)\
**Post date:** [June 19, 2021, 11:47pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/1 "2021-06-19T23:47:29Z")

</div>

I’m currently using OpenEMR 5.0.1 (7) Ubuntu version. While waiting for 5.0.2 Ubuntu but was never released.  
I want to know how do I upgrade my current version (5.0.1(7)) to 6.0.0 Linux since Ubuntu is no longer supported.

OS: Linux Mint 19.3

---

<div class="post-metadata">

**Author:** ![mdsupport](https://community.open-emr.org/user_avatar/community.open-emr.org/mdsupport/32/10763_2.png) [@mdsupport](https://community.open-emr.org/u/mdsupport)\
**Post date:** [June 20, 2021, 12:08am UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/2 "2021-06-20T00:08:27Z")

</div>

> [@cornutaurus](#):
>
> Ubuntu is no longer supported

v6 will run on Ubuntu.

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [June 20, 2021, 12:26pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/3 "2021-06-20T12:26:37Z")

</div>

hi @cornutaurus, for the [openemr ubuntu packages](https://sourceforge.net/projects/openemr/files/OpenEMR%20Ubuntu_debian%20Package/5.0.1/) which have been discontinued, you basically have to follow the installation and upgrade guides for linux. Would probably be safest and most straightforward to setup a new server.

---

<div class="post-metadata">

**Author:** ![cornutaurus](https://community.open-emr.org/user_avatar/community.open-emr.org/cornutaurus/32/11917_2.png) [@cornutaurus](https://community.open-emr.org/u/cornutaurus)\
**Post date:** [June 20, 2021, 11:44pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/4 "2021-06-20T23:44:44Z")

</div>

Hello I’ve tried to update to 5.0.2 and when logged in I wasn’t able to see the calendar.

Instructions are [https://www.open-emr.org/wiki/index.php/Linux\_Upgrade\_5.0.1\_to\_5.0.2](https://www.open-emr.org/wiki/index.php/Linux_Upgrade_5.0.1_to_5.0.2)

See below for apache error log.

[Sun Jun 20 18:35:36.469336 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Trying to access array offset on value of type bool in /var/www/openemr/library/translation.inc.php on line 44, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.469793 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Constant REPEAT\_EVERY\_DAY already defined in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 54, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.469808 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Constant REPEAT\_EVERY\_WEEK already defined in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 55, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.469815 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Constant REPEAT\_EVERY\_MONTH already defined in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 56, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.469821 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Constant REPEAT\_EVERY\_YEAR already defined in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 57, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.469827 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Constant REPEAT\_EVERY\_WORK\_DAY already defined in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 58, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.472627 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Trying to access array offset on value of type bool in /var/www/openemr/library/translation.inc.php on line 44, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.495411 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Undefined index: lastcaldate in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 194, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.495626 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Only variable references should be returned by reference in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 228, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.495934 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Undefined variable: faFlag in /var/www/openemr/interface/main/calendar/modules/PostCalendar/pnuserapi.php on line 1192, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.495942 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Undefined variable: collideFlag in /var/www/openemr/interface/main/calendar/modules/PostCalendar/pnuserapi.php on line 1195, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.495945 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Undefined variable: listappsFlag in /var/www/openemr/interface/main/calendar/modules/PostCalendar/pnuserapi.php on line 1198, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.495949 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Undefined variable: providerID in /var/www/openemr/interface/main/calendar/modules/PostCalendar/pnuserapi.php on line 1206, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.496168 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Undefined variable: pc\_facility in /var/www/openemr/interface/main/calendar/modules/PostCalendar/pnuserapi.php on line 899, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.514035 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Undefined index: topics in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 153, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.514067 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Trying to access array offset on value of type null in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 155, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.514075 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Trying to access array offset on value of type null in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 157, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.514289 2021] [php7:warn] [pid 2288] [client 127.0.0.1:33908] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1499, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.514303 2021] [php7:warn] [pid 2288] [client 127.0.0.1:33908] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1501, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.515086 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Only variable references should be returned by reference in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 146, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.515276 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Only variable references should be returned by reference in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 146, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

[Sun Jun 20 18:35:36.515416 2021] [php7:notice] [pid 2288] [client 127.0.0.1:33908] PHP Notice: Only variable references should be returned by reference in /var/www/openemr/interface/main/calendar/modules/PostCalendar/common.api.php on line 146, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [June 20, 2021, 11:53pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/5 "2021-06-20T23:53:57Z")

</div>

First you might want to turn off PHP notice reporting in php.ini directive error\_reporting. Add  
`& ~E_NOTICE` (You don’t have to it just makes for a smaller and cleaner log)

You prob need to go to main menu Administrator-\>Clinic-Calendar and clear smarty cache.

---

<div class="post-metadata">

**Author:** ![cornutaurus](https://community.open-emr.org/user_avatar/community.open-emr.org/cornutaurus/32/11917_2.png) [@cornutaurus](https://community.open-emr.org/u/cornutaurus)\
**Post date:** [June 21, 2021, 3:44am UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/6 "2021-06-21T03:44:46Z")

</div>

Hello I did what you told me regarding adding ~E\_NOTICE and it was much better.  
I tried clearing the cache but there was an error that it couldn’t be written.

See updated apache error.log below

[Sun Jun 20 22:41:33.539285 2021] [php7:warn] [pid 897] [client 127.0.0.1:44086] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1499, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)  
[Sun Jun 20 22:41:33.539320 2021] [php7:warn] [pid 897] [client 127.0.0.1:44086] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1501, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)  
[Sun Jun 20 22:41:33.548714 2021] [php7:warn] [pid 897] [client 127.0.0.1:44086] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1499, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)  
[Sun Jun 20 22:41:33.548742 2021] [php7:warn] [pid 897] [client 127.0.0.1:44086] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1501, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)  
[Sun Jun 20 22:41:33.552416 2021] [php7:warn] [pid 897] [client 127.0.0.1:44086] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1499, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)  
[Sun Jun 20 22:41:33.552459 2021] [php7:warn] [pid 897] [client 127.0.0.1:44086] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1501, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)  
[Sun Jun 20 22:41:33.555023 2021] [php7:warn] [pid 897] [client 127.0.0.1:44086] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1499, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)  
[Sun Jun 20 22:41:33.555041 2021] [php7:warn] [pid 897] [client 127.0.0.1:44086] PHP Warning: A non-numeric value encountered in /var/www/openemr/library/patient.inc on line 1501, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)  
[Sun Jun 20 22:41:33.615373 2021] [php7:error] [pid 897] [client 127.0.0.1:44086] PHP Fatal error: Smarty error: unable to write to $compile\_dir ‘/var/www/openemr/sites/default/documents/smarty/main’. Be sure $compile\_dir is writable by the web server user. in /var/www/openemr/vendor/smarty/smarty/libs/Smarty.class.php on line 1100, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

---

<div class="post-metadata">

**Author:** ![cornutaurus](https://community.open-emr.org/user_avatar/community.open-emr.org/cornutaurus/32/11917_2.png) [@cornutaurus](https://community.open-emr.org/u/cornutaurus)\
**Post date:** [June 22, 2021, 5:45pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/7 "2021-06-22T17:45:39Z")

</div>

I’ve tried with a fresh installation of Ubuntu 5.0.1 and upgrade to Linux 5.0.2 and it still giving me the same error of calendar.

[Tue Jun 22 12:44:12.888431 2021] [php7:error] [pid 10016] [client 127.0.0.1:49378] PHP Fatal error: Smarty error: unable to write to $compile\_dir ‘/var/www/openemr/sites/default/documents/smarty/main’. Be sure $compile\_dir is writable by the web server user. in /var/www/openemr/vendor/smarty/smarty/libs/Smarty.class.php on line 1100, referer: [http://localhost/openemr/interface/main/main\_info.php](http://localhost/openemr/interface/main/main_info.php)

Could it be the php version?

# PHP Version 7.2.24-0ubuntu0.18.04.7

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [June 23, 2021, 1:37am UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/8 "2021-06-23T01:37:28Z")

</div>

hi @cornutaurus, you have to migrate away from the ubuntu package, please see [this thread](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/40) for the general idea

---

<div class="post-metadata">

**Author:** ![cornutaurus](https://community.open-emr.org/user_avatar/community.open-emr.org/cornutaurus/32/11917_2.png) [@cornutaurus](https://community.open-emr.org/u/cornutaurus)\
**Post date:** [June 25, 2021, 6:06pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/9 "2021-06-25T18:06:41Z")

</div>

Hello @stephenwaite I got it to work with using

> sudo chown -R www-data:www-data /var/www/openemr

and

> sudo chmod 666 /var/www/openemr/sites/default/sqlconf.php

after upgrade to 5.0.2

I’m using the link you provide and this post by @ncavalier as the source [Upgrade Ubuntu to Linux](https://community.open-emr.org/t/xampp-version-for-emr-5-0-2-windows-10/13664/91)

However, I get this

![tables_error](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/e/e/eef0ddcf525280aec153048c61c3bc5deac4295d.png)

The error comes up when close a tab, go back to the original tab and click sort patient. I haven’t seen anything else that could cause the same issue.

Apache Error Log  
[Fri Jun 25 13:05:21.298108 2021] [php7:notice] [pid 10004] [client 127.0.0.1:43828] OpenEMR CSRF token authentication error, referer: [http://localhost/openemr/interface/main/finder/dynamic\_finder.php](http://localhost/openemr/interface/main/finder/dynamic_finder.php)
