-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
file not found ApcClassLoader.php in bootstrap.php.cache in hosting server #20655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks strange that your path contains backslashes while your filesystem seems to be UNIX-based. Did you warm up the cache on a Windows system? |
I'm using windows in my local system and its working fine there. But in hosting server (LINUX) it shows error. And yes, I did warmup the cache. |
Where did you warm up the cache? On your local system or on the server? |
In my local system actually,. i have no option to warm up cache in my shared hosting.. |
Does it work if you just remove the cache and let Symfony spin it up on the first request? |
you mean the cache folder inside var? ,... Even if i remove cache folder it does not work,... |
@nicolas-grekas It looks like we are using |
@adityarai can you please try #20676? |
Yes, Its working fine now,... thank you,.. |
…map (nicolas-grekas) This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #20676). Discussion ---------- [ClassLoader] Use only forward slashes in generated class map | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20655 | License | MIT | Doc PR | - Commits ------- 6d1f1b5 [ClassLoader] Use only forward slashes in generated class map
J'ai le même probleme, je travail sous Windows et génère tou mon projet pour produire un livrable, mais le livrable est prévu pour tourner sous linux et j'ai un problèeme depuis la version 3.1.7 namespace {require DIR.'\..\vendor\symfony\symfony\src\Symfony\Component\ClassLoader\ApcClassLoader.php';} Les \ ne sont pas comprix par linux L'erreur provient du fichier \vendor\symfony\symfony\src\Symfony\Component\ClassLoader\ClassCollectionLoader.php Bon en attendant un patch ou une correction il suffit de rempalcer les \ par un / namespace {require DIR.'/../vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ApcClassLoader.php';} |
Please use English to describe your problem so that everybody is able to understand your issue. |
Uh oh!
There was an error while loading. Please reload this page.
[27-Nov-2016 19:29:05 Asia/Kolkata] PHP Warning: require(/home/nadiarafl/public_html/var..\vendor\symfony\symfony\src\Symfony\Component\ClassLoader\ApcClassLoader.php): failed to open stream: No such file or directory in /home/nadiarafl/public_html/var/bootstrap.php.cache on line 1780
[27-Nov-2016 19:29:05 Asia/Kolkata] PHP Warning: require(/home/nadiarafl/public_html/var..\vendor\symfony\symfony\src\Symfony\Component\ClassLoader\ApcClassLoader.php): failed to open stream: No such file or directory in /home/nadiarafl/public_html/var/bootstrap.php.cache on line 1780
[27-Nov-2016 19:29:05 Asia/Kolkata] PHP Fatal error: require(): Failed opening required '/home/nadiarafl/public_html/var..\vendor\symfony\symfony\src\Symfony\Component\ClassLoader\ApcClassLoader.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/nadiarafl/public_html/var/bootstrap.php.cache on line 1780
the above error log is generated by server...
I updated my symfony to 3.1.7. If i remove this line 1780 in bootstrap.php.cache, it works fine in prod hosting server:
namespace {require DIR.'\..\vendor\symfony\symfony\src\Symfony\Component\ClassLoader\ApcClassLoader.php';}
The text was updated successfully, but these errors were encountered: