I'm doing a bit of work for someone just now and I noticed that the assets in the modules folder were not being served. The client's server is Linux based - using PHP 7.4.
After about half an hour of digging around I discovered that the mime_content_type() function did not exist inside this server's installation of PHP. So, if anyone else ever runs into that issue, here is your solution:
SOLUTION
You're gonna have to open up Core.php (inside the engine folder) and basically write a fallback script that basically tells PHP, "if the mime_content_type() function does not exist then here's what I want you to do...".
Therefore, immediately BEFORE the line of code (on Core.php) that says:
Paste in the following code:
Please be aware that automatic framework update will replace your engine Engine folder. So, you may have to take note of this and perform this tweak whenever you initiate a framework update.
Module Assets Not Loading? 500 error. Here's the solution
4 years ago
4 years ago
#1
4 years ago
#2
Solved.
4 years ago
#3
Yikes. I can't tick it. Could somebody leave a comment so that I can resolve this?
4 years ago
#4
thanks for the fix