-
Notifications
You must be signed in to change notification settings - Fork 111
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
CakePHP 3.7.7 Asset files failing to load #84
Comments
Seems that they are supposed to be that way. However, they're definitely not working as using the URL directly produces a 404 error |
Still cannot get this working through the dispatcher. For now I have sym-linked to the AdminLTE/webroot directory. That's probably not going to work in production though. |
Hi! |
Only the workaround mentioned above. Symlink the directories using bake. |
Hi niel, thanks for your answer |
Hi @maiconpinto The thing was, after an update, the template failed to load the assets. This are the assets failing to load: <script src="/admin_l_t_e/bower_components/jquery/dist/jquery.min.js"></script> <script src="/admin_l_t_e/bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="/admin_l_t_e/js/adminlte.min.js"></script> <script src="/admin_l_t_e/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script> <script src="/admin_l_t_e/bower_components/fastclick/lib/fastclick.js"></script>This is the error I was receiving: 2019-08-06 16:32:42 Error: [Cake\Routing\Exception\MissingControllerException] Controller class Admin_l_t_e could not be found. Then, I didn't had much time to test, so I went for a very "hard" solution. |
The href links to style sheets, JavaScript, etc. all start with href="/admin_l_t_e/...
Unsurprisingly, they do not seem to load as that location doesn't exist. Is this expected behaviour or another new bug with 3.7.7?
The text was updated successfully, but these errors were encountered: