If I click the link under the 500 server error - it takes me to domain/client - which is not found error. If I modify the url to domain/ninjadirectory/public/client - it shows the client login screen.
I am thinking there are some serious url issues that might be stopping for the pages to load correctly.
I have looked at the .env file and it shows correct url info
I checked the error log and found this for when I tried to run domain/ninjadirectory
[Wed May 04 17:49:48.016606 2022] [autoindex:error] Cannot serve directory /home/xprivate/public_html/ninjadirectory/public/vendor/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive
Should also mention that I am using PHP8 - I know that PHP8 did not work for V4 - I had to temporarily bump down to PHP7.4 on my other account to keep v4 working. But hosting will require php8 so I need this to work
[Wed May 04 17:49:48.016606 2022] [autoindex:error] Cannot serve directory /home/xprivate/public_html/ninjadirectory/public/vendor/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive
It looks like your full path is to the vendor folder?
Hosting company is messing with PHP settings and extensions to see why Invoice Ninja is not operating correctly. After messing with settings and extensions - PHP 7.4 will run invoice ninja correctly. But they are still trying to figure out PHP 8.0.
Is there a list of required PHP settings and extensions for PHP 8.0 needed to run Invoice Ninja v5?
The issue turned out to be exec() setting. For security reasons on some shared hosting accounts they don’t like this bein enabled.
The hosting company shared this with me, and I hope it helps Invoice Ninja to possibly work on this so that it is not an issue with some servers who are wanting to keep tight security.
---- hosting felt this
Note that the exec() function is also disabled in PHP 7.4 and PHP 7.3 on our servers. And Invoice Ninja was working in these environments.
The issue comes from PHP 8.0 changing the way exceptions are thrown for these disabled functions. Prior to PHP 8.0, PHP would throw an exception if a call to a disabled function was made. Invoice Ninja is programmed correctly to catch these exceptions and proceed on.
But with PHP 8.0, these disabled functions aren’t throwing an exception - they are just causing a fatal error - which stops all processing of the script. That’s what was creating the Internal Server errors.
I’m having this issue on PHP 8 / WinServer 2022. Anyone got a solution?
I don’t see exec() being disabled anywhere in php.ini, and any of the manuals to enable exec() don’t work for PHP 8.