I use IN V5.4.12 in shared tenancy (softaculous). When i try to email an invoice i get an error 500 and after some research online it seems that the current version has a bug.
Since Softaculous hasn’t updated IN for a long time i decided to do a manual update. I changed the php from v7.4 to v8.1 and then i went to IN and run the update. Invoice Ninja V5.5.2 works on tablet and phone but when i try to access it from my PC using chrome browser i get an error 500.
Any ideas?
What I did was:
enabled app_debug from env file.
changed php from 7.4 to 8.1
From IN bottom left, I upgraded to the latest version and i am getting the following error:
return empty($foo[0]) ? 'Found php cli, but no version information' : $foo[0];
}
} catch (Exception $e) {
I can access IN from the iphone app but not able to access it from any web browser.
If I set php to 8 or lower i get the following error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.1.0”.
so, i tried again and i am still getting errors. The app is working only on iPhone -iPad app and not from web browser.
Log file error:
production.ERROR: Call to undefined function App\Utils\exec() {“userId”:1,“exception”:"[object] (Error(code: 0): Call to undefined function App\Utils\exec() at /home/xxxx/invoice.xxxxxxx/app/Utils/SystemHealth.php:155)
[stacktrace]
Web browser error:
/home/xxxxxx/invoice.xxxxxx/app/Utils/SystemHealth.php:188
183. }
184. 185. ` private static function checkPhpCli()` 186. ` {` 187. ` try {` 188. ` exec('php -v', $foo, $exitCode);` 189.
190. if ($exitCode === 0) {
191. return empty($foo[0]) ? 'Found php cli, but no version information' : $foo[0];
192. }
193. } catch (Exception $e) {
thank you, so i will leave it as it is for now and if with the next release i have any issues i will amend it.
Any idea how i can get rid of the debug mode? I have changed the env file but it still notifies me that i am in debug mode. Please note i am on shared hosting.