(SOLVED) Password app getting disabled by cron but running php7.2-cli

Good Afternoon,
Thank you for the great product, been using nextcloud for a few years and I love the progress and development and the password app looks fantastic.

I am using a docker container for my apache and php. It is a Debian 9 container and it was built using Ansible. It is a home project to learn docker, ansible etc.

I get the following error when cron runs and it disables the password app:

TypeError: Return value of OCA\Passwords\AppInfo\Application::registerController() must be an instance of OCA\Passwords\AppInfo\void, none returned

I did research and found others with this issue and they weren’t running php 7.2.
I am running 7.2 and I made sure php7.2-cli is installed.

Nextcloud: 15.0.2

php -v:
PHP 7.2.14-1+0~20190113100742.14+stretch~1.gbpd83c69 (cli) (built: Jan 13 2019 10:07:43) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.2.14-1+0~20190113100742.14+stretch~1.gbpd83c69, Copyright © 1999-2018, by Zend Technologies

From the Server info page:


Version: 7.2.14

Memory Limit: 512 MB

Max Execution Time: 3600

Upload max size: 511 MB


Type: mysql

Version: 10.1.36

Size: 73.9 MB

Any Ideas?
Thank you.

Please disregard. I’m an idiot.

I had my old apache/php server still up and running and it was running the cron job with an old version of php. I shut the old girl down, configured cron on the new machine and all is well.

Have a great day.