![]() |
CLI Error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: CLI Error (/showthread.php?tid=90885) |
CLI Error - ltarrant - 05-17-2024 Hi, I just installed a fresh copy of CI4 using the Composer App Starter package. I then attempted to install CI Shield via composer which works fine up to running the command Code: php spark shield:setup I then get the following error: Code: CodeIgniter v4.5.1 Command Line Tool - Server Time: 2024-05-17 17:15:38 UTC+01:00 I tried deleting the vendor folder and composer.lock file and installing again but the problem persists. Not had this issue before and I have installed the App Starter and Shield lots of time. Luke RE: CLI Error - ozornick - 05-17-2024 https://forum.codeigniter.com/showthread.php?tid=90846&highlight=Psrext RE: CLI Error - ltarrant - 05-20-2024 Hi, Thanks for the quick response. I got the server admin to remove the PSR extension which has solved that error. However, I am now getting a 500 Internal Server Error message. Code: Internal Server Error Nothing in server error log or CI log folder to help me track down the issue. Tried a fresh Composer App Starter install and same issue. I have instances of CI 4.4.8 running on the same server without any issues so I assume there is some other incompatibility with the server environment with 3.5.1 However, without any error messages its difficult to know where to start. RE: CLI Error - ozornick - 05-20-2024 If you don't see the error, how can we help you? Check other configuration methods from the documentation. There may be problems with chmod, mod_rewrite, env, ... Try to check other intl, rewrite extensions, composer dependecies.. RE: CLI Error - Bosborne - 05-21-2024 (05-20-2024, 07:17 AM)ltarrant Wrote: Hi, When you say you tried a fresh appstarter, did you modify it at all fore trying? The 500 Error usually indicates a problem in the php code. If you added or changed anything, the issue probably lies in that code. RE: CLI Error - ltarrant - 05-22-2024 It was a fresh untouched App Starter. Turns out this was some kind of server config issue. I deleted the domain and recreated in cPanel and everything worked fine. |