Read about OpenEMR's Response to the COVID-19 Pandemic at

Undefined index basepath error

: Undefined index: basePath in
on line

getting the above error on new install of openemr on windows 10. I am new to openemr and happy for any help on resolving this error. It sits on top of the browser page.

was able to fix it by using the following settings;
What are the correct PHP settings (can be found in the php.ini file)?

We recommend the following PHP setting, which can be set in the php.ini file (If you do modify this file, remember to restart your web server (usually Apache) to apply the new settings):

    short_open_tag = Off 
    max_execution_time = 60 
    max_input_time = -1 
    max_input_vars = 3000 
    memory_limit = 512M 
    display_errors = Off 
    log_errors = On 
    post_max_size = 30M 
    file_uploads = On 
    upload_max_filesize = 30M 
    error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
1 Like

Hiding errors by setting “display_errors = Off” is not a correct answer. It’s a potential danger.
Using this code at where error occurs (“library\core\src\Header.php - :158”):
" $path = (isset($opts[‘basePath’])) ? $opts[‘basePath’] : ‘’;
$basePath = self::parsePlaceholders($path);