Question: systems setting server error 500

systems setting server error 500

Hi Mian, have to come back to you with the same issue while updating the system settings. I already added an account and added all the email settings but when I save there is a server error

F

fischdan

Asked

Hi Mian,

have to come back to you with the same issue while updating the system settings. I already added an account and added all the email settings but when I save there is a server error 500 message and the safe button is not usable anymore after hitting once. I have to change the view by clicking another menue button and go back to try again.

  • F

    fischdan

    Answered

    find attached a screenshot after hitting the safe button

  • MS

    Mian Saleem

    Answered

    Hello,

    The settings are not being saved for some reason. Please check server error logs for details. The laravel log will be in the storage/logs/ and let me know the error details so that I can suggest.

    Thank you

  • F

    fischdan

    Answered

    Hi Mian,

    find attached the log file. the server error 500 is also popping up if I´m creating invoices but it seems as the invoice is saved…

  • MS

    Mian Saleem

    Answered

    Hello, There are Integrity constraint violation when adding payment, might be due to settings. Please let me know the site link and super account details.

  • F

    fischdan

    Answered

    Hi Mian,

    url: sbm.redbase.org user: test pass super123

    I have additional issue now. We added today a big portfolio of parts and started to track purchases and invoices. one hour before we realized that suddenly the stock amounts are crashed and showing a bunch of negative values… I didn´t figure out when exactly this happens and whats the cause… maybe you can have a look at this too…

  • MS

    Mian Saleem

    Answered

    I have checked. Looks like empty fields are causing the issue. If I use null or something else in Mail Encryption is saves the settings otherwise error. Please edit updateChangeable method of app/Helpers/Env.php file and change

    $change[] = $key . '=' . (str_contains($val, ' ') ? '"' . $val . '"' : $val);
    

    to

    $change[] = $key . '=' . ($val && str_contains(trim($val), ' ') ? '"' . $val . '"' : $val);
    

    This will fix the empty settings field issue. I will update the framework and packages to latest version next week.

    Thank you

  • F

    fischdan

    Answered

    Hi Mian,

    changed the env.php and seems to work right now. Thanks again.

    as mentioned before I still have a stock amount issue. Shall I open a new ticket for this?

  • MS

    Mian Saleem

    Answered

    Yes, please ask new question with details. If you can provide steps to replicate the issue. Thank you

  • Login to Reply