cakephp-adminlte-theme icon indicating copy to clipboard operation
cakephp-adminlte-theme copied to clipboard

CakePHP 3.7.7 Asset files failing to load

Open niel opened this issue 5 years ago • 7 comments

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 avatar May 12 '19 06:05 niel

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 avatar May 13 '19 10:05 niel

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.

niel avatar May 13 '19 19:05 niel

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

dcoturel avatar Jun 28 '19 14:06 dcoturel

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

niel avatar Jun 28 '19 23:06 niel

Hi niel, thanks for your answer

dcoturel avatar Jun 29 '19 18:06 dcoturel

Hi @niel and @dcoturel

I didn't understand what is happening.

Let me know more information.

I testing in this link

maiconpinto avatar Jul 17 '19 18:07 maiconpinto

Hi @maiconpinto

The thing was, after an update, the template failed to load the assets. This are the assets failing to load:

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.

dcoturel avatar Aug 06 '19 16:08 dcoturel