简体   繁体   中英

404 NOT FOUND Symfony after clearing cache

Everything was working just fine and I was editing twigs but realized that changes doesn't reflect on my website.

So I tried /bin/console cache:clear --env=prod

After that I got an HTTP 500 and when I go to web/app_dev.php/ I get this:

ContextErrorException in ClassCollectionLoader.php line 241: Notice: tempnam(): file created in the system's temporary directory

Any idea why?

You trying to use app_dev.php file, from symfony 4 you don't have app.php and app_dev.php files.To turn on the dev or prod environment you should set it on.env file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM