Situation
I am unable to access my practice settings. When I attempt to, I get the following error:
Unable to load controller PracticeSettings , please check the first argument supplied in the URL and try again
OpenEMR Version
I’m using OpenEMR version: v5.0.2 (5).
Browser:
I’m using: Google Chrome (MacOS) is up to date Version 88.0.4324.96 (Official Build) (x86_64)
[Sun Jan 31 02:23:43.191652 2021] [php7:warn] [pid 21815] [client xx.yy.zz.aaa:56354] PHP Warning: include_once(/var/www/localhost/htdocs/opener/controllers/C_PracticeSettings.class.php): failed to open stream: No such file or directory in /var/www/localhost/htdocs/openemr/library/classes/Controller.class.php on line 71, referer: https://xxxxxxxx.com/interface/main/tabs/main.php?token_main=cZxAZBRxMRRB3EM3u8ySOAGG2ZbQPMybn7G43kjA
[Sun Jan 31 02:23:43.191717 2021] [php7:warn] [pid 21815] [client xx.yy.zz.aaa:56354] PHP Warning: include_once(): Failed opening ‘/var/www/localhost/htdocs/openemr/controllers/C_PracticeSettings.class.php’ for inclusion (include_path=‘/var/www/localhost/htdocs/openemr/vendor/pear/archive_tar:/var/www/localhost/htdocs/openemr/vendor/pear/console_getopt:/var/www/localhost/htdocs/openemr/vendor/pear/pear-core-minimal/src:/var/www/localhost/htdocs/openemr/vendor/pear/pear_exception:.:/usr/share/php7’) in /var/www/localhost/htdocs/openemr/library/classes/Controller.class.php on line 71, referer: https://xxxxxxxxx.com/interface/main/tabs/main.php?token_main=cZxAZBRxMRRB3EM3u8ySOAGG2ZbQPMybn7G43kjA
The second file does not contain “Practice”. I wish I knew how the complete path was assembled so that I could understand why the overall path is not correct.
Hi Ralf,
I’ll take a quick look to at least see where the url gets mangled. The smarty controller errors can be a little difficult to track.
Come from web_root which is your root openemr directory however, it appears you have a path set somewhere that is including the the root directory ie opener/controller.php?practice_settings&.....
The first error causes the second so ignore second.
If you have ability to search soure code with your IDE then do a code search for say, ‘opener/’ or similar…