Topic: config.default.inc error on startup

The recent change to config.default.inc fails when starting up FA where $_SESSION['language'] is not yet defined then in line 153. That line config.default.inc:

    $UTF8_fontfile    = $_SESSION['language']->dir == 'ltr' ? "FreeSans.ttf" : "zarnormal.ttf"; // for Arabic Dashboard

should be replaced in the config.php with:

    $UTF8_fontfile    = "FreeSans.ttf";
    //$UTF8_fontfile    = "zarnormal.ttf"; // for Arabic Dashboard

or suppress the error with "@" prefix to the original line or make sure it "isset" before testing it with some default.

Re: config.default.inc error on startup

i think you are talking about config.default.php  and when i check it, i didnt see the $UTF8_fontfile varilable is not used in the current program i guess.

Subscription service based on FA
HRM CRM POS batch Themes

Re: config.default.inc error on startup

Line 153 in config.default.inc:

    $UTF8_fontfile    = $_SESSION['language']->dir == 'ltr' ? "FreeSans.ttf" : "zarnormal.ttf"; // for Arabic Dashboard

should be replaced with:

    $UTF8_fontfile    = @$_SESSION['language']->dir == 'ltr' ? "FreeSans.ttf" : "zarnormal.ttf"; // for Arabic Dashboard

for now till a better solution presents itself.

Re: config.default.inc error on startup

Fixed and committed to stable repo.

/Joe