Back

Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()


patriciomase posted 4 years ago

PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath() in /var/www/html/doaddme/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php on line 28

I'm seeing that everytime I run composer install or update, I'm not sure when it started. My laravel installation is basically empty

ghunti replied 4 years ago Solution

Hi patriciomase.

Had the same issue. Delete the vendor/compiled.php and run composer update again. Source: https://laracasts.com/discuss/channels/general-discussion/runtimeexception-on-fresh-install?page=1

patriciomase replied 4 years ago

great! it worked. Thank you ghunti!

miagg replied 4 years ago

In some cases you have to also delete the storage/framework/compiled.php to make it work.

It happened to me on a Laravel Forge deployment.

stevebauman replied 4 years ago

@miagg Awesome thanks miagg! Worked perfect

kayyyy replied 3 years ago

miagg said:

In some cases you have to also delete the storage/framework/compiled.php to make it work.

It happened to me on a Laravel Forge deployment.

This worked for me in Laravel5 thank you !

basementjack replied 3 years ago

This helped me as well - Laravel 5 to 5 update had failed. this fixed it (deleting /vendor/compiled.php)

plmarcelo replied 3 years ago

Thanks guys, @ghunti solution worked for me as well.

eickhardt replied 3 years ago

Thanks a lot, @ghunti's solution worked for me too!

beyazkurt replied 3 years ago

Why will delete this vendor/compiled.php file? What is reason of this process?

RyanAtVivio replied 3 years ago

miagg said:

delete storage/framework/compiled.php to make it work.

That's what I needed, thanks!

andregeges replied 3 years ago

hi, i still got this error today, i tried anything but i still had this problem

i search i didn't have any file: storage/framework/compiled.php vendor/compiled.php even bootstrap/compiled.php

and i search file compiled.php in my project and found nothing

claudiomedina replied 3 years ago

ghunti said:

Hi patriciomase.

Had the same issue. Delete the vendor/compiled.php and run composer update again. Source: https://laracasts.com/discuss/channels/general-discussion/runtimeexception-on-fresh-install?page=1

This worked for me.

amarnasan replied 3 years ago

This worked charms for me (laravel 5.0.13)

daoth replied 2 years ago

why laravel don't have a good document

any time i learn laravel it still have bug

if i can't fix this issue today, i never use laravel again

Harrrrry replied 2 years ago

hello,

i have an issue in this line.

$app = new Illuminate\Foundation\Application(
	realpath(__DIR__.'/../')
);

It showing a blank page.

Please help me.


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us