Why sometimes CI4 crashes after a composer update? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: Why sometimes CI4 crashes after a composer update? (/showthread.php?tid=79129) |
Why sometimes CI4 crashes after a composer update? - sr13579 - 04-25-2021 Sometimes while working with some app I have seen that there is debugging exception found. What really happens there in the vendor directory? RE: Why sometimes CI4 crashes after a composer update? - MGatner - 04-30-2021 I’ve never experienced this. Could you share the exact error message? That would be helpful in tracking down the underlying issue. RE: Why sometimes CI4 crashes after a composer update? - sr13579 - 04-30-2021 (04-30-2021, 03:25 PM)MGatner Wrote: I’ve never experienced this. Could you share the exact error message? That would be helpful in tracking down the underlying issue.PHP Fatal error: Uncaught ErrorException: Undefined variable: view File in /home/ci/vendor/codeigniter4/framework/system/Debug/Exceptions.php:281 RE: Why sometimes CI4 crashes after a composer update? - MGatner - 05-02-2021 Looks like you are missing some of the error view files. However, we should have a better fallback in place for this. There is no “else” for if the files aren’t found : PHP Code: // Check if the view exists I think this would be an easy fix. Would you submit a bugfix on GutHub? In the meantime, look in your app/Views/errors folders and make sure you have all the same files that are in the repo/download. |