System Settings - Fail Tests or Save Settings after upgrade 4.5.13

Hello!
Thanks for a great product!
I’m facing a little trouble after an upgrade from 4.5.12 to 4.5.13 all was working fine until i did the update. Now to the info.

    Invoice Ninja.
  1. Host Type:Self-Hosted White Label 4.5.12 (HostGator -SharedHosting)
  2. <li>Domain or Sub-domai: Sub-domain.(ninja.mydomain.com)</li>
    
    <li>Problem Type: After Upgrade</li>
    
    <li>Procedure: Backup MySQLDB using CPanel, Copy files over FTP. Got some errors no working page, change again via phpSelector the version of php in /public folder to 7.1, tried main url load correctly. Use ninja.mydomain/update, get notification about a successful update to 4.5.13. 
    

    Log in, checks all is working properly but System Settings. If i tried to use the Database Connection test or Email Settings i get a POST 406 error in console.

    Error Detail in Chrome Console
    POST https://crm.oroq.com/setup 406 - jquery.js:9664
    send @ jquery.js:9664
    ajax @ jquery.js:9215
    ot.<computed> @ jquery.js:9361
    testDatabase @ system_settings:1039
    onclick @ system_settings:998

    <li>If i tried to save the settings i get a text page  - https://ninja.mydomain.com/update_setup
    

    " Not Acceptable!
    An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security."

Errors Logs:
[03-Jul-2019 21:42:14 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0
[03-Jul-2019 21:42:16 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0
[03-Jul-2019 21:42:17 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0
[03-Jul-2019 21:42:19 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0
[03-Jul-2019 21:42:20 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0
[03-Jul-2019 21:42:24 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0
[03-Jul-2019 21:42:32 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0
[03-Jul-2019 21:42:36 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0
Multiple times in the log file like 3 or 4 times per minute.

Laravel Error Logs. - No recents errror.

Things i tried.

  1. Cleared Cache.
  2. <li>Uncommenting - RewriteBase / in .htaccess after i did the update</li>
    
    <li>Enabling Debug - No visible error.</li>
    <li>Using Chrome Mobile</li>
    

Greetings,

A fellow human.

Try disabling Mod Security

Oh sorry for the missing information.

I also did that adding

“<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>”

to my .htaccess in public,

Greetings

So to confirm: Error 5 goes after disabling Mod Security? (if it doesn’t it means Mod security is not being disabled by your .htaccess file

[03-Jul-2019 21:42:14 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0

This error refers to a package which isn’t relied on by Invoice Ninja so I would say this is a red herring.

No

So to confirm: Error 5 goes after disabling Mod Security? (if it doesn’t it means Mod security is not being disabled by your .htaccess file

This means is a security issue or risk?

03-Jul-2019 21:42:14 UTC] PHP Warning: Module ‘SourceGuardian’ already loaded in Unknown on line 0

This error refers to a package which isn’t relied on by Invoice Ninja so I would say this is a red herring.