Update 5.0.1 (7) Ubuntu to 6.0.0

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

v6 will run on Ubuntu.

hi @cornutaurus, for the openemr ubuntu packages 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.

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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.

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
[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
[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
[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
[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
[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
[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
[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
[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

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

Could it be the php version?

PHP Version 7.2.24-0ubuntu0.18.04.7

hi @cornutaurus, you have to migrate away from the ubuntu package, please see this thread for the general idea

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

However, I get this

tables_error

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