….I hate my life…. I have literally been trying to solve 1 single problem this entire day. The server had no idea what to do and gave me the general Error 500: “A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.” The server logs were no help.
I ran my code through every linter and checker I could find and nothing was out of the ordinary.
But, finally, 20 minutes ago, I solved it….
I used
wp_enqueue_scripts() and not
wp_enqueue_script()
A single S ruined my entire day.