Just finished going through the OpenEMR Easy Docker Development Series on YouTube (https://youtube.com/playlist?list=PLFiWG_dDadgQT7zjqvEqbXm1OiuubOVO8)
I setup the dev dockers and cloned the skeleton project resulting in the same conditions the OP describes: blank screens, unable to login.
Here are my steps
- Stand up Ubuntu 22.x server on a Hyper-V vm
- Install OpenSSH, etc
- Install Git, Docker, Docker-compose, Nodejs, npm, and Openemr-cmd
- Forked the repo into my environment (Dec 6, 2022)
- Clone repo onto server
- Run openemr-cmd up in the openemr/docker/development-easy directory
- Ate some donuts
- Verified that the OpenEMR install is working and added 10 sample patients
- Clone skeleton repo into the custom_modules directory
- Updated the main composer.json file to add CustomModuleSkeleton namespace to the psr-4 section.
- Ran composer dump-autoload
- In OpenEMR, Register, Install, Enable skeleton
Per the OP’s follow up post, I tried to run composer require adunsulag/oe-module-custom-skeleton
command but get the following error:
composer require adunsulag/oe-module-custom-skeleton
Info from https://repo.packagist.org: #StandWithUkraine
In InitCommand.php line 904:
Package adunsulag/oe-module-custom-skeleton has requirements incompatible with your PHP version, PHP extensions and Composer version:
- adunsulag/oe-module-custom-skeleton 2.0.0 requires php ^7.1 which does not match your installed version 8.1.2.
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
The following entry is in my php log
[Thu Dec 08 19:37:29.011199 2022] [php:error] [pid 851] [client 192.168.5.133:62336] PHP Fatal error: Uncaught Error: OpenEMR\\Modules\\CustomModuleSkeleton\\GlobalConfig::__construct(): Argument #1 ($globalsArray) cannot be passed by reference in /var/www/localhost/htdocs/openemr/interface/modules/custom_modules/oe-module-custom-skeleton/src/Bootstrap.php:89\nStack trace:\n#0 /var/www/localhost/htdocs/openemr/interface/modules/custom_modules/oe-module-custom-skeleton/openemr.bootstrap.php(23): OpenEMR\\Modules\\CustomModuleSkeleton\\Bootstrap->__construct()\n#1 /var/www/localhost/htdocs/openemr/src/Core/ModulesApplication.php(110): include('...')\n#2 /var/www/localhost/htdocs/openemr/src/Core/ModulesApplication.php(98): OpenEMR\\Core\\ModulesApplication->loadCustomModule()\n#3 /var/www/localhost/htdocs/openemr/src/Core/ModulesApplication.php(72): OpenEMR\\Core\\ModulesApplication->bootstrapCustomModules()\n#4 /var/www/localhost/htdocs/openemr/interface/globals.php(620): OpenEMR\\Core\\ModulesApplication->__construct()\n#5 /var/www/localhost/htdocs/openemr/interface/modules/zend_modules/public/index.php(60): require_once('...')\n#6 {main}\n thrown in /var/www/localhost/htdocs/openemr/interface/modules/custom_modules/oe-module-custom-skeleton/src/Bootstrap.php on line 89, referer: http://gharke-priv-dev-docker:8300/interface/main/tabs/main.php?token_main=Xsy6KJ39AZC2hYOKYMLt3P5xqkKzNueTyQHTl2Js
Is this something that is happening in the Docker environment?
I don’t seem to have these problems in my standard LAMP installation. My LAMP is also running on a Hyper-V vm and is running OpenEMR 7.0.0(1)
Appreciate any ideas for me to troubleshoot this issue - I would prefer to work in the docker environment. Thanks.