Skip to content
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

Open
niel opened this issue May 12, 2019 · 7 comments
Open

CakePHP 3.7.7 Asset files failing to load #84

niel opened this issue May 12, 2019 · 7 comments

Comments

@niel
Copy link

niel commented May 12, 2019

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?

@niel
Copy link
Author

niel commented May 13, 2019

Seems that they are supposed to be that way. However, they're definitely not working as using the URL directly produces a 404 error

@niel niel changed the title CakePHP 3.7.7 Asset file links prefixed with "/admin_l_t_e/" CakePHP 3.7.7 Asset files failing to load May 13, 2019
@niel
Copy link
Author

niel commented May 13, 2019

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.

@dcoturel
Copy link
Contributor

Hi!
This happened to me too.
Did you find any workaround to solve this?
Saludos

@niel
Copy link
Author

niel commented Jun 28, 2019

Only the workaround mentioned above. Symlink the directories using bake.

@dcoturel
Copy link
Contributor

Hi niel, thanks for your answer

@maiconpinto
Copy link
Owner

Hi @niel and @dcoturel

I didn't understand what is happening.

Let me know more information.

I testing in this link

@dcoturel
Copy link
Contributor

dcoturel commented Aug 6, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants