VarunAgw Posted December 21, 2022 Posted December 21, 2022 One of my colleague use Mac. We are trying to create a clone of the website on his localhost so he can work. We had some success but we are stuck at the last step. After everything is ready, for some reason CSS doesn't work (neither in admin or front area). I noticed admin area doesn't load critical CSS like core core, framework, responsive. Frontend area does load it but I noticed some of them are completely empty like "core responsive". I tried deleting datastore, even disabling caching. I cleared cache in admin area multiple times too. But CSS resources won't load.
Randy Calvert Posted December 21, 2022 Posted December 21, 2022 This is technically outside of IPB's realm of support (making a site work on a local device)... with that said however, what does your browser console say when loading the resource? What happens if you directly try to access the file?
VarunAgw Posted December 21, 2022 Author Posted December 21, 2022 @Randy Calvert Yeah. I understand that. When I visit those CSS files directly, they are empty (0 bytes). It seem like invision create empty files for some reason. Brower console shows no error at all.
Randy Calvert Posted December 21, 2022 Posted December 21, 2022 (edited) It sounds like it's an issue where Apache/PHP does not have proper permission to write to the file location. You might want to look to make sure it can not only read files in that folder but can also write to them. Edited December 21, 2022 by Randy Calvert
VarunAgw Posted December 21, 2022 Author Posted December 21, 2022 @Randy Calvert I thought so but apache/PHP is able to create blank file. If there was permission issue, there wouldn't a blank file either. Also some files in same directory are created with content. But I guess I can give it one more try and reassign the owner:group to the website.
Randy Calvert Posted December 21, 2022 Posted December 21, 2022 What user is Apache/PHP running under? That's what should have file ownership.
VarunAgw Posted December 21, 2022 Author Posted December 21, 2022 I don't remember. I will check again tomorrow with my colleague.
Randy Calvert Posted December 21, 2022 Posted December 21, 2022 Also... I personally just use MAMP. It handles everything itself pretty well where you can just load up files in the document root and go. It's a heck of a lot easier than managing my own local installation (especially for switching between different versions of both Apache, PHP, etc.).
Recommended Posts