laravel-frontend-presets / black-dashboard

Black Frontend Preset For Laravel Framework 11.x and Up
https://www.creative-tim.com/product/black-dashboard-laravel
MIT License
85 stars 337 forks source link

CSS and JS not working on fresh install #2

Closed jj2405 closed 4 years ago

jj2405 commented 4 years ago

Hello,

I have installed the free version on a fresh install of laravel and have found that the styles are not working. The pages work and the style sheets and JS are included but they respond with 404 errors. How can I fix this? Where should they be stored? I installed using composer so everything should have been installed correctly.

teamupdivision commented 4 years ago

Hello @jj2405, thank you for using our products!

Can you please check in the browser inspector if the paths to the css and js files are correct? Please copy paste them here. It would be useful if you send us the exact steps you did for the install.

Thank you

jj2405 commented 4 years ago

Hello,

Thanks for your reply! Here are the errors from the browser console. I installed a fresh Laravel instance and then followed the steps found on the documentation for a composer install.

Thanks for your help!

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (nucleo-icons.css, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (theme.css, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (black-dashboard.css, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (jquery.min.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (popper.min.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (perfect-scrollbar.jquery.min.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (bootstrap.min.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (black-dashboard.min.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (bootstrap-notify.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (theme.js, line 0) [Error] ReferenceError: Can't find variable: $ Global Code (openfoodnetwork.co.za:169)

teamupdivision commented 4 years ago

Thank you for the reply, can you also paste the relative paths of the Javascript files?

jj2405 commented 4 years ago

Apologies for the slow response! Here is a screenshot of the error log. Please note the domain is not active and is being served from a private server. Thanks!

Screenshot 2020-01-21 at 18 00 41
jj2405 commented 4 years ago

I believe the problem was caused by my server setup. Not sure what it was but I have moved to a hosted server now and the admin panel works fine for me now. Thanks for your help!

teamupdivision commented 4 years ago

Hello, I'm really glad the problem got solved.

All the best!