Easyadminbundle: HTTP 403 error when trying to access the CSS and JS files

Created on 21 Jan 2017  路  5Comments  路  Source: EasyCorp/EasyAdminBundle

Hi,

I have some problem, easy admin work but I have 403 error forbidden for loading my stylesheet and javascript file (in web/bundles/easyadmin )

I don't know how to solve it, I tested chmod 777 but don't work.

bug unconfirmed

Most helpful comment

I had the same issue using this bundle on:
mac os sierra + ubuntu 14.04 on vagrant + symfony 3

I resolved using:
php bin/console assets:install
instead
php bin/console assets:install --symlink

I thinks it's a problem about following symlinks, maybe is disable in same config

All 5 comments

Never happened to me :( My guess is that it's caused by some strict access_control rule? If it doesn't contain any sensitive information, could you please try to access to the CSS file directly in your browser and take a screenshot to see the error details? Thanks!

Thank you for your answer.

No I don't think, my acces_control is : - { path: ^/(en|fr)/admin/, role: ROLE_ADMIN }
It work in localhost, but I deploy my website in production today, and I have the problem only in production.

Screen :

capture d ecran 2017-01-21 a 20 42 19

We just move the folder web/bundles/easyadmin to web/easyadmin and it works!

We don't know why this problem appears, I check in other forum and the problem maybe coming from my host (OVH).

Let's close this for now because it seems related to the hosting or other config outside this bundle. We'll reopen if there's more information about a bug in this bundle. Thanks!

I had the same issue using this bundle on:
mac os sierra + ubuntu 14.04 on vagrant + symfony 3

I resolved using:
php bin/console assets:install
instead
php bin/console assets:install --symlink

I thinks it's a problem about following symlinks, maybe is disable in same config

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joazvsoares picture joazvsoares  路  4Comments

devkbsc picture devkbsc  路  3Comments

lukasluecke picture lukasluecke  路  3Comments

tamert picture tamert  路  3Comments

Ealenn picture Ealenn  路  3Comments