Search code examples
symfonysonata-adminsonata

Sonata admin styles/scripts not loaded with error 403


i have a problem with Sonata Admin bundle. (Symfony version 3.3.11, Sonataadmin 3.24) On localhost everything works fine, but on server all styles and scripts placed in web/bundles/sonataadmin and web/bundles/sonatacore directories is not loaded with error 403. Permission of directories is 777 for folders, 644 for files. How can i fix this problem? Thanks.


Solution

  • I solved this problem by running next command:

    php bin/console assets:install