Welcome Guest, Not a member yet? Register   Sign In
Why sometimes CI4 crashes after a composer update?
#1

Sometimes while working with some app I have seen that there is debugging exception found. What really happens there in the vendor directory?
Reply
#2

I’ve never experienced this. Could you share the exact error message? That would be helpful in tracking down the underlying issue.
Reply
#3

(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
Reply
#4

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
        
if (is_file($path $view))
        {
            
$viewFile $path $view;
        }
        elseif (
is_file($altPath $altView))
        {
            
$viewFile $altPath $altView;
        } 

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB