Trying to Upload laravel project getting File Not found Error

Website URL

(please specify the URL of the site on which you are experiencing the problem)

Error Message

Warning: include(/home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/composer/…/…/app/Http/Kernel.php): Failed to open stream: No such file or directory in /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/composer/ClassLoader.php on line 576

Warning: include(): Failed opening ‘/home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/composer/…/…/app/Http/Kernel.php’ for inclusion (include_path=‘.:/usr/share/pear/’) in /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/composer/ClassLoader.php on line 576

Fatal error: Uncaught ReflectionException: Class “App\Http\Kernel” does not exist in /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:912 Stack trace: #0 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct(‘App\Http\Kernel’) #1 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build(‘App\Http\Kernel’) #2 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(955): Illuminate\Container\Container->resolve(‘App\Http\Kernel’, Array, false) #3 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(296): Illuminate\Foundation\Application->resolve(‘App\Http\Kernel’, Array, false) #4 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\Container\Container->Illuminate\Container{closure}(Object(Illuminate\Foundation\Application), Array) #5 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build(Object(Closure)) #6 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(955): Illuminate\Container\Container->resolve(‘Illuminate\Cont…’, Array, true) #7 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve(‘Illuminate\Cont…’, Array) #8 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(940): Illuminate\Container\Container->make(‘Illuminate\Cont…’, Array) #9 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/public/index.php(49): Illuminate\Foundation\Application->make(‘Illuminate\Cont…’) #10 {main} Next Illuminate\Contracts\Container\BindingResolutionException: Target class [App\Http\Kernel] does not exist. in /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:914 Stack trace: #0 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build(‘App\Http\Kernel’) #1 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(955): Illuminate\Container\Container->resolve(‘App\Http\Kernel’, Array, false) #2 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(296): Illuminate\Foundation\Application->resolve(‘App\Http\Kernel’, Array, false) #3 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\Container\Container->Illuminate\Container{closure}(Object(Illuminate\Foundation\Application), Array) #4 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build(Object(Closure)) #5 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(955): Illuminate\Container\Container->resolve(‘Illuminate\Cont…’, Array, true) #6 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve(‘Illuminate\Cont…’, Array) #7 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(940): Illuminate\Container\Container->make(‘Illuminate\Cont…’, Array) #8 /home/vol4_4/infinityfree.com/if0_35609726/htdocs/public/index.php(49): Illuminate\Foundation\Application->make(‘Illuminate\Cont…’) #9 {main} thrown in /home/vol4_4/infinityfree.com/if0_35609726/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 914

Other Information

I uploaded all the files and also i check the files exist which the error says not found , please help this is my school project and i have been trying to solve but to no avail please help

Hi and welcome to the forum

Remove this and put the right path for included files that will lead to those files.

This ../ just means go one step above (folder above) and you have it twice
and it makes no sense

5 Likes

i am sorry but where should i make the changes, which file ?

I uploaded all the files as they are and made no change , i make changes only to .htaccess in the root directory and added

DirectoryIndex public/index.php index.html index.htm index2.html

The .htaccess which is inside public folder i made no changes

Can you tell us where this Kernel.php file is located at your place ?

I tried to roughly see what you have here http://gingermission.rf.gd/composer.json

image

I don’t know if psr-4 is to blame, so it can’t find the necessary files
that part does not belong to laravel, but to PHP, with which laravel knows which namespaces to load (autoloader)

4 Likes

The include path should be fine, I think that that’s how Laravel does it by default.

It seems to me like the file is simply missing from your account.

Actually, checking your account, the entire app folder is missing from your account. But the app folder is the folder that basically contains all your application code, so you’ll definitely need it for your site to work.

So please try uploading that folder again.

7 Likes

yes , somehow the app folder was upoaded to resource folder , my mistake when i uploaded it . thank you for pointing it out .

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.